Removing @benadida's change to make the provisioning mock's setStatus...
Removing @benadida's change to make the provisioning mock's setStatus asynchronous. Instead of generating the key whenever the status is set, generate the key whenever the user is being provisioned. Since the mock uses jwcrypto which must be seeded, seed jwcrypto with some bits. This more closely matches what a real RP would do. In the unit tests, any asynchronous calls to provisioningMock.setStatus have been make synchronous. In user.js, syncEmailKeypair, since jwcrypto depends on there being a seed to generate a keypair, call network.withContext which ensures there is a seed.
Showing
- resources/static/common/js/user.js 8 additions, 2 deletionsresources/static/common/js/user.js
- resources/static/test/cases/common/js/user.js 8 additions, 9 deletionsresources/static/test/cases/common/js/user.js
- resources/static/test/cases/dialog/js/modules/provision_primary_user.js 29 additions, 33 deletions...ic/test/cases/dialog/js/modules/provision_primary_user.js
- resources/static/test/mocks/provisioning.js 16 additions, 12 deletionsresources/static/test/mocks/provisioning.js
Loading
Please register or sign in to comment