How to connect a DB in Rest Assured , which is currently hosted locally

26 views Asked by At

Currently I have to hit below commands to connect to a DB on my system: First command

gcloud --project lover-dev-kubernetes container clusters get-credentials dev-us-west1-cluster --region us-west1 && kubectl config set-cluster gke_lover-dev-kubernetes_us-west1_dev-us-west1-cluster --server=https://dev-us-west1-ingress-nginx.dev.pdx13.lover.network && kubectl config unset clusters.gke_lover-dev-kubernetes_us-west1_dev-us-west1-cluster.certificate-authority-data

Second command

kubectl -n growth-api-dev port-forward deployment/growth-api 3306:3306 > /dev/null &

Can some one please help, how to connect to this DB from Java. I am very new to Kubernatives. Github Repo:https://github.com/Pulkit773/RestAssured/blob/main/src/test/java/com/spotify/oauth2/tests/SubmitApp.java

0

There are 0 answers