Code review comment: Got it. I thought either regex or glob when hear pattern.

Code under review:
public void canCRUDEnterpriseTierDeployment() throws Exception {
        allowAllSSL();
        File tarGzFile = downloadFile(PETCLINIC_TAR_GZ_URL);
        File jarFile = downloadFile(PETCLINIC_GATEWAY_JAR_URL);

        String serviceName = generateRandomResourceName("springsvc", 15);
        Region region = Region.US_EAST;

        List<String> configFilePatterns = Arrays.asList("api-gateway", "customers-service");
        SpringService service = appPlatformManager.springServices().define(serviceName)
            .withRegion(region)
            .withNewResourceGroup(rgName)
            .withEnterpriseTierSku()
            .withDefaultGitRepository(PETCLINIC_CONFIG_URL, "master", configFilePatterns)
            .create();

        String deploymentName = generateRandomResourceName("deploy", 15);

        List<String> apiGatewayConfigFilePatterns = Arrays.asList("api-gateway");
        String appName = "api-gateway";
        SpringApp app = service.apps().define(appName)
            .defineActiveDeployment(deploymentName)
            .withJarFile(jarFile)
            .withInstance(2)
            .withCpu("500m")
            .withMemory("512Mi")
            .attach()
            .withDefaultPublicEndpoint()
            .withConfigurationServiceBinding()
            .create();

        SpringAppDeployment deployment = app.deployments().getByName(deploymentName);
        Assertions.assertTrue(CoreUtils.isNullOrEmpty(deployment.configFilePatterns()));

        deployment.update()
            .withConfigFilePatterns(apiGatewayConfigFilePatterns)
            .apply();

        deployment.refresh();
        Assertions.assertFalse(CoreUtils.isNullOrEmpty(deployment.configFilePatterns()));

        Assertions.assertNotNull(app.url());
        Assertions.assertNotNull(app.activeDeploymentName());
        Assertions.assertEquals(1, app.deployments().list().stream().count());

        String appName2 = "customers-service";
        String module = "spring-petclinic-customers-service";
        List<String> customerServiceConfigFilePatterns = Arrays.asList("customers-service");
        SpringApp app2 = service.apps().define(appName2)
            .defineActiveDeployment(deploymentName)
            .withSourceCodeTarGzFile(tarGzFile, customerServiceConfigFilePatterns)
            .withTargetModule(module)
            .attach()
            .withConfigurationServiceBinding()
            .create();

        
        Assertions.assertNull(app2.url());

        SpringAppDeployment customersDeployment = app2.deployments().getByName(deploymentName);
        Assertions.assertEquals(customerServiceConfigFilePatterns, customersDeployment.configFilePatterns());
    }

Line commented on: List<String> configFilePatterns = Arrays.asList("api-gateway", "customers-service");

Revised code:
public void canCRUDEnterpriseTierDeployment() throws Exception {
        allowAllSSL();
        File tarGzFile = downloadFile(PETCLINIC_TAR_GZ_URL);
        File jarFile = downloadFile(PETCLINIC_GATEWAY_JAR_URL);

        String serviceName = generateRandomResourceName("springsvc", 15);
        Region region = Region.US_EAST;

        List<String> configFilePatterns = Arrays.asList("api-gateway", "customers-service");
        SpringService service = appPlatformManager.springServices().define(serviceName)
            .withRegion(region)
            .withNewResourceGroup(rgName)
            .withEnterpriseTierSku()
            .withDefaultGitRepository(PETCLINIC_CONFIG_URL, "master", configFilePatterns)
            .create();

        String deploymentName = generateRandomResourceName("deploy", 15);

        List<String> apiGatewayConfigFilePatterns = Arrays.asList("api-gateway");
        String appName = "api-gateway";
        SpringApp app = service.apps().define(appName)
            .defineActiveDeployment(deploymentName)
            .withJarFile(jarFile)
            .withInstance(2)
            .withCpu("500m")
            .withMemory("512Mi")
            .attach()
            .withDefaultPublicEndpoint()
            .withConfigurationServiceBinding()
            .create();

        SpringAppDeployment deployment = app.deployments().getByName(deploymentName);
        Assertions.assertTrue(CoreUtils.isNullOrEmpty(deployment.configFilePatterns()));

        deployment.update()
            .withConfigFilePatterns(apiGatewayConfigFilePatterns)
            .apply();

        deployment.refresh();
        Assertions.assertFalse(CoreUtils.isNullOrEmpty(deployment.configFilePatterns()));

        Assertions.assertNotNull(app.url());
        Assertions.assertNotNull(app.activeDeploymentName());
        Assertions.assertEquals(1, app.deployments().list().stream().count());

        String appName2 = "customers-service";
        String module = "spring-petclinic-customers-service";
        List<String> customerServiceConfigFilePatterns = Arrays.asList("customers-service");
        SpringApp app2 = service.apps().define(appName2)
            .defineActiveDeployment(deploymentName)
            .withSourceCodeTarGzFile(tarGzFile, customerServiceConfigFilePatterns)
            .withTargetModule(module)
            .attach()
            .withConfigurationServiceBinding()
            .create();

        
        Assertions.assertNull(app2.url());

        SpringAppDeployment customersDeployment = app2.deployments().getByName(deploymentName);
        Assertions.assertEquals(customerServiceConfigFilePatterns, customersDeployment.configFilePatterns());
    }