adding sealing test & seal permissions (#12566) (#12569)

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
This commit is contained in:
Vault Automation 2026-02-26 13:38:05 -07:00 committed by GitHub
parent 82072019a3
commit 57e47f4546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View file

@ -3,4 +3,8 @@
path "*" {
capabilities = ["create", "read", "update", "delete", "list", "sudo"]
}
// needed permissions to be able to seal vault
path "sys/seal" {
capabilities = ["sudo", "update"]
}

View file

@ -0,0 +1,15 @@
/**
* Copyright IBM Corp. 2016, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
import { test, expect } from '@playwright/test';
test('sealing workflow', async ({ page }) => {
await page.goto('dashboard');
await page.getByRole('link', { name: 'Resilience and recovery' }).click();
await page.getByRole('link', { name: 'Seal Vault' }).click();
await page.getByRole('button', { name: 'Seal' }).click();
await page.getByRole('button', { name: 'Confirm' }).click();
await expect(page.getByText('Vault is sealed')).toBeVisible();
});