From 30bb1016299823e24c71a34a8d30cd3aefbaf723 Mon Sep 17 00:00:00 2001 From: rmsamitha Date: Fri, 5 Jul 2024 13:51:51 +0530 Subject: [PATCH] Test case changes related to /api-manager/issues/2971 --- .../tests/operationPolicy/OperationPolicyTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/operationPolicy/OperationPolicyTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/operationPolicy/OperationPolicyTestCase.java index 1ba52fe3a8..3553f9b6aa 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/operationPolicy/OperationPolicyTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/operationPolicy/OperationPolicyTestCase.java @@ -517,7 +517,7 @@ public void testOperationPolicyAdditionWithMissingAttributes() throws Exception apidto.getOperations().get(0).setOperationPolicies(apiOperationPoliciesDTO); HttpResponse updateResponse = restAPIPublisher.updateAPIWithHttpInfo(apidto); - assertEquals(updateResponse.getResponseCode(), 500); + assertEquals(updateResponse.getResponseCode(), 400); } @Test(groups = {"wso2.am"}, description = "Invoke the API after adding the add header operation policy", @@ -537,7 +537,7 @@ public void testAddOperationPolicyForNotSupportedFlow() throws Exception { apidto.getOperations().get(0).setOperationPolicies(apiOperationPoliciesDTO); HttpResponse updateResponse = restAPIPublisher.updateAPIWithHttpInfo(apidto); - assertEquals(updateResponse.getResponseCode(), 500); + assertEquals(updateResponse.getResponseCode(), 400); } @Test(groups = {"wso2.am"}, description = "Invoke the API after adding the add header operation policy",