-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CIV-15169 Hearing Notice API Tests (#4821)
* Added spec and unspec hearing notice scheduler tests * Updated spec hearing notice tests * Unskip 1v2 diff transfer case offline test --------- Co-authored-by: GarethLancaster <[email protected]> Co-authored-by: vasudevganesanhmcts <[email protected]>
- Loading branch information
1 parent
525e6a8
commit d5bc4a9
Showing
15 changed files
with
742 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const restHelper = require('./restHelper'); | ||
const config = require('../config'); | ||
const totp = require('totp-generator'); | ||
const {s2sForXUI, s2s} = require('../config'); | ||
|
||
const getS2sToken = async ({microservice, secret}) => { | ||
return restHelper.retriedRequest( | ||
`${config.url.authProviderApi}/lease`, | ||
{'Content-Type': 'application/json'}, | ||
{ | ||
microservice: microservice, | ||
oneTimePassword: totp(secret) | ||
}) | ||
.then(response => response.text()); | ||
}; | ||
|
||
module.exports = { | ||
civilServiceAuth: () => { | ||
return getS2sToken(s2s); | ||
}, | ||
xuiAuth: () => { | ||
return getS2sToken(s2sForXUI); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.