Skip to content

Commit

Permalink
Merge pull request #4194 from alphagov/PP-11681_replace_request_with_…
Browse files Browse the repository at this point in the history
…axios_adminusers_client

PP-11681 Replace 'base-client' with 'axios-base-client' in 'adminusers.client'
  • Loading branch information
JFSGDS authored Mar 22, 2024
2 parents 747e5cd + bdf0a32 commit c2c208f
Show file tree
Hide file tree
Showing 4 changed files with 286 additions and 514 deletions.
24 changes: 12 additions & 12 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,21 @@
"filename": "app/controllers/registration/registration.controller.js",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 24
"line_number": 25
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.js",
"hashed_secret": "cbb085747f0bcbeac56f2a583779b44c8f445d92",
"is_verified": false,
"line_number": 25
"line_number": 26
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.js",
"hashed_secret": "7b652417979832c620feec2e89b92c56a291ae52",
"is_verified": false,
"line_number": 107
"line_number": 108
}
],
"app/controllers/registration/registration.controller.test.js": [
Expand All @@ -159,56 +159,56 @@
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "9695086041c462c6598c6dd5e35d3a2c9cbbe5f8",
"is_verified": false,
"line_number": 175
"line_number": 176
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "7b652417979832c620feec2e89b92c56a291ae52",
"is_verified": false,
"line_number": 176
"line_number": 177
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "f5378ce7cd012d12a9be51e6be241b1e66240879",
"is_verified": false,
"line_number": 183
"line_number": 184
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "69c8d31085756bfd34bb8ca6d393289374b7d7c2",
"is_verified": false,
"line_number": 190
"line_number": 191
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "3f3c2dca191782c9b8b2f513d16abaa66dc543bf",
"is_verified": false,
"line_number": 197
"line_number": 198
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "0ee4c488221aee414cd9ae5300e28d11c2851fe5",
"is_verified": false,
"line_number": 212
"line_number": 213
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "d8fe3060b1c00ad00ece5d205e493764b113b94c",
"is_verified": false,
"line_number": 218
"line_number": 219
},
{
"type": "Secret Keyword",
"filename": "app/controllers/registration/registration.controller.test.js",
"hashed_secret": "a04fccdd7f93b63162cd0d3e015761cd3a24d86a",
"is_verified": false,
"line_number": 326
"line_number": 327
}
],
"app/controllers/your-psp/worldpay-3ds-flex-validations.test.js": [
Expand Down Expand Up @@ -903,5 +903,5 @@
}
]
},
"generated_at": "2024-01-17T17:13:09Z"
"generated_at": "2024-03-20T13:39:41Z"
}
3 changes: 2 additions & 1 deletion app/controllers/registration/registration.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const qrcode = require('qrcode')
const lodash = require('lodash')

const logger = require('../../utils/logger')(__filename)
const { RESTClientError, ExpiredInviteError } = require('../../errors')
const { ExpiredInviteError } = require('../../errors')
const { RESTClientError } = require('@govuk-pay/pay-js-commons/lib/utils/axios-base-client/errors')
const adminusersClient = require('../../services/clients/adminusers.client')()
const paths = require('../../paths')
const {
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/registration/registration.controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const sinon = require('sinon')
const { expect } = require('chai')

const inviteFixtures = require('../../../test/fixtures/invite.fixtures')
const { RESTClientError, ExpiredInviteError } = require('../../errors')
const { ExpiredInviteError } = require('../../errors')
const { RESTClientError } = require('@govuk-pay/pay-js-commons/lib/utils/axios-base-client/errors')
const { paths } = require('../../routes')
const registrationController = require('./registration.controller')
const { APP, SMS } = require('../../models/second-factor-method')
Expand Down
Loading

0 comments on commit c2c208f

Please sign in to comment.