fixes ent tests (#31355)

This commit is contained in:
Jordan Reimer 2025-07-22 15:34:32 -06:00 committed by GitHub
parent c7102065c8
commit 8011ac728c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -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');

View file

@ -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) {