File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
systemtest/src/test/java/io/strimzi/systemtest/connect Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,8 @@ void testSecretsWithKafkaConnectWithTlsAndTlsClientAuthentication() {
562
562
.withType ("Opaque" )
563
563
.addToData ("ca2.crt" , encodedCertMock )
564
564
.build ();
565
- kubeClient (testStorage .getNamespaceName ()).createSecret (secondCertSecret );
565
+
566
+ KubeResourceManager .get ().createResourceWithWait (secondCertSecret );
566
567
567
568
KafkaConnect connect = KafkaConnectTemplates .kafkaConnectWithFilePlugin (testStorage .getNamespaceName (), testStorage .getClusterName (), 1 )
568
569
.editSpec ()
@@ -598,7 +599,7 @@ void testSecretsWithKafkaConnectWithTlsAndTlsClientAuthentication() {
598
599
// This is an internal secret created by the operator with copy of certificates from the trusted certificates secrets specified in the CR
599
600
String tlsCertSecretName = KafkaConnectResources .internalTlsTrustedCertsSecretName (testStorage .getClusterName ());
600
601
LOGGER .info ("Verifying that tls cert secret {} is created for KafkaConnect truststore" , tlsCertSecretName );
601
- Secret tlsCertSecret = kubeClient (testStorage .getNamespaceName ()).getSecret (tlsCertSecretName );
602
+ Secret tlsCertSecret = KubeResourceManager . get (). kubeClient (). getClient (). secrets (). inNamespace ( testStorage .getNamespaceName ()).withName (tlsCertSecretName ). get ( );
602
603
// The secret should contain certificates from both secrets
603
604
assertThat (tlsCertSecret .getData ().containsKey (testStorage .getClusterName () + "-cluster-ca-cert-ca.crt" ), is (true ));
604
605
assertThat (tlsCertSecret .getData ().containsKey ("my-secret-ca2.crt" ), is (true ));
You can’t perform that action at this time.
0 commit comments