Skip to content

Commit

Permalink
Updates test to use unique resource name (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetmahabaleshwar-okta authored Aug 17, 2020
1 parent 935d864 commit 24a1e4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/it/inlinehook-crud.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const expect = require('chai').expect;
const okta = require('../../src');
const models = require('../../src/models');
const faker = require('faker');
const Collection = require('../../src/collection');
const getMockInlineHook = require('./mocks/inlinehook');
let orgUrl = process.env.OKTA_CLIENT_ORGURL;
Expand Down Expand Up @@ -83,7 +84,7 @@ describe('Inline Hook Crud API', () => {
});

it('should update name for created inlineHook', async () => {
inlineHook.name = 'Mock OIDC/OAuth token inline hook updated';
inlineHook.name = `node-sdk: Mock inline hook updated ${faker.random.word()}`.substring(0, 49);
inlineHook.channel.config.headers[0].value = 'my-header-value-updated';
inlineHook.channel.config.authScheme.value = 'my-shared-secret-updated';
const updatedInlineHook = await inlineHook.update();
Expand Down

0 comments on commit 24a1e4e

Please sign in to comment.