new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
public static void verifyDefaultTokenExists() {
    final LoggingFacade logger = getLogger();

    ConditionFactory withStandardRetryPolicy
        = with().pollDelay(0, SECONDS)
        .and().with().pollInterval(5, SECONDS)
        .atMost(5, MINUTES).await();

    withStandardRetryPolicy.conditionEvaluationListener(
        condition -> logger.info("Waiting for the default token to be available in default service account, "
                + "elapsed time {0}, remaining time {1}",
            condition.getElapsedTimeInMS(),
            condition.getRemainingTimeInMS()))
        .until(() -> {
          V1ServiceAccountList sas = Kubernetes.listServiceAccounts("default");
          for (V1ServiceAccount sa : sas.getItems()) {
            if (sa.getMetadata().getName().equals("default")) {
              List<V1ObjectReference> secrets = sa.getSecrets();
              return !secrets.isEmpty();
            }
          }
          return false;
        });
  }
/**
   * Verify the default secret exists for the default service account.
   * 
   */
Verify the default secret exists for the default service account.
Verify the default secret exists for the default service account .
public static void verifyDefaultTokenExists() {
    final LoggingFacade logger = getLogger();
    ConditionFactory withStandardRetryPolicy
        = with().pollDelay(0, SECONDS)
        .and().with().pollInterval(5, SECONDS)
        .atMost(5, MINUTES).await();
    withStandardRetryPolicy.conditionEvaluationListener(
        condition -> logger.info("Waiting for the default token to be available in default service account, "
                + "elapsed time {0}, remaining time {1}",
            condition.getElapsedTimeInMS(),
            condition.getRemainingTimeInMS()))
        .until(() -> {
          V1ServiceAccountList sas = Kubernetes.listServiceAccounts("default");
          for (V1ServiceAccount sa : sas.getItems()) {
            if (sa.getMetadata().getName().equals("default")) {
              List<V1ObjectReference> secrets = sa.getSecrets();
              return !secrets.isEmpty();
            }
          }
          return false;
        });
  }
public static void verifyDefaultTokenExists ( ) { final LoggingFacade logger = getLogger ( ) ; ConditionFactory withStandardRetryPolicy = with ( ) . pollDelay ( 0 , SECONDS ) . and ( ) . with ( ) . pollInterval ( 5 , SECONDS ) . atMost ( 5 , MINUTES ) . await ( ) ; withStandardRetryPolicy . conditionEvaluationListener ( condition -> logger . info ( "Waiting for the default token to be available in default service account, " + "elapsed time {0}, remaining time {1}" , condition . getElapsedTimeInMS ( ) , condition . getRemainingTimeInMS ( ) ) ) . until ( ( ) -> { V1ServiceAccountList sas = Kubernetes . listServiceAccounts ( "default" ) ; for ( V1ServiceAccount sa : sas . getItems ( ) ) { if ( sa . getMetadata ( ) . getName ( ) . equals ( "default" ) ) { List < V1ObjectReference > secrets = sa . getSecrets ( ) ; return ! secrets . isEmpty ( ) ; } } return false ; } ) ; }
Verify the default secret exists for the default service account.
Verify the default secret exists for the default service account .