forked from dfir-iris/iris-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MRG] Merge pull request dfir-iris#622 from dfir-iris/api_v2_tweaks
Api v2 tweaks
- Loading branch information
Showing
25 changed files
with
318 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { test } from '../restFixture.js'; | ||
import { expect } from '@playwright/test'; | ||
import crypto from 'node:crypto'; | ||
|
||
test.beforeEach(async({ page }) => { | ||
await page.goto('/alerts'); | ||
}); | ||
|
||
test('should present the alert', async ({ page, rest }) => { | ||
const alertTitle = `Alert - ${crypto.randomUUID()}`; | ||
|
||
let response = await rest.post('/alerts/add', { | ||
data: { | ||
alert_title: alertTitle, | ||
alert_severity_id: 4, | ||
alert_status_id: 3, | ||
alert_customer_id: 1 | ||
} | ||
}); | ||
await expect(page.getByRole('heading', { name: alertTitle })).toBeVisible(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
api_v2_url_prefix="/api/v2/" | ||
Oops, something went wrong.