Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ad936911b | |||
| 296c43ad06 | |||
| bddfa62307 | |||
| 5829cf8b05 |
@@ -10,5 +10,5 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: renovatebot/github-action@v40.3.0
|
- uses: renovatebot/github-action@v40.3.0
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
configurationFile: renovate.json
|
configurationFile: renovate.json
|
||||||
renovate-json5: true
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ roleRef:
|
|||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: headlamp
|
name: headlamp
|
||||||
namespace: headlamp
|
namespace: <your-namespace>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|||||||
+7
-12
@@ -24,14 +24,14 @@ test.describe('Rook plugin smoke tests', () => {
|
|||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await expect(page).toHaveURL(/rook-ceph/);
|
await expect(page).toHaveURL(/rook-ceph/);
|
||||||
await expect(page.getByRole('heading', { name: /overview/i }).first()).toBeVisible();
|
await expect(page.getByRole('heading', { name: /overview/i })).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('overview page renders content', async ({ page }) => {
|
test('overview page renders content', async ({ page }) => {
|
||||||
await page.goto('/c/main/rook-ceph');
|
await page.goto('/c/main/rook-ceph');
|
||||||
await waitForSidebar(page);
|
await waitForSidebar(page);
|
||||||
|
|
||||||
await expect(page.getByRole('heading', { name: /overview/i }).first()).toBeVisible({
|
await expect(page.getByRole('heading', { name: /overview/i })).toBeVisible({
|
||||||
timeout: 15_000,
|
timeout: 15_000,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -42,27 +42,22 @@ test.describe('Rook plugin smoke tests', () => {
|
|||||||
|
|
||||||
test('navigation to storage classes view works', async ({ page }) => {
|
test('navigation to storage classes view works', async ({ page }) => {
|
||||||
await page.goto('/c/main/rook-ceph');
|
await page.goto('/c/main/rook-ceph');
|
||||||
await waitForSidebar(page);
|
|
||||||
|
|
||||||
const sidebar = page.getByRole('navigation', { name: 'Navigation' });
|
const sidebar = page.getByRole('navigation', { name: 'Navigation' });
|
||||||
const rookBtn = sidebar.getByRole('button', { name: /rook/i });
|
const storageClassesLink = sidebar.getByRole('link', { name: /storage classes/i });
|
||||||
await rookBtn.click();
|
await expect(storageClassesLink).toBeVisible({ timeout: 10_000 });
|
||||||
|
await storageClassesLink.click();
|
||||||
const storageClassesBtn = sidebar.getByRole('button', { name: /storage classes/i });
|
|
||||||
await storageClassesBtn.waitFor({ state: 'visible', timeout: 15_000 });
|
|
||||||
await storageClassesBtn.click();
|
|
||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await expect(page).toHaveURL(/rook-ceph\/storage-classes/);
|
await expect(page).toHaveURL(/rook-ceph\/storage-classes/);
|
||||||
await expect(page.getByRole('heading', { name: /storage class/i }).first()).toBeVisible({ timeout: 15_000 });
|
await expect(page.getByRole('heading', { name: /storage class/i })).toBeVisible({ timeout: 15_000 });
|
||||||
});
|
});
|
||||||
|
|
||||||
test('plugin settings page shows rook plugin entry', async ({ page }) => {
|
test('plugin settings page shows rook plugin entry', async ({ page }) => {
|
||||||
await page.goto('/settings/plugins');
|
await page.goto('/settings/plugins');
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.waitForSelector('table, [class*="PluginList"], [class*="plugin"]', { timeout: 10_000 }).catch(() => {});
|
|
||||||
|
|
||||||
const pluginEntry = page.locator('text=/rook/i').first();
|
const pluginEntry = page.locator('text=rook').first();
|
||||||
await expect(pluginEntry).toBeVisible({ timeout: 30_000 });
|
await expect(pluginEntry).toBeVisible({ timeout: 30_000 });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,6 +12,13 @@
|
|||||||
"homepage": "https://github.com/privilegedescalation/headlamp-rook-plugin#readme",
|
"homepage": "https://github.com/privilegedescalation/headlamp-rook-plugin#readme",
|
||||||
"author": "privilegedescalation",
|
"author": "privilegedescalation",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"pnpm": {
|
||||||
|
"onlyBuiltDependencies": [
|
||||||
|
"@swc/core",
|
||||||
|
"esbuild",
|
||||||
|
"msw"
|
||||||
|
]
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "headlamp-plugin start",
|
"start": "headlamp-plugin start",
|
||||||
"build": "headlamp-plugin build",
|
"build": "headlamp-plugin build",
|
||||||
|
|||||||
Reference in New Issue
Block a user