@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_FUNCTIONAPP)
@StorageAccountPreparer()
def test_functionapp_on_linux_version(self, resource_group, storage_account):
    plan = self.create_random_name(prefix='funcapplinplan', length=24)
    functionapp = self.create_random_name(prefix='functionapp-linux', length=24)
    self.cmd('functionapp plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan), checks=[JMESPathCheck('reserved', True), JMESPathCheck('sku.name', 'S1')])
    self.cmd('functionapp create -g {} -n {} --plan {} -s {} --runtime node --runtime-version 10'.format(resource_group, functionapp, plan, storage_account), checks=[JMESPathCheck('name', functionapp)])
    result = self.cmd('functionapp list -g {}'.format(resource_group), checks=[JMESPathCheck('length([])', 1), JMESPathCheck('[0].name', functionapp)]).get_output_in_json()
    self.assertTrue(('functionapp,linux' in result[0]['kind']))
    self.cmd('functionapp config show -g {} -n {}'.format(resource_group, functionapp), checks=[JMESPathCheck('linuxFxVersion', 'Node|10')])
@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_FUNCTIONAPP)
@StorageAccountPreparer()
def test_functionapp_on_linux_version(self, resource_group, storage_account):
    plan = self.create_random_name(prefix='funcapplinplan', length=24)
    functionapp = self.create_random_name(prefix='functionapp-linux', length=24)
    self.cmd('functionapp plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan), checks=[JMESPathCheck('reserved', True), JMESPathCheck('sku.name', 'S1')])
    self.cmd('functionapp create -g {} -n {} --plan {} -s {} --runtime node --runtime-version 10'.format(resource_group, functionapp, plan, storage_account), checks=[JMESPathCheck('name', functionapp)])
    result = self.cmd('functionapp list -g {}'.format(resource_group), checks=[JMESPathCheck('length([])', 1), JMESPathCheck('[0].name', functionapp)]).get_output_in_json()
    self.assertTrue(('functionapp,linux' in result[0]['kind']))
    self.cmd('functionapp config show -g {} -n {}'.format(resource_group, functionapp), checks=[JMESPathCheck('linuxFxVersion', 'Node|10')])