From 024dbb9683d8f36819e550b97620167187ffb171 Mon Sep 17 00:00:00 2001 From: chashikajw Date: Thu, 12 Oct 2023 15:46:51 +0530 Subject: [PATCH] Fix test cases with scope --- .../src/test/java/org/wso2/apk/integration/api/BaseSteps.java | 2 +- .../src/test/java/org/wso2/apk/integration/utils/Constants.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cucumber-tests/src/test/java/org/wso2/apk/integration/api/BaseSteps.java b/test/cucumber-tests/src/test/java/org/wso2/apk/integration/api/BaseSteps.java index bb2673f86c..9986bebb50 100644 --- a/test/cucumber-tests/src/test/java/org/wso2/apk/integration/api/BaseSteps.java +++ b/test/cucumber-tests/src/test/java/org/wso2/apk/integration/api/BaseSteps.java @@ -330,7 +330,7 @@ public void iHaveValidSubscription() throws Exception { @Given("I have a valid subscription with scopes") public void iHaveValidSubscriptionWithScope(DataTable dataTable) throws Exception { List> rows = dataTable.asLists(String.class); - String scopes = Constants.EMPTY_STRING; + String scopes = Constants.API_CREATE_SCOPE; for (List row : rows) { String scope = row.get(0); scopes += scope + Constants.SPACE_STRING; diff --git a/test/cucumber-tests/src/test/java/org/wso2/apk/integration/utils/Constants.java b/test/cucumber-tests/src/test/java/org/wso2/apk/integration/utils/Constants.java index fb04807f74..8c543c8b03 100644 --- a/test/cucumber-tests/src/test/java/org/wso2/apk/integration/utils/Constants.java +++ b/test/cucumber-tests/src/test/java/org/wso2/apk/integration/utils/Constants.java @@ -27,6 +27,7 @@ public class Constants { public static final String DEFAULT_API_DEPLOYER = "api/deployer/1.0.0/"; public static final String ACCESS_TOKEN = "accessToken"; public static final String EMPTY_STRING = ""; + public static final String API_CREATE_SCOPE = "apk:api_create"; public static final String SPACE_STRING = " "; public static final String SUBSCRIPTION_BASIC_AUTH_TOKEN = "Basic NDVmMWM1YzgtYTkyZS0xMWVkLWFmYTEtMDI0MmFjMTIwMDAyOjRmYmQ2MmVjLWE5MmUtMTFlZC1hZmExLTAyNDJhYzEyMDAwMg==";