Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions ballerina/tests/tests.bal
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import ballerina/test;
configurable string clientId = "clientId";
configurable string clientSecret = "clientSecret";
configurable string refreshToken = "refreshToken";
configurable boolean enableClientOauth2 = false;

// test discount ids for batch and basic endpoints.
string discountId = "";
Expand All @@ -38,12 +39,12 @@ string newHsType = "PERCENT";

// create connection config for live client
ConnectionConfig config = {
auth: {
clientId,
clientSecret,
refreshToken,
credentialBearer: oauth2:POST_BODY_BEARER
}
auth: enableClientOauth2 ? {
clientId,
clientSecret,
refreshToken,
credentialBearer: oauth2:POST_BODY_BEARER
} : {token: "Bearer token"}
};

// create live client
Expand Down
Loading