mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
fixes ent tests (#31355)
This commit is contained in:
parent
c7102065c8
commit
8011ac728c
2 changed files with 2 additions and 6 deletions
|
|
@ -399,7 +399,7 @@ module('Acceptance | auth login', function (hooks) {
|
|||
await visit('/vault/auth');
|
||||
|
||||
this.server.get('/sys/internal/ui/mounts', (_, req) => {
|
||||
assert.strictEqual(req.requestHeaders['X-Vault-Namespace'], 'admin', 'header contains namespace');
|
||||
assert.strictEqual(req.requestHeaders['x-vault-namespace'], 'admin', 'header contains namespace');
|
||||
return req.passthrough();
|
||||
});
|
||||
await typeIn(GENERAL.inputByAttr('namespace'), 'admin');
|
||||
|
|
|
|||
|
|
@ -47,11 +47,7 @@ module('Acceptance | Enterprise | config-ui/login-settings', function (hooks) {
|
|||
test('it falls back error template if no permission', async function (assert) {
|
||||
this.server.get('/sys/config/ui/login/default-auth', () => overrideResponse(403));
|
||||
await visit('vault/config-ui/login-settings');
|
||||
assert
|
||||
.dom(GENERAL.pageError.error)
|
||||
.hasText(
|
||||
'Not authorized You are not authorized to access content at /v1/sys/config/ui/login/default-auth.'
|
||||
);
|
||||
assert.dom(GENERAL.pageError.error).hasText('Error permission denied');
|
||||
});
|
||||
|
||||
module('list, read and delete', function (hooks) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue