代码拉取完成,页面将自动刷新
tests/integration/
: Root directory
tests
: Testsutils
: Support utilitiesSystem dependencies that will need to be available
oc
or kubectl
go
make
npm
yarn
It is expected that the following have already been deployed in a OpenShift or non-OpenShift cluster:
istio-system
namespace, also including Grafana, Prometheus, etc.)istio-system
namespace)You can use the following to help setup the environment if you do not already have one as detailed above.
hack/istio/install-istio-via-istioctl.sh
istio-system
namespace along with the Prometheus, Grafana, and Jaeger addons.hack/istio/install-bookinfo-demo.sh
hack/istio/install-istio-via-istioctl.sh
hack script.-tg
to also install a traffic generator that will send messages periodically into the Bookinfo demo.-tg
option, make sure you pass in the Minikube profile name via -mp
if the profile name is not minikube
.Make targets to install Kiali
oc login
.make cluster-status
and look in the output for the login command to use.make build build-ui cluster-push operator-create kiali-create
make -e CLUSTER_TYPE=minikube build build-ui cluster-push operator-create kiali-create
minikube
, you must also pass in the env var -e MINIKUBE_PROFILE="<your profile name>"
hack/run-integration-tests.sh
# Clone this repository if you do not yet have it
$ git clone https://github.com/kiali/kiali.git
# Login to Openshift Cluster - you must specify your OpenShift cluster information and credentials
$ oc login https://<openshift>:<port> --username=<username> --password=<password> --insecure-skip-tls-verify=true
# Run all tests using the Kiali Route and authenticated as the user that is logged in
$ make test-integration -e URL="https://$(oc get route -n istio-system kiali -o 'jsonpath={.spec.host}')" -e TOKEN="$(oc whoami -t)"
# test results are stored in the "tests/integration/junit-rest-report.xml" file
# Clone this repository if you do not yet have it
$ git clone https://github.com/kiali/kiali.git
# In a separate console, run a port-forward proxy to the Kiali running in the cluster
$ kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app.kubernetes.io/name=kiali -o name) 20001:20001
# Run all tests using the Kiali port-forward proxy and authenticated as the Kiali service account
$ make test-integration -e CLIENT_EXE="kubectl" -e URL="http://localhost:20001/kiali" -e TOKEN="$(kubectl get -n istio-system $(kubectl get secret -n istio-system -o name | grep 'kiali.*-token' | head -n 1) -o jsonpath={.data.token} | base64 -d)"
# test results are stored in the "tests/integration/junit-rest-report.xml" file
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。