From d73a4868400bfde3756884411fe66c645e69c5bf Mon Sep 17 00:00:00 2001 From: Yoshani Date: Fri, 7 Jun 2024 16:04:32 +0530 Subject: [PATCH] swap policy removal steps from pdp and pap --- .../test/oauth2/OAuth2XACMLScopeValidatorTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2XACMLScopeValidatorTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2XACMLScopeValidatorTestCase.java index ed778bc029..9808dd9a6d 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2XACMLScopeValidatorTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2XACMLScopeValidatorTestCase.java @@ -143,9 +143,9 @@ public void atEnd() throws Exception { serverConfigurationManager.restoreToLastConfiguration(false); consumerKey = null; consumerSecret = null; - entitlementPolicyClient.removePolicy(VALIDATE_SCOPE_BASED_POLICY_ID); entitlementPolicyClient.publishPolicies(new String[]{VALIDATE_SCOPE_BASED_POLICY_ID}, new String[]{"PDP " + "Subscriber"}, "DELETE", true, null, 1); + entitlementPolicyClient.removePolicy(VALIDATE_SCOPE_BASED_POLICY_ID); } @Test(groups = "wso2.is", description = "Check Oauth2 application registration.")