integration-tests/src/test/java/oracle/kubernetes/operator/utils/K8sTestUtils.java
public void verifySecrets(String secretName, int expected) throws Exception {
    V1SecretList v1SecretList =
        coreV1Api.listSecretForAllNamespaces(
            Boolean.FALSE,
            null,
            "metadata.name=" + secretName,
            null,
            null,
            Boolean.FALSE.toString(),
            null,
            null,
            Boolean.FALSE);
    assertEquals(v1SecretList.getItems().size(), expected, "Number of secrets");
  }
/**
   * verify secrets.
   * @param secretName secret name
   * @param expected expected count
   * @throws Exception on failure
   */
verify secrets.
@param secretName secret name
@param expected expected count
@throws Exception on failure
verify secrets . @param secretName secret name @param expected expected count @throws Exception on failure
public void verifySecrets(String secretName, int expected) throws Exception {
    V1SecretList v1SecretList =
        coreV1Api.listSecretForAllNamespaces(
            Boolean.FALSE,
            null,
            "metadata.name=" + secretName,
            null,
            null,
            Boolean.FALSE.toString(),
            null,
            null,
            Boolean.FALSE);
    assertEquals(v1SecretList.getItems().size(), expected, "Number of secrets");
  }
public void verifySecrets ( String secretName , int expected ) throws Exception { V1SecretList v1SecretList = coreV1Api . listSecretForAllNamespaces ( Boolean . FALSE , null , "metadata.name=" + secretName , null , null , Boolean . FALSE . toString ( ) , null , null , Boolean . FALSE ) ; assertEquals ( v1SecretList . getItems ( ) . size ( ) , expected , "Number of secrets" ) ; }
verify secrets.
verify secrets .