From b6349bf3d0908ab7fe35b84d387465ffdebd1450 Mon Sep 17 00:00:00 2001 From: Vault Automation Date: Mon, 26 Jan 2026 19:57:20 -0500 Subject: [PATCH] stub auth data for usage page (#12006) (#12009) Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> --- ui/tests/integration/components/usage/page-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/tests/integration/components/usage/page-test.js b/ui/tests/integration/components/usage/page-test.js index b7223cc0f9..5237a7f4a5 100644 --- a/ui/tests/integration/components/usage/page-test.js +++ b/ui/tests/integration/components/usage/page-test.js @@ -12,12 +12,15 @@ module('Integration | Component | usage | Page::Usage', function (hooks) { setupRenderingTest(hooks); hooks.beforeEach(async function () { + this.authStub = sinon.stub(this.owner.lookup('service:auth'), 'authData'); + this.authStub.value({ userRootNamespace: '' }); this.api = this.owner.lookup('service:api'); this.generateUtilizationReportStub = sinon.stub(this.api.sys, 'generateUtilizationReport').resolves({}); }); hooks.afterEach(function () { this.generateUtilizationReportStub.restore(); + this.authStub.restore(); }); test('it provides the correct fetch function to the dashboard component', async function (assert) {