Skip to content

Commit 499e8a4

Browse files
committed
test(satp-hermes): added tests scaffolding
Signed-off-by: Rodolfo Carapau <[email protected]>
1 parent 84aa8ae commit 499e8a4

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// example.test.js
2+
3+
describe("Audit Endpoint Integration Tests", () => {
4+
beforeAll(() => {});
5+
6+
beforeEach(() => {});
7+
8+
afterEach(() => {});
9+
10+
afterAll(() => {});
11+
12+
it("Given valid StartTimestampAndEndTimestamp, When calling an available audit endpoint, Then return Audit data and 200 OK response", () => {
13+
// Given
14+
// When
15+
// Then
16+
});
17+
18+
it("Given invalid StartTimestampAndEndTimestamp, When calling an available audit endpoint, Then return 400 Bad Request response", () => {
19+
// Given
20+
// When
21+
// Then
22+
});
23+
24+
it("Given valid StartTimestampAndEndTimestamp, When calling an unavailable audit endpoint, Then return 503 Service Unavailable response", () => {
25+
// Given
26+
// When
27+
// Then
28+
});
29+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
describe("Audit Endpoint repository Tests", () => {
2+
beforeAll(() => {});
3+
4+
beforeEach(() => {});
5+
6+
afterEach(() => {});
7+
8+
afterAll(() => {});
9+
10+
it("Given valid StartTimestampAndEndTimestamp, When calling GetAuditDataByStartTimestampAndEndTimestamp, Then valid AuditEntry", () => {
11+
// Given
12+
// When
13+
// Then
14+
});
15+
16+
it("Given invalid StartTimestampAndEndTimestamp, When calling GetAuditDataByStartTimestampAndEndTimestamp, Then throw INVALID_TIMESTAMP error", () => {
17+
// Given
18+
// When
19+
// Then
20+
});
21+
});

0 commit comments

Comments
 (0)