This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
EVEREST-785: fix validation when creating a monitoring instance #1838
Annotations
11 errors, 2 warnings, and 1 notice
Provision monitoring
Process completed with exit code 1.
|
Run integration tests:
api-tests/tests/monitoring-instances.spec.ts#L48
1) [api] › monitoring-instances.spec.ts:36:5 › create monitoring instance with api key ───────────
Error: expect(received).toBeTruthy()
Received: false
46 | const response = await request.post('/v1/monitoring-instances', { data })
47 |
> 48 | expect(response.ok()).toBeTruthy()
| ^
49 | const created = await response.json()
50 |
51 | expect(created.name).toBe(data.name)
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:48:25
|
Run integration tests:
api-tests/tests/monitoring-instances.spec.ts#L48
1) [api] › monitoring-instances.spec.ts:36:5 › create monitoring instance with api key ───────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
46 | const response = await request.post('/v1/monitoring-instances', { data })
47 |
> 48 | expect(response.ok()).toBeTruthy()
| ^
49 | const created = await response.json()
50 |
51 | expect(created.name).toBe(data.name)
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:48:25
|
Run integration tests:
api-tests/tests/monitoring-instances.spec.ts#L48
1) [api] › monitoring-instances.spec.ts:36:5 › create monitoring instance with api key ───────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
46 | const response = await request.post('/v1/monitoring-instances', { data })
47 |
> 48 | expect(response.ok()).toBeTruthy()
| ^
49 | const created = await response.json()
50 |
51 | expect(created.name).toBe(data.name)
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:48:25
|
Run integration tests:
api-tests/tests/database-cluster.spec.ts#L100
2) [api] › database-cluster.spec.ts:55:5 › create db cluster with monitoring config ──────────────
Error: expect(received).toBeGreaterThanOrEqual(expected)
Matcher error: received value must be a number or bigint
Received has value: undefined
Call Log:
- Timeout 60000ms exceeded while waiting on the predicate
98 |
99 | expect(res?.status?.size).toBeGreaterThanOrEqual(1)
> 100 | }).toPass({
| ^
101 | intervals: [1000],
102 | timeout: 60 * 1000,
103 | })
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/database-cluster.spec.ts:100:8
|
Run integration tests:
api-tests/tests/database-cluster.spec.ts#L155
3) [api] › database-cluster.spec.ts:109:5 › update db cluster with a new monitoring config ───────
Error: expect(received).toBeGreaterThanOrEqual(expected)
Matcher error: received value must be a number or bigint
Received has value: undefined
Call Log:
- Timeout 60000ms exceeded while waiting on the predicate
153 | res = (await req.json())
154 | expect(res?.status?.size).toBeGreaterThanOrEqual(1)
> 155 | }).toPass({
| ^
156 | intervals: [1000],
157 | timeout: 60 * 1000,
158 | })
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/database-cluster.spec.ts:155:8
|
Run integration tests:
api-tests/tests/database-cluster.spec.ts#L49
4) [api] › database-cluster.spec.ts:177:5 › update db cluster without monitoring config with a new monitoring config
Error: expect(received).toBeTruthy()
Received: false
47 | let res = await request.delete(`/v1/monitoring-instances/${monitoringConfigName1}`)
48 |
> 49 | expect(res.ok()).toBeTruthy()
| ^
50 |
51 | res = await request.delete(`/v1/monitoring-instances/${monitoringConfigName2}`)
52 | expect(res.ok()).toBeTruthy()
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/database-cluster.spec.ts:49:20
|
Run integration tests:
api-tests/tests/database-cluster.spec.ts#L288
5) [api] › database-cluster.spec.ts:242:5 › update db cluster monitoring config with an empty monitoring config
Error: expect(received).toBeGreaterThanOrEqual(expected)
Matcher error: received value must be a number or bigint
Received has value: undefined
Call Log:
- Timeout 60000ms exceeded while waiting on the predicate
286 | res = (await req.json())
287 | expect(res?.status?.size).toBeGreaterThanOrEqual(1)
> 288 | }).toPass({
| ^
289 | intervals: [1000],
290 | timeout: 60 * 1000,
291 | })
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/database-cluster.spec.ts:288:8
|
Run integration tests:
api-tests/tests/monitoring-instances.spec.ts#L147
6) [api] › monitoring-instances.spec.ts:128:5 › delete monitoring instance ───────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 2
Received: 3
145 | list = await response.json()
146 |
> 147 | expect(list.filter((i) => i.name.startsWith(`${namePrefix}${testPrefix}`)).length).toBe(2)
| ^
148 | })
149 |
150 | test('patch monitoring instance', async ({ request }) => {
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:147:86
|
Run integration tests:
api-tests/tests/monitoring-instances.spec.ts#L147
6) [api] › monitoring-instances.spec.ts:128:5 › delete monitoring instance ───────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 2
Received: 3
145 | list = await response.json()
146 |
> 147 | expect(list.filter((i) => i.name.startsWith(`${namePrefix}${testPrefix}`)).length).toBe(2)
| ^
148 | })
149 |
150 | test('patch monitoring instance', async ({ request }) => {
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:147:86
|
Run integration tests:
api-tests/tests/monitoring-instances.spec.ts#L310
7) [api] › monitoring-instances.spec.ts:212:5 › patch monitoring instance type fails on missing key
Error: expect(received).toBeTruthy()
Received: false
308 | const response = await request.post('/v1/monitoring-instances', { data })
309 |
> 310 | expect(response.ok()).toBeTruthy()
| ^
311 | }
312 |
313 | return res
at createInstances (/home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:310:27)
at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:213:17
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: percona-platform/setup-go@v4, percona-platform/cache@v3, medyagh/setup-minikube@latest. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Set up Go release
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-backend/percona-everest-backend. Supported file pattern: go.sum
|
Run integration tests
1 failed
[api] › monitoring-instances.spec.ts:36:5 › create monitoring instance with api key ────────────
7 flaky
[api] › database-cluster.spec.ts:55:5 › create db cluster with monitoring config ───────────────
[api] › database-cluster.spec.ts:109:5 › update db cluster with a new monitoring config ────────
[api] › database-cluster.spec.ts:177:5 › update db cluster without monitoring config with a new monitoring config
[api] › database-cluster.spec.ts:242:5 › update db cluster monitoring config with an empty monitoring config
[api] › monitoring-instances.spec.ts:128:5 › delete monitoring instance ────────────────────────
[api] › monitoring-instances.spec.ts:212:5 › patch monitoring instance type fails on missing key
[api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up
45 passed (1.9m)
|
The logs for this run have expired and are no longer available.
Loading