mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
This commit is contained in:
parent
6886447328
commit
c015c72f6d
2 changed files with 12 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
data-test-sidebar-nav-link="Secrets Sync"
|
||||
/>
|
||||
{{/if}}
|
||||
{{#unless this.cluster.dr.isSecondary}}
|
||||
{{#unless (or this.cluster.dr.isSecondary this.flags.isHvdManaged)}}
|
||||
<Nav.Link
|
||||
@route="vault.cluster.recovery.snapshots"
|
||||
@text="Secrets Recovery"
|
||||
|
|
|
|||
|
|
@ -263,4 +263,15 @@ module('Integration | Component | sidebar-nav-cluster', function (hooks) {
|
|||
|
||||
assert.dom(GENERAL.navLink('Vault Usage')).exists();
|
||||
});
|
||||
|
||||
test('it does NOT show Secrets Recovery when user is in HVD admin namespace', async function (assert) {
|
||||
this.flags.featureFlags = ['VAULT_CLOUD_ADMIN_NAMESPACE'];
|
||||
|
||||
const namespace = this.owner.lookup('service:namespace');
|
||||
namespace.setNamespace('admin');
|
||||
|
||||
await renderComponent();
|
||||
|
||||
assert.dom(GENERAL.navLink('Secrets Recovery')).doesNotExist();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue