-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase codecov of pkg/kafka #5682
Conversation
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5682 +/- ##
==========================================
+ Coverage 96.42% 96.88% +0.45%
==========================================
Files 334 334
Lines 16144 16144
==========================================
+ Hits 15567 15641 +74
+ Misses 402 334 -68
+ Partials 175 169 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
Signed-off-by: mehul gautam <[email protected]>
pkg/kafka/auth/config_test.go
Outdated
"--kafka.auth.kerberos.service-name=kafka", | ||
"--kafka.auth.kerberos.realm=EXAMPLE.COM", | ||
"--kafka.auth.kerberos.use-keytab=true", | ||
"--kafka.auth.kerberos.username=user", | ||
"--kafka.auth.kerberos.password=password", | ||
"--kafka.auth.kerberos.config-file=/path/to/krb5.conf", | ||
"--kafka.auth.kerberos.keytab-file=/path/to/keytab", | ||
"--kafka.auth.kerberos.disable-fast-negotiation=true", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is kerberos relevant to this test? the tests should use minimal amount of settings required to reproduce the scenario
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are testing different permutations of settings, it's better to make this table-driven and include only the right amount of settings for each use case
Signed-off-by: mehul gautam <[email protected]>
pkg/kafka/auth/tls_test.go
Outdated
tlsConfig := &tlscfg.Options{ | ||
Enabled: true, | ||
} | ||
defer tlsConfig.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be after the call to setTLSConfiguration
and error check. At this point you just created a struct, there can be no goroutine leak yet.
pkg/kafka/auth/plaintext_test.go
Outdated
expectedMechanism sarama.SASLMechanism | ||
}{ | ||
{ | ||
name: "SCRAM-SHA-256", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name
field is redundant, you can use config.Mechanism
instead
Signed-off-by: mehul gautam <[email protected]>
Which problem is this PR solving?
Description of the changes
pkg/kafka/auth/config.go
and updatedinternal/tracegen/worker_test.go
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test