@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP)
def test_acr_integration(self, resource_group):
    plan = self.create_random_name(prefix='acrtestplan', length=24)
    webapp = self.create_random_name(prefix='webappacrtest', length=24)
    runtime = 'node|10.16'
    acr_registry_name = webapp
    self.cmd('acr create --admin-enabled -g {} -n {} --sku Basic'.format(resource_group, acr_registry_name))
    self.cmd('appservice plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {} --runtime {}'.format(resource_group, webapp, plan, runtime))
    creds = self.cmd('acr credential show -n {} -g {}'.format(acr_registry_name, resource_group)).get_output_in_json()
    self.cmd('webapp config container set -g {0} -n {1} --docker-custom-image-name {2}.azurecr.io/image-name:latest --docker-registry-server-url https://{2}.azurecr.io'.format(resource_group, webapp, acr_registry_name), checks=[JMESPathCheck("[?name=='DOCKER_REGISTRY_SERVER_USERNAME']|[0].value", creds['username'])])
@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP)
def test_acr_integration(self, resource_group):
    plan = self.create_random_name(prefix='acrtestplan', length=24)
    webapp = self.create_random_name(prefix='webappacrtest', length=24)
    runtime = 'node|10.16'
    acr_registry_name = webapp
    self.cmd('acr create --admin-enabled -g {} -n {} --sku Basic'.format(resource_group, acr_registry_name))
    self.cmd('appservice plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {} --runtime {}'.format(resource_group, webapp, plan, runtime))
    creds = self.cmd('acr credential show -n {} -g {}'.format(acr_registry_name, resource_group)).get_output_in_json()
    self.cmd('webapp config container set -g {0} -n {1} --docker-custom-image-name {2}.azurecr.io/image-name:latest --docker-registry-server-url https://{2}.azurecr.io'.format(resource_group, webapp, acr_registry_name), checks=[JMESPathCheck("[?name=='DOCKER_REGISTRY_SERVER_USERNAME']|[0].value", creds['username'])])