Skip to content

Commit

Permalink
Merge pull request #76 from qonversion/tech/fix_e2e
Browse files Browse the repository at this point in the history
Fix e2e tests
  • Loading branch information
SpertsyanKM authored Aug 29, 2024
2 parents c2f6c83 + 16590d9 commit c33f3e9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sdk/src/__integrationTests__/apiV3/directApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down Expand Up @@ -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);

Expand All @@ -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);
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit c33f3e9

Please sign in to comment.