@@ -70,8 +70,8 @@ cli:node:smoke:
7070 - node -v && npm -v
7171 - npm --prefix cli install --no-audit --no-fund
7272 - node ./cli/dist/bin/postgres-ai.js --help
73- - node ./cli/dist/bin/postgres-ai.js status --help
74- - node ./cli/dist/bin/postgres-ai.js list-instances --help
73+ - node ./cli/dist/bin/postgres-ai.js mon status --help
74+ - node ./cli/dist/bin/postgres-ai.js mon targets list --help
7575 - npm install -g ./cli
7676 - echo "prefix=$(npm config get prefix)" && echo "PATH=$PATH"
7777 - command -v postgres-ai && postgres-ai --help
@@ -83,9 +83,9 @@ cli:node:smoke:
8383 - grep -q 'test_key' ~/.config/postgresai/config.json
8484 - node ./cli/dist/bin/postgres-ai.js remove-key
8585 - if grep -q 'apiKey' ~/.config/postgresai/config.json; then echo 'key not removed' && exit 1; fi
86- - node ./cli/dist/bin/postgres-ai.js list-instances | head -n 1 || true
87- - node ./cli/dist/bin/postgres-ai.js add-instance 'postgresql://user:pass@host:5432/db' ci-test || true
88- - node ./cli/dist/bin/postgres-ai.js remove-instance ci-test || true
86+ - node ./cli/dist/bin/postgres-ai.js mon targets list | head -n 1 || true
87+ - node ./cli/dist/bin/postgres-ai.js mon targets add 'postgresql://user:pass@host:5432/db' ci-test || true
88+ - node ./cli/dist/bin/postgres-ai.js mon targets remove ci-test || true
8989 rules :
9090 - if : ' $CI_COMMIT_BRANCH'
9191
@@ -142,9 +142,9 @@ cli:node:full:dind:
142142 - 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 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
145+ - node ./cli/dist/bin/postgres-ai.js mon targets add "postgresql://monitor:monitor_pass@target-db:5432/target_database" demo-test
146+ - node ./cli/dist/bin/postgres-ai.js mon targets list
147+ - node ./cli/dist/bin/postgres-ai.js mon targets test demo-test || true
148148 - node ./cli/dist/bin/postgres-ai.js mon health --wait 120
149149 - node ./cli/dist/bin/postgres-ai.js mon show-grafana-credentials
150150 - echo ""
0 commit comments