integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void verifyServicesCreated(boolean precreateService, int maxIterations) throws Exception {
    // check admin service
    String adminServiceName = domainUid + "-" + adminServerName;
    LoggerHelper.getLocal().log(Level.INFO,
        "Checking if admin service(" + adminServiceName + ") is created");
    TestUtils.checkServiceCreated(adminServiceName, domainNS, maxIterations);

    if (exposeAdminT3Channel) {
      LoggerHelper.getLocal().log(Level.INFO,
          "Checking if admin t3 channel service("
              + domainUid
              + "-"
              + adminServerName
              + "-external) is created");
      TestUtils.checkServiceCreated(adminServiceName + "-external", domainNS, maxIterations);
    }
    int retriesToResolveServiceName = 15;
    if (!serverStartPolicy.equals("ADMIN_ONLY")) {
      // check managed server services
      for (int i = 1;
           i <= (precreateService ? configuredManagedServerCount : initialManagedServerReplicas);
           i++) {
        LoggerHelper.getLocal().log(Level.INFO,
            "Checking if managed service("
                + domainUid
                + "-"
                + managedServerNameBase
                + i
                + ") is created");
        TestUtils.checkServiceCreated(domainUid + "-" + managedServerNameBase + i, domainNS, maxIterations);
        // using adminServiceName for adminPodName as they both are same
        TestUtils.resolveServiceName(domainUid + "-" + managedServerNameBase + i,
            adminServiceName, domainNS, retriesToResolveServiceName);
      }
    }
  }
/**
   * Verify services are created.
   *
   * @param precreateService - if true check services are created for configuredManagedServerCount
   *                         number of servers else check for initialManagedServerReplicas number of servers
   * @throws RuntimeException if service is not created
   */
Verify services are created.
@param precreateService - if true check services are created for configuredManagedServerCount
number of servers else check for initialManagedServerReplicas number of servers
@throws RuntimeException if service is not created
Verify services are created . @param precreateService - if true check services are created for configuredManagedServerCount number of servers else check for initialManagedServerReplicas number of servers @throws RuntimeException if service is not created
public void verifyServicesCreated(boolean precreateService, int maxIterations) throws Exception {
    String adminServiceName = domainUid + "-" + adminServerName;
    LoggerHelper.getLocal().log(Level.INFO,
        "Checking if admin service(" + adminServiceName + ") is created");
    TestUtils.checkServiceCreated(adminServiceName, domainNS, maxIterations);
    if (exposeAdminT3Channel) {
      LoggerHelper.getLocal().log(Level.INFO,
          "Checking if admin t3 channel service("
              + domainUid
              + "-"
              + adminServerName
              + "-external) is created");
      TestUtils.checkServiceCreated(adminServiceName + "-external", domainNS, maxIterations);
    }
    int retriesToResolveServiceName = 15;
    if (!serverStartPolicy.equals("ADMIN_ONLY")) {
      for (int i = 1;
           i <= (precreateService ? configuredManagedServerCount : initialManagedServerReplicas);
           i++) {
        LoggerHelper.getLocal().log(Level.INFO,
            "Checking if managed service("
                + domainUid
                + "-"
                + managedServerNameBase
                + i
                + ") is created");
        TestUtils.checkServiceCreated(domainUid + "-" + managedServerNameBase + i, domainNS, maxIterations);
        TestUtils.resolveServiceName(domainUid + "-" + managedServerNameBase + i,
            adminServiceName, domainNS, retriesToResolveServiceName);
      }
    }
  }
public void verifyServicesCreated ( boolean precreateService , int maxIterations ) throws Exception { String adminServiceName = domainUid + "-" + adminServerName ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking if admin service(" + adminServiceName + ") is created" ) ; TestUtils . checkServiceCreated ( adminServiceName , domainNS , maxIterations ) ; if ( exposeAdminT3Channel ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking if admin t3 channel service(" + domainUid + "-" + adminServerName + "-external) is created" ) ; TestUtils . checkServiceCreated ( adminServiceName + "-external" , domainNS , maxIterations ) ; } int retriesToResolveServiceName = 15 ; if ( ! serverStartPolicy . equals ( "ADMIN_ONLY" ) ) { for ( int i = 1 ; i <= ( precreateService ? configuredManagedServerCount : initialManagedServerReplicas ) ; i ++ ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking if managed service(" + domainUid + "-" + managedServerNameBase + i + ") is created" ) ; TestUtils . checkServiceCreated ( domainUid + "-" + managedServerNameBase + i , domainNS , maxIterations ) ; TestUtils . resolveServiceName ( domainUid + "-" + managedServerNameBase + i , adminServiceName , domainNS , retriesToResolveServiceName ) ; } } }
Verify services are created.
Verify services are created .
// check admin service // check managed server services // using adminServiceName for adminPodName as they both are same