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,17 @@ 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+
36+ # upgrade to v2 before using v2 commands
37+ self .cmd ('webapp auth config-version upgrade -g {} -n {}' .format (resource_group , webapp_name ))
3438
3539 # # update and verify
3640 self .cmd ('webapp auth update -g {} -n {} --enabled true --runtime-version 1.2.8'
3741 .format (resource_group , webapp_name )).assert_with_checks ([
38- JMESPathCheck ('platform' , "{'enabled': True, 'runtimeVersion': '1.2.8'}" )
42+ JMESPathCheck ('platform.enabled' , True ),
43+ JMESPathCheck ('platform.runtimeVersion' , '1.2.8' )
3944 ])
4045
4146 with self .assertRaisesRegex (ArgumentUsageError , 'Usage Error: --client-secret and --client-secret-setting-name cannot both be '
@@ -79,6 +84,7 @@ def test_authV2_clientsecret_param_combinations(self, resource_group):
7984 .format (resource_group , webapp_name ))
8085
8186 @ResourceGroupPreparer (name_prefix = 'cli_test_authV2' )
87+ @AllowLargeResponse ()
8288 def test_authV2_auth (self , resource_group ):
8389 webapp_name = self .create_random_name ('webapp-authentication-test' , 40 )
8490 plan_name = self .create_random_name ('webapp-authentication-plan' , 40 )
@@ -92,17 +98,21 @@ def test_authV2_auth(self, resource_group):
9298
9399 # testing show command for newly created app and initial fields
94100 self .cmd ('webapp auth show -g {} -n {}' .format (resource_group , webapp_name )).assert_with_checks ([
95- JMESPathCheck ('properties' , {} )
101+ JMESPathCheck ('properties.platform.enabled ' , False )
96102 ])
103+
104+ self .cmd ('webapp auth config-version upgrade -g {} -n {}' .format (resource_group , webapp_name ))
97105
98106 # # update and verify
99107 self .cmd ('webapp auth update -g {} -n {} --enabled true --runtime-version 1.2.8'
100108 .format (resource_group , webapp_name )).assert_with_checks ([
101- JMESPathCheck ('platform' , "{'enabled': True, 'runtimeVersion': '1.2.8'}" )
109+ JMESPathCheck ('platform.enabled' , True ),
110+ JMESPathCheck ('platform.runtimeVersion' , '1.2.8' )
102111 ])
103112
104113
105114 @ResourceGroupPreparer (name_prefix = 'cli_test_authV2' )
115+ @AllowLargeResponse ()
106116 def test_authV2_authclassic (self , resource_group ):
107117 webapp_name = self .create_random_name ('webapp-authentication-test' , 40 )
108118 plan_name = self .create_random_name ('webapp-authentication-plan' , 40 )
0 commit comments