Skip to content

Commit 0fad60a

Browse files
authored
chore: split the database smoke test from the cluster one (#104)
Also reduce timeouts for the database checks to 30s Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
1 parent 4179216 commit 0fad60a

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

test/chainsaw-test.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,38 @@ spec:
77
apply: 5s
88
assert: 3m
99
delete: 30s
10-
description: Verify an extension is properly installed
10+
description: >-
11+
Validates the end-to-end lifecycle of a PostgreSQL extension, including cluster
12+
initialization, database resource creation, and functional verification.
1113
steps:
12-
- name: Create a Cluster with the extension
14+
- name: Provision PostgreSQL Cluster
15+
description: >-
16+
Deploy a Cluster resource using the built extension container image.
17+
This step validates that the custom image is compatible with the operator
18+
and that the instance can initialize and reach a Healthy phase.
1319
try:
1420
- apply:
1521
file: cluster.yaml
16-
- apply:
17-
file: database.yaml
1822
- assert:
1923
file: cluster-assert.yaml
24+
25+
- name: Initialize Database and Extension
26+
description: Create the Database custom resource and trigger the 'CREATE EXTENSION' logic via CNPG.
27+
try:
28+
- apply:
29+
file: database.yaml
2030
- assert:
31+
timeout: 30s
2132
file: database-assert.yaml
2233

23-
- name: Verify the extension is installed
34+
- name: Functional Verification
35+
description: >-
36+
Execute a SQL-level check against pg_extension to confirm the extension
37+
is successfully registered in the database catalog.
2438
try:
2539
- apply:
2640
file: check-extension.yaml
2741
- assert:
42+
timeout: 30s
2843
file: check-extension-assert.yaml
44+

0 commit comments

Comments
 (0)