Created
May 23, 2020 19:17
-
-
Save ctoestreich/3cc3dbfb985e96ce634471573b13e141 to your computer and use it in GitHub Desktop.
Example usage of AbstractTestContainersSpec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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