Skip to content

Commit

Permalink
fix(test-users): use correct scopes for oauth test user generation (#…
Browse files Browse the repository at this point in the history
…3598)

Co-authored-by: rstachof <[email protected]>
  • Loading branch information
robstax and rstachof authored May 14, 2024
1 parent 3b0d670 commit 97d5d0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@webex/test-users/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function getClientCredentials({clientId, clientSecret, idbrokerUrl}) {
json: true,
form: {
grant_type: 'client_credentials',
scope: 'Identity:SCIM webexsquare:get_conversation',
scope:
'Identity:SCIM webexsquare:get_conversation spark-test-account:write spark-test-account:read',
client_id: clientId,
client_secret: clientSecret,
},
Expand Down
1 change: 1 addition & 0 deletions packages/@webex/test-users/test/integration/spec/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ nodeOnly(describe)('test-users', () => {
createTestUser({
machineType: 'LYRA_SPACE',
type: 'MACHINE',
emailAddress,
}).then((u) => {
assert.isTestUser(u);
assert.equal(u.type, 'MACHINE', 'type is MACHINE');
Expand Down

0 comments on commit 97d5d0d

Please sign in to comment.