mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-08 01:37:54 +00:00
1.4 KiB
1.4 KiB
Scenario: TrueNAS Node Addition
Goal
Prove that adding a TrueNAS connection via the API results in ZFS pools and datasets becoming visible in Pulse's unified resource model and UI.
Environment
- Base URL:
{{base_url}} - Username:
{{username}} - Password:
{{password}} - TrueNAS Host: provided via
PULSE_E2E_TRUENAS_HOST - TrueNAS API Key: provided via
PULSE_E2E_TRUENAS_API_KEY
Required checks
- Test TrueNAS connection succeeds (
POST /api/truenas/connections/testreturns 200). - Add TrueNAS connection succeeds (
POST /api/truenas/connectionsreturns 201 Created with anidfield). - Connection appears in connections list (
GET /api/truenas/connections). - TrueNAS resources appear in unified state within 90s (
GET /api/state→resources[]entries withsourceType: "truenas"orplatformType: "truenas"). - ZFS pools or datasets visible in unified state (
GET /api/state→resources[]orstorage[]with TrueNAS source). - TrueNAS resources visible on the infrastructure page in the browser.
- Storage page shows TrueNAS pool/dataset information.
- Cleanup: delete the test connection after all checks.
Output contract
Write JSON to {{result_json}} with this shape:
{
"status": "pass",
"summary": "short outcome summary",
"evidence": ["bullet point 1", "bullet point 2"],
"issues": []
}
Use "status": "fail" when any required check fails.