diff --git a/sdk/src/__integrationTests__/apiV3/directApi.test.ts b/sdk/src/__integrationTests__/apiV3/directApi.test.ts index 3cb00b2..f5a9545 100644 --- a/sdk/src/__integrationTests__/apiV3/directApi.test.ts +++ b/sdk/src/__integrationTests__/apiV3/directApi.test.ts @@ -21,7 +21,7 @@ describe('Direct API tests', function () { const userId = 'testGrantEntitlementUid' + Date.now(); await userService.createUser(userId); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; const expires = getCurrentTs() + 10000; const expRes: Entitlement = { @@ -51,7 +51,7 @@ describe('Direct API tests', function () { const userId = 'testGrantEntitlementUid' + Date.now(); await userService.createUser(userId); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; const expiresOld = getCurrentTs() + 1000; await executeGrantEntitlementsRequest(API_URL, PRIVATE_TOKEN_FOR_TESTS, userId, entitlementId, expiresOld); @@ -83,7 +83,7 @@ describe('Direct API tests', function () { const userId = 'testGrantEntitlementUid' + Date.now(); await userService.createUser(userId); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; const expires = getCurrentTs() - 10000; const expError = { @@ -106,7 +106,7 @@ describe('Direct API tests', function () { const userId = 'testGrantEntitlementUid' + Date.now(); await userService.createUser(userId); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; const expires = getCurrentTs() + 10000; const expError = { @@ -176,7 +176,7 @@ describe('Direct API tests', function () { const userId = 'testGrantEntitlementUid' + Date.now(); await userService.createUser(userId); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; const expires = getCurrentTs() + 10000; await executeGrantEntitlementsRequest(API_URL, PRIVATE_TOKEN_FOR_TESTS, userId, entitlementId, expires); @@ -192,7 +192,7 @@ describe('Direct API tests', function () { const userId = 'testGrantEntitlementUid' + Date.now(); await userService.createUser(userId); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; // when const response = await executeRevokeEntitlementsRequest(API_URL, PRIVATE_TOKEN_FOR_TESTS, userId, entitlementId); @@ -228,7 +228,7 @@ describe('Direct API tests', function () { const userId = 'testGrantEntitlementUid' + Date.now(); await userService.createUser(userId); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; const expError = { code: 'control_unauthorized', @@ -249,7 +249,7 @@ describe('Direct API tests', function () { // given const userId = 'testGrantEntitlementUid' + Date.now(); - const entitlementId = 'Test Permission'; + const entitlementId = 'test_permission'; const expError = { code: 'not_found',