@ResourceGroupPreparer(name_prefix='cli_test_webapp_zipDeploy', location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_deploy_zip(self, resource_group):
    webapp_name = self.create_random_name('webapp-zipDeploy-test', 40)
    plan_name = self.create_random_name('webapp-zipDeploy-plan', 40)
    zip_file = os.path.join(TEST_DIR, 'test.zip')
    self.cmd('appservice plan create -g {} -n {} --sku S1'.format(resource_group, plan_name))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp_name, plan_name))
    self.cmd('webapp deployment source config-zip -g {} -n {} --src "{}"'.format(resource_group, webapp_name, zip_file)).assert_with_checks([JMESPathCheck('status', 4), JMESPathCheck('deployer', 'ZipDeploy'), JMESPathCheck('message', 'Created via a push deployment'), JMESPathCheck('complete', True)])
@ResourceGroupPreparer(name_prefix='cli_test_webapp_zipDeploy', location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_deploy_zip(self, resource_group):
    webapp_name = self.create_random_name('webapp-zipDeploy-test', 40)
    plan_name = self.create_random_name('webapp-zipDeploy-plan', 40)
    zip_file = os.path.join(TEST_DIR, 'test.zip')
    self.cmd('appservice plan create -g {} -n {} --sku S1'.format(resource_group, plan_name))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp_name, plan_name))
    self.cmd('webapp deployment source config-zip -g {} -n {} --src "{}"'.format(resource_group, webapp_name, zip_file)).assert_with_checks([JMESPathCheck('status', 4), JMESPathCheck('deployer', 'ZipDeploy'), JMESPathCheck('message', 'Created via a push deployment'), JMESPathCheck('complete', True)])