diff --git a/modules/distribution/product/src/main/conf/deployment.toml b/modules/distribution/product/src/main/conf/deployment.toml index 1832c22f55..bd4b4ee8b5 100755 --- a/modules/distribution/product/src/main/conf/deployment.toml +++ b/modules/distribution/product/src/main/conf/deployment.toml @@ -107,7 +107,7 @@ enable = true token = "" [apim.key_manager] -enable_apikey_subscription_validation = true +enable_lightweight_apikey_generation = true #service_url = "https://localhost:${mgt.transport.https.port}/services/" #username = "$ref{super_admin.username}" #password = "$ref{super_admin.password}" diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java index 12f331af56..21a8870a32 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java @@ -807,9 +807,11 @@ private void invokeAPI(WebSocketClient client, String accessToken, AUTH_IN in, H } else if (AUTH_IN.OAUTH_QUERY == in) { echoUri = new URI(apiEndPoint + "?access_token=" + accessToken); } else if (AUTH_IN.APIKEY_HEADER == in) { + Thread.sleep(24000); request.setHeader("apikey", accessToken); echoUri = new URI(apiEndPoint); } else if (AUTH_IN.APIKEY_QUERY == in) { + Thread.sleep(24000); echoUri = new URI(apiEndPoint + "?apikey=" + accessToken); } diff --git a/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/common/deployment.toml b/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/common/deployment.toml index 39ce9827f2..d6dc579922 100755 --- a/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/common/deployment.toml +++ b/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/common/deployment.toml @@ -35,6 +35,9 @@ password = "wso2carbon" alias = "wso2carbon" key_password = "wso2carbon" +[apim.key_manager] +enable_lightweight_apikey_generation = false + [[apim.gateway.environment]] name = "Default" type = "hybrid" diff --git a/modules/integration/tests-integration/tests-backend/src/test/resources/testng.xml b/modules/integration/tests-integration/tests-backend/src/test/resources/testng.xml index e63d3f2eee..b72096baaa 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/resources/testng.xml +++ b/modules/integration/tests-integration/tests-backend/src/test/resources/testng.xml @@ -356,6 +356,7 @@ + @@ -370,8 +371,6 @@ - -