Skip to content

Commit

Permalink
fix: replace AssertJ's deprecated asList() DSL method in MicronautHea…
Browse files Browse the repository at this point in the history
…lthCheckEnricherTest (3352)

Signed-off-by: heap-s <[email protected]>
  • Loading branch information
heap-s authored Sep 2, 2024
1 parent c6178e3 commit 1da32e5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void createWithDeploymentAndNoPlugin() {
.extracting(DeploymentSpec::getTemplate)
.extracting(PodTemplateSpec::getSpec)
.extracting(PodSpec::getContainers)
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(Container.class))
.element(0, InstanceOfAssertFactories.type(Container.class))
.hasFieldOrPropertyWithValue("livenessProbe", null)
.hasFieldOrPropertyWithValue("readinessProbe", null);
Expand All @@ -106,7 +106,7 @@ void createWithDeploymentAndPluginAndNoHealth() {
.extracting(DeploymentSpec::getTemplate)
.extracting(PodTemplateSpec::getSpec)
.extracting(PodSpec::getContainers)
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(Container.class))
.element(0, InstanceOfAssertFactories.type(Container.class))
.hasFieldOrPropertyWithValue("livenessProbe", null)
.hasFieldOrPropertyWithValue("readinessProbe", null);
Expand All @@ -125,7 +125,7 @@ void createWithDeploymentAndPluginAndHealth() throws Exception {
.hasSize(2)
.element(1, InstanceOfAssertFactories.type(Deployment.class))
.extracting("spec.template.spec.containers")
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(Container.class))
.element(0, InstanceOfAssertFactories.type(Container.class))
.extracting(
"livenessProbe.httpGet.path",
Expand All @@ -148,7 +148,7 @@ void createWithDeploymentAndGradlePluginAndHealth() throws Exception {
.hasSize(2)
.element(1, InstanceOfAssertFactories.type(Deployment.class))
.extracting("spec.template.spec.containers")
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(Container.class))
.element(0, InstanceOfAssertFactories.type(Container.class))
.extracting(
"livenessProbe.httpGet.path",
Expand All @@ -175,7 +175,7 @@ void createWithDeploymentAndPluginAndImageConfig() throws Exception {
.hasSize(2)
.element(1, InstanceOfAssertFactories.type(Deployment.class))
.extracting("spec.template.spec.containers")
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(Container.class))
.element(0, InstanceOfAssertFactories.type(Container.class))
.extracting(
"livenessProbe.httpGet.path",
Expand Down

0 comments on commit 1da32e5

Please sign in to comment.