Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ctoestreich/3cc3dbfb985e96ce634471573b13e141 to your computer and use it in GitHub Desktop.
Save ctoestreich/3cc3dbfb985e96ce634471573b13e141 to your computer and use it in GitHub Desktop.
Example usage of AbstractTestContainersSpec
class KafkaStreamsHealthDisabledSpec extends AbstractTestContainersSpec {
def "health check disabled"() {
when:
def bean = context.findBean(KafkaStreamsHealth)
then:
!bean.isPresent()
}
@Override
protected List<Object> getConfiguration() {
List<Object> config = super.getConfiguration()
config.addAll(["kafka.streams.health.enabled", 'false'])
return config
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment