diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsFailureTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsFailureTest.java index 6a0d729eae..ba2ee63879 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsFailureTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsFailureTest.java @@ -187,20 +187,6 @@ public void testUpdateActionWithInvalidID() { .log().ifValidationFails() .assertThat().statusCode(HttpStatus.SC_NOT_FOUND) .body("description", equalTo("No Action is configured on the given Action Type and Id.")); - - // Update Action Endpoint Authentication Properties with an invalid action id. - AuthenticationTypeProperties authenticationType = new AuthenticationTypeProperties() - .properties(new HashMap() {{ - put(TEST_ACCESS_TOKEN_AUTH_PROPERTY, TEST_ACCESS_TOKEN_AUTH_PROPERTY_VALUE); - }}); - - body = toJSONString(authenticationType); - Response responseOfPut = getResponseOfPut(ACTION_MANAGEMENT_API_BASE_PATH + - PRE_ISSUE_ACCESS_TOKEN_PATH + "/" + TEST_ACTION_INVALID_ID + ACTION_BEARER_AUTH_PATH, body); - responseOfPut.then() - .log().ifValidationFails() - .assertThat().statusCode(HttpStatus.SC_NOT_FOUND) - .body("description", equalTo("No Action is configured on the given Action Type and Id.")); } @Test(dependsOnMethods = {"testUpdateActionWithInvalidID"}) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsSuccessTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsSuccessTest.java index e2a6573ba9..f438275cde 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsSuccessTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/action/management/v1/ActionsSuccessTest.java @@ -395,29 +395,7 @@ public void testCreateActionWithExtraEndpointAuthProperties() { .statusCode(HttpStatus.SC_CREATED) .body("endpoint.authentication.type", equalTo(AuthenticationType.TypeEnum.BASIC.toString())); - testActionId = responseOfPost.getBody().jsonPath().getString("id"); - } - - @Test(dependsOnMethods = {"testCreateActionWithExtraEndpointAuthProperties"}) - public void testUpdateActionWithExtraEndpointAuthProperties() { - - AuthenticationTypeProperties newAuthProperties = new AuthenticationTypeProperties() - .properties(new HashMap() {{ - put(TEST_ACCESS_TOKEN_AUTH_PROPERTY, TEST_ACCESS_TOKEN_AUTH_PROPERTY_VALUE); - put(TEST_USERNAME_AUTH_PROPERTY, TEST_USERNAME_AUTH_PROPERTY_VALUE); - }}); - - String body = toJSONString(newAuthProperties); - Response responseOfPut = getResponseOfPut(ACTION_MANAGEMENT_API_BASE_PATH + - PRE_ISSUE_ACCESS_TOKEN_PATH + "/" + testActionId + ACTION_BEARER_AUTH_PATH, body); - - responseOfPut.then() - .log().ifValidationFails() - .assertThat() - .statusCode(HttpStatus.SC_OK) - .body("endpoint.authentication.type", equalTo(AuthenticationType.TypeEnum.BEARER.toString())); - // Delete, created action. - deleteAction(PRE_ISSUE_ACCESS_TOKEN_PATH , testActionId); + deleteAction(PRE_ISSUE_ACCESS_TOKEN_PATH , responseOfPost.getBody().jsonPath().getString("id")); } }