1616class Authv2ScenarioTest (ScenarioTest ):
1717
1818 @ResourceGroupPreparer (name_prefix = 'cli_test_authV2' )
19+ @AllowLargeResponse ()
1920 def test_authV2_clientsecret_param_combinations (self , resource_group ):
2021 webapp_name = self .create_random_name ('webapp-authentication-test' , 40 )
2122 plan_name = self .create_random_name ('webapp-authentication-plan' , 40 )
@@ -29,13 +30,15 @@ def test_authV2_clientsecret_param_combinations(self, resource_group):
2930
3031 # testing show command for newly created app and initial fields
3132 self .cmd ('webapp auth show -g {} -n {}' .format (resource_group , webapp_name )).assert_with_checks ([
32- JMESPathCheck ('properties' , {} )
33+ JMESPathCheck ('properties.platform.enabled ' , False )
3334 ])
35+ self .cmd ('webapp auth config-version upgrade -g {} -n {}' .format (resource_group , webapp_name ))
3436
3537 # # update and verify
3638 self .cmd ('webapp auth update -g {} -n {} --enabled true --runtime-version 1.2.8'
3739 .format (resource_group , webapp_name )).assert_with_checks ([
38- JMESPathCheck ('platform' , "{'enabled': True, 'runtimeVersion': '1.2.8'}" )
40+ JMESPathCheck ('platform.enabled' , True ),
41+ JMESPathCheck ('platform.runtimeVersion' , '1.2.8' )
3942 ])
4043
4144 with self .assertRaisesRegex (ArgumentUsageError , 'Usage Error: --client-secret and --client-secret-setting-name cannot both be '
@@ -79,6 +82,7 @@ def test_authV2_clientsecret_param_combinations(self, resource_group):
7982 .format (resource_group , webapp_name ))
8083
8184 @ResourceGroupPreparer (name_prefix = 'cli_test_authV2' )
85+ @AllowLargeResponse ()
8286 def test_authV2_auth (self , resource_group ):
8387 webapp_name = self .create_random_name ('webapp-authentication-test' , 40 )
8488 plan_name = self .create_random_name ('webapp-authentication-plan' , 40 )
@@ -92,17 +96,21 @@ def test_authV2_auth(self, resource_group):
9296
9397 # testing show command for newly created app and initial fields
9498 self .cmd ('webapp auth show -g {} -n {}' .format (resource_group , webapp_name )).assert_with_checks ([
95- JMESPathCheck ('properties' , {} )
99+ JMESPathCheck ('properties.platform.enabled ' , False )
96100 ])
101+
102+ self .cmd ('webapp auth config-version upgrade -g {} -n {}' .format (resource_group , webapp_name ))
97103
98104 # # update and verify
99105 self .cmd ('webapp auth update -g {} -n {} --enabled true --runtime-version 1.2.8'
100106 .format (resource_group , webapp_name )).assert_with_checks ([
101- JMESPathCheck ('platform' , "{'enabled': True, 'runtimeVersion': '1.2.8'}" )
107+ JMESPathCheck ('platform.enabled' , True ),
108+ JMESPathCheck ('platform.runtimeVersion' , '1.2.8' )
102109 ])
103110
104111
105112 @ResourceGroupPreparer (name_prefix = 'cli_test_authV2' )
113+ @AllowLargeResponse ()
106114 def test_authV2_authclassic (self , resource_group ):
107115 webapp_name = self .create_random_name ('webapp-authentication-test' , 40 )
108116 plan_name = self .create_random_name ('webapp-authentication-plan' , 40 )
0 commit comments