Skip to content

Commit

Permalink
Fix test cases with scope
Browse files Browse the repository at this point in the history
  • Loading branch information
chashikajw committed Oct 12, 2023
1 parent 7024a8e commit 024dbb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<String>> rows = dataTable.asLists(String.class);
String scopes = Constants.EMPTY_STRING;
String scopes = Constants.API_CREATE_SCOPE;
for (List<String> row : rows) {
String scope = row.get(0);
scopes += scope + Constants.SPACE_STRING;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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==";
Expand Down

0 comments on commit 024dbb9

Please sign in to comment.