You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context('when running in the environment',function(){
@@ -319,33 +319,134 @@ describe('MONGODB-OIDC', function () {
319
319
// the authorization code workflow with and without a provided refresh callback.
320
320
// If desired, the caching tests can be done using mock server responses.
321
321
describe('5. Caching',function(){
322
-
// - Clear the cache.
323
-
// - Create a new client with a request callback and a refresh callback. Both callbacks will read the contents of the ``AWS_WEB_IDENTITY_TOKEN_FILE`` location to obtain a valid access token.
324
-
// - Validate the request callback inputs, including the timeout parameter if
325
-
// -ssible.
322
+
letrequestInvokations=0;
323
+
letrefreshInvokations=0;
324
+
constcache=OIDC_WORKFLOWS.callback.cache;
326
325
// - Give a callback response with a valid accessToken and an expiresInSeconds
327
-
// -at is within one minute.
328
-
// - Ensure that a ``find`` operation adds credentials to the cache.
329
-
// - Create a new client with the same request callback and a refresh callback.
330
-
// - Ensure that a ``find`` operation results in a call to the refresh callback.
331
-
// - Validate the refresh callback inputs, including the timeout parameter if
332
-
// -ssible.
333
-
// - Ensure there is a cache with credentials that will expire in less than 5 minutes, using a client with an appropriate request callback.
334
-
// - Create a new client with the a request callback but no refresh callback.
335
-
// - Ensure that a ``find`` operation results in a call to the request callback.
336
-
// - the driver does not supports using callback hashes as part of the cache key,
337
-
// -ip the next test.
338
-
// -Create a new client with a different request callback.
339
-
// -Ensure that a ``find`` operation adds a new entry to the cache.
340
-
// - Clear the cache.
341
-
// - Ensure there is a cache with credentials that will expire in less than 5 minutes, using a client with an appropriate request callback.
342
-
// - Ensure there is a cache with credentials that will expire in less than 5 minutes.
343
-
// - Create a new client with a valid request callback and a refresh callback that gives invalid credentials.
344
-
// - Ensure that a ``find`` operation results in an error.
345
-
// - Ensure that the cache has been cleared.
346
-
// - Clear the cache.
347
-
// - Create a new client using the AWS device workflow.
348
-
// - Ensure that a ``find`` operation does not add credentials to the cache.
326
+
// that is within one minute.
327
+
// - Validate the request callback inputs, including the timeout parameter if possible.
0 commit comments