github.com/confluentinc/cli@v1.100.0/test/schema-registry_test.go (about) 1 package test 2 3 func (s *CLITestSuite) TestSchemaRegistry() { 4 // TODO: add --config flag to all commands or ENVVAR instead of using standard config file location 5 tests := []CLITest{ 6 {args: "schema-registry --help", fixture: "schema-registry/schema-registry-help.golden"}, 7 {args: "schema-registry cluster --help", fixture: "schema-registry/schema-registry-cluster-help.golden"}, 8 {args: "schema-registry cluster enable --cloud gcp --geo us -o json", fixture: "schema-registry/schema-registry-enable-json.golden"}, 9 {args: "schema-registry cluster enable --cloud gcp --geo us -o yaml", fixture: "schema-registry/schema-registry-enable-yaml.golden"}, 10 {args: "schema-registry cluster enable --cloud gcp --geo us", fixture: "schema-registry/schema-registry-enable.golden"}, 11 {args: "schema-registry schema --help", fixture: "schema-registry/schema-registry-schema-help.golden"}, 12 {args: "schema-registry subject --help", fixture: "schema-registry/schema-registry-subject-help.golden"}, 13 } 14 15 kafkaURL := serveKafkaAPI(s.T()).URL 16 loginURL := serve(s.T(), kafkaURL).URL 17 18 for _, tt := range tests { 19 tt.login = "default" 20 s.runCcloudTest(tt, loginURL) 21 } 22 }