Skip to content

Commit f46fd36

Browse files
committed
fix the test that expected a null imagePullSecrets item
1 parent 6a5a4f7 commit f46fd36

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

operator/src/test/java/it/aboutbits/postgresql/helm/HelmTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package it.aboutbits.postgresql.helm;
22

33
import io.fabric8.kubernetes.api.model.ConfigBuilder;
4-
import io.fabric8.kubernetes.api.model.LocalObjectReference;
54
import io.fabric8.kubernetes.client.KubernetesClient;
65
import io.fabric8.kubernetes.client.utils.Serialization;
76
import io.quarkus.test.junit.QuarkusTest;
@@ -173,11 +172,8 @@ void helmInstall_createsDeployment() throws IOException {
173172

174173
assertThat(deployment.getSpec())
175174
.isNotNull()
176-
.satisfies(spec -> assertThat(spec.getTemplate().getSpec().getImagePullSecrets())
177-
.isNotEmpty()
178-
.element(0)
179-
.isNotNull()
180-
.isEqualTo(new LocalObjectReference(null))
175+
.satisfies(spec ->
176+
assertThat(spec.getTemplate().getSpec().getImagePullSecrets()).isEmpty()
181177
);
182178

183179
var selector = deployment.getSpec().getSelector();

0 commit comments

Comments
 (0)