Skip to content

Commit

Permalink
Update oidcClientTest.js (#1056)
Browse files Browse the repository at this point in the history
* Update oidcClientTest.js

* import sleepms

---------

Co-authored-by: Hara Prasad <[email protected]>
  • Loading branch information
krishnaa05 and haraprasadj authored Oct 8, 2024
1 parent 582f6db commit b090194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions suites/apis/oidcClientTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { expect } = require('chai');
const { Bash } = require('../../utils/bash.js');
const { checkPod, runUserSync, getAccessTokenHeader } = require('../../utils/apiUtil.js');
const { Client } = require('../../services/apis/fence/fenceProps.js');
const { sleepMS } = require('../../utils/apiUtil.js');

const bash = new Bash();

Expand Down Expand Up @@ -87,6 +88,8 @@ Scenario('OIDC Client Rotation @clientRotation @requires-indexd', async ({ I, fe
// to run usersync here now that the client has been created
await runUserSync();
await checkPod(I, 'usersync', 'gen3job,job-name=usersync');
// wait for 10secs after usersync
await sleepMS(10000);

// check that both sets of credentials work:
// - we can get an access token using the creds
Expand Down

0 comments on commit b090194

Please sign in to comment.