@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_webapp_git(self, resource_group):
    plan = self.create_random_name(prefix='webapp-git-plan5', length=24)
    webapp = self.create_random_name(prefix='web-git-test2', length=24)
    test_git_repo = 'https://github.com/yugangw-msft/azure-site-test'
    self.cmd('appservice plan create -g {} -n {} --sku S1'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp, plan))
    self.cmd('webapp deployment source config -g {} -n {} --repo-url {} --branch {} --manual-integration'.format(resource_group, webapp, test_git_repo, 'master'), checks=[JMESPathCheck('repoUrl', test_git_repo), JMESPathCheck('isMercurial', False), JMESPathCheck('branch', 'master')])
    self.cmd('webapp deployment source show -g {} -n {}'.format(resource_group, webapp), checks=[JMESPathCheck('repoUrl', test_git_repo), JMESPathCheck('isMercurial', False), JMESPathCheck('branch', 'master')])
    self.cmd('webapp deployment source delete -g {} -n {}'.format(resource_group, webapp))
    self.cmd('webapp deployment source show -g {} -n {}'.format(resource_group, webapp), checks=JMESPathCheck('repoUrl', None))
@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_webapp_git(self, resource_group):
    plan = self.create_random_name(prefix='webapp-git-plan5', length=24)
    webapp = self.create_random_name(prefix='web-git-test2', length=24)
    test_git_repo = 'https://github.com/yugangw-msft/azure-site-test'
    self.cmd('appservice plan create -g {} -n {} --sku S1'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp, plan))
    self.cmd('webapp deployment source config -g {} -n {} --repo-url {} --branch {} --manual-integration'.format(resource_group, webapp, test_git_repo, 'master'), checks=[JMESPathCheck('repoUrl', test_git_repo), JMESPathCheck('isMercurial', False), JMESPathCheck('branch', 'master')])
    self.cmd('webapp deployment source show -g {} -n {}'.format(resource_group, webapp), checks=[JMESPathCheck('repoUrl', test_git_repo), JMESPathCheck('isMercurial', False), JMESPathCheck('branch', 'master')])
    self.cmd('webapp deployment source delete -g {} -n {}'.format(resource_group, webapp))
    self.cmd('webapp deployment source show -g {} -n {}'.format(resource_group, webapp), checks=JMESPathCheck('repoUrl', None))