Skip to content

Commit

Permalink
Added some tests that will need implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartboyd119 committed Sep 21, 2024
1 parent fc65e78 commit 3963574
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/schema_registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ func Test_SchemaRegistry_AutoRegisterSchemas_RequiresSchemaSpecification(t *test
require.ErrorContains(t, err, "avro schema is required for schema registry formatter")
}

func Test_ProtoSchemaRegistry(t *testing.T) {
require.Fail(t, "implement")
}

func Test_JsonSchemaRegistry(t *testing.T) {
require.Fail(t, "implement")
}
func checkShouldSkipTest(t *testing.T, flags ...string) {
t.Helper()
for _, flag := range flags {
Expand Down
18 changes: 18 additions & 0 deletions test/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2060,6 +2060,24 @@ func TestWork_ShutdownCausesRunExit(t *testing.T) {
require.NoError(t, err)
}

func Test_DeadeletterClientDoesntCollidWithProducer(t *testing.T) {
// work with deadletter clientid=123
// producer clientid=123
// This is a classic pattern. connecetor style. Shouldn't have issues with writes
t.Fail()
}

func Test_MissingBootstrap_ShouldGiveClearError(t *testing.T) {
t.Fail()
}

func Test_FailedAuthentication(t *testing.T) {
// not sure if we can even do this with the local broker
// See if can require username/password for dynamically provisioned topic
t.Fail()

}

// $ go test -run=XXX -bench=BenchmarkWork_Run_CircuitBreaker_BusyLoopBreaker -cpuprofile profile_cpu.out
// $ go tool pprof --web profile_cpu.out
// $ go tool pprof -http=":8000" test.test ./profile_cpu.out
Expand Down

0 comments on commit 3963574

Please sign in to comment.