Skip to content

Commit 43e24d9

Browse files
Fixed tests by adding mon to command
1 parent c7ff9b5 commit 43e24d9

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,29 +128,29 @@ cli:node:full:dind:
128128
- npm --prefix cli install --no-audit --no-fund
129129
script:
130130
- echo "=== Testing quickstart (demo mode) ==="
131-
- node ./cli/dist/bin/postgres-ai.js quickstart --demo
131+
- node ./cli/dist/bin/postgres-ai.js mon quickstart --demo
132132
- sleep 10
133-
- node ./cli/dist/bin/postgres-ai.js status
133+
- node ./cli/dist/bin/postgres-ai.js mon status
134134
- echo ""
135135
- echo "=== Testing install command ==="
136-
- node ./cli/dist/bin/postgres-ai.js install
136+
- node ./cli/dist/bin/postgres-ai.js mon install
137137
- echo ""
138138
- echo "=== Testing update command ==="
139-
- node ./cli/dist/bin/postgres-ai.js update || true
139+
- node ./cli/dist/bin/postgres-ai.js mon update || true
140140
- echo ""
141141
- echo "=== Testing shell command ==="
142-
- echo "SELECT 1;" | node ./cli/dist/bin/postgres-ai.js shell target-db || true
142+
- echo "SELECT 1;" | node ./cli/dist/bin/postgres-ai.js mon shell target-db || true
143143
- echo ""
144144
- echo "=== Testing complete workflow ==="
145-
- node ./cli/dist/bin/postgres-ai.js add-instance "postgresql://monitor:monitor_pass@target-db:5432/target_database" demo-test
146-
- node ./cli/dist/bin/postgres-ai.js list-instances
147-
- node ./cli/dist/bin/postgres-ai.js test-instance demo-test || true
148-
- node ./cli/dist/bin/postgres-ai.js health --wait 120
149-
- node ./cli/dist/bin/postgres-ai.js show-grafana-credentials
145+
- node ./cli/dist/bin/postgres-ai.js mon add-instance "postgresql://monitor:monitor_pass@target-db:5432/target_database" demo-test
146+
- node ./cli/dist/bin/postgres-ai.js mon list-instances
147+
- node ./cli/dist/bin/postgres-ai.js mon test-instance demo-test || true
148+
- node ./cli/dist/bin/postgres-ai.js mon health --wait 120
149+
- node ./cli/dist/bin/postgres-ai.js mon show-grafana-credentials
150150
- echo ""
151151
- echo "=== Cleanup ==="
152-
- node ./cli/dist/bin/postgres-ai.js stop
153-
- node ./cli/dist/bin/postgres-ai.js clean || true
152+
- node ./cli/dist/bin/postgres-ai.js mon stop
153+
- node ./cli/dist/bin/postgres-ai.js mon clean || true
154154
after_script:
155155
- docker ps -a || true
156156
rules:

tests/e2e.cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
set -e
66

7-
CLI_CMD="node ./cli/dist/bin/postgres-ai.js"
7+
CLI_CMD="node ./cli/dist/bin/postgres-ai.js mon"
88

99
echo "=== Testing service commands ==="
1010
$CLI_CMD check || true

0 commit comments

Comments
 (0)