Skip to content

Commit 938c064

Browse files
authored
Ensuring OAuth user have access
1 parent 2a24500 commit 938c064

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,20 @@ jobs:
267267
\"
268268
"
269269
270+
- name: Ensure OAuth user exists and mapped
271+
run: |
272+
NS=my-verticadb-operator
273+
POD=verticadb-sample-defaultsubcluster-0
274+
echo "Ensuring OAuth user and mapping exist..."
275+
kubectl -n ${NS} exec ${POD} -c server -- bash -c "
276+
/opt/vertica/bin/vsql -U dbadmin -c \"
277+
CREATE USER IF NOT EXISTS oauth_user;
278+
GRANT CONNECT ON DATABASE vdb TO oauth_user;
279+
GRANT AUTHENTICATION v_oauth TO oauth_user;
280+
\"
281+
"
282+
echo "✅ OAuth user ensured and mapped to v_oauth"
283+
270284
- name: Run Python tests in-cluster (robust + execution)
271285
run: |
272286
set -euo pipefail

0 commit comments

Comments
 (0)