Skip to content

Commit

Permalink
Merge pull request #61 from adobe/fix-e2e-tests
Browse files Browse the repository at this point in the history
fix: e2e tests
  • Loading branch information
purplecabbage committed Sep 19, 2023
2 parents 7e63ce6 + 297f3a3 commit 6a70c7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ test('bad access token', async () => {
const promise = _sdkClient.getAccessEntities(requiredParam)

// just match the error message
return expect(promise).rejects.toThrow('401')
await expect(promise).rejects.toThrow('401')
})

test('bad api key', async () => {
const _sdkClient = await sdk.init(tenantId, iMSOrgId, 'bad_api_key', accessToken)
const promise = _sdkClient.getAccessEntities(requiredParam)

// just match the error message
return expect(promise).rejects.toThrow('[CustomerProfileAPISDK:ERROR_ENTITIES] Error 403 - Forbidden ({"error_code":"403003","message":"Api Key is invalid"})')
await expect(promise).rejects.toThrow('[CustomerProfileAPISDK:ERROR_ENTITIES] Error 403 - Forbidden ({"error_code":"403003","message":"Api Key is invalid"})')
})

test('getAccessEntities API', async () => {
Expand Down
2 changes: 1 addition & 1 deletion spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -5227,7 +5227,7 @@
},
"servers": [
{
"url": "//platform.adobe.io/data/core/ups"
"url": "https://platform.adobe.io/data/core/ups"
}
],
"security": [
Expand Down

0 comments on commit 6a70c7c

Please sign in to comment.