new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
private static String createAndVerifyMiiImage() {
    // create image with model files
    logger.info("Create image with model file with monitoring exporter app and verify");
    String appPath = String.format("%s/wls-exporter.war", monitoringExporterAppDir);
    List<String> appList = new ArrayList();
    appList.add(appPath);
    appList.add(SESSMIGR_APP_NAME);

    // build the model file list
    final List<String> modelList = Collections.singletonList(MODEL_DIR + "/" + MONEXP_MODEL_FILE);
    miiImage =
            createMiiImageAndVerify(MONEXP_IMAGE_NAME, modelList, appList);

    // docker login and push image to docker registry if necessary
    dockerLoginAndPushImageToRegistry(miiImage);

    // create docker registry secret to pull the image from registry
    logger.info("Create docker registry secret in namespace {0}", domain1Namespace);
    assertDoesNotThrow(() -> createDockerRegistrySecret(domain1Namespace),
            String.format("create Docker Registry Secret failed for %s", REPO_SECRET_NAME));

    return miiImage;
  }
/**
   * Create mii image with monitoring exporter webapp.
   */
Create mii image with monitoring exporter webapp.
Create mii image with monitoring exporter webapp .
private static String createAndVerifyMiiImage() {
    logger.info("Create image with model file with monitoring exporter app and verify");
    String appPath = String.format("%s/wls-exporter.war", monitoringExporterAppDir);
    List<String> appList = new ArrayList();
    appList.add(appPath);
    appList.add(SESSMIGR_APP_NAME);
    final List<String> modelList = Collections.singletonList(MODEL_DIR + "/" + MONEXP_MODEL_FILE);
    miiImage =
            createMiiImageAndVerify(MONEXP_IMAGE_NAME, modelList, appList);
    dockerLoginAndPushImageToRegistry(miiImage);
    logger.info("Create docker registry secret in namespace {0}", domain1Namespace);
    assertDoesNotThrow(() -> createDockerRegistrySecret(domain1Namespace),
            String.format("create Docker Registry Secret failed for %s", REPO_SECRET_NAME));
    return miiImage;
  }
private static String createAndVerifyMiiImage ( ) { logger . info ( "Create image with model file with monitoring exporter app and verify" ) ; String appPath = String . format ( "%s/wls-exporter.war" , monitoringExporterAppDir ) ; List < String > appList = new ArrayList ( ) ; appList . add ( appPath ) ; appList . add ( SESSMIGR_APP_NAME ) ; final List < String > modelList = Collections . singletonList ( MODEL_DIR + "/" + MONEXP_MODEL_FILE ) ; miiImage = createMiiImageAndVerify ( MONEXP_IMAGE_NAME , modelList , appList ) ; dockerLoginAndPushImageToRegistry ( miiImage ) ; logger . info ( "Create docker registry secret in namespace {0}" , domain1Namespace ) ; assertDoesNotThrow ( ( ) -> createDockerRegistrySecret ( domain1Namespace ) , String . format ( "create Docker Registry Secret failed for %s" , REPO_SECRET_NAME ) ) ; return miiImage ; }
Create mii image with monitoring exporter webapp.
Create mii image with monitoring exporter webapp .
// create image with model files // build the model file list // docker login and push image to docker registry if necessary // create docker registry secret to pull the image from registry