Skip to content

Commit

Permalink
update mirage endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobontempo committed Apr 29, 2024
1 parent 931194f commit f5fb333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions ui/tests/acceptance/access/methods-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ module('Acceptance | auth-methods list view', function (hooks) {
});

test('it should show all methods in list view', async function (assert) {
this.server.get('/sys/auth', () => ({
this.server.get('/sys/internal/ui/mounts', () => ({
data: {
'token/': { accessor: 'auth_token_263b8b4e', type: 'token' },
'userpass/': { accessor: 'auth_userpass_87aca1f8', type: 'userpass' },
auth: {
'token/': { accessor: 'auth_token_263b8b4e', type: 'token' },
'userpass/': { accessor: 'auth_userpass_87aca1f8', type: 'userpass' },
},
},
}));
await page.visit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module('Integration | Component | mfa-login-enforcement-form', function (hooks)
hooks.beforeEach(function () {
this.store = this.owner.lookup('service:store');
this.model = this.store.createRecord('mfa-login-enforcement');
this.server.get('/sys/auth', () => ({
data: { 'userpass/': { type: 'userpass', accessor: 'auth_userpass_1234' } },
this.server.get('/sys/internal/ui/mounts', () => ({
data: { auth: { 'userpass/': { type: 'userpass', accessor: 'auth_userpass_1234' } } },
}));
this.server.get('/identity/mfa/method', () => ({
data: {
Expand Down

0 comments on commit f5fb333

Please sign in to comment.