diff --git a/README.md b/README.md index 4a940617..dbb1d14c 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,18 @@ $ source .env/bin/activate # install requirements $ pip install -r requirements.txt -# update conf/emv.yaml (kiali hostname and selenium driver url) +# update conf/env.yaml (kiali hostname, token and selenium driver url) # Tests use OpenShift API. # Needs to be logged in once in to OpenShift before to run tests. # When we login in to OpenShift, ".kube/config" file will be created with auth token. # This token will be used in tests to access OpenShift +# oc - OpenShift Command Line Interface (CLI) can be downloaded from OpenShift Help -> Command line tools $ oc login https://:8443 --username= --password= --insecure-skip-tls-verify=true +# The token necessary in env.yaml can be read after login +$ oc whoami -t + # run all tests $ pytest -s # see the log on log/kiali_qe.log diff --git a/conf/env.yaml b/conf/env.yaml index 067bc39c..d82fcb11 100644 --- a/conf/env.yaml +++ b/conf/env.yaml @@ -3,7 +3,7 @@ kiali: hostname: localhost username: admin password: admin - auth_type: https-user-password + auth_type: oauth token: token swagger_address: 'https://raw.githubusercontent.com/kiali/kiali/master/swagger.json' skip_oc: false