@@ -532,7 +532,7 @@ WEB_UI_CONFIG_FILE="tests/config/local/ocis-web.json" \
532532ocis/bin/ocis server
533533```
534534
535- The first oCIS instance should be available at: https://localhost:9200/
535+ The first oCIS instance should be available at: < https://localhost:9200/ >
536536
537537### Setup Second oCIS Instance
538538
@@ -552,7 +552,7 @@ source tests/config/local/.env-federation && ocis/bin/ocis init
552552ocis/bin/ocis server
553553```
554554
555- The second oCIS instance should be available at: https://localhost:10200/
555+ The second oCIS instance should be available at: < https://localhost:10200/ >
556556
557557{{< hint info >}}
558558To enable ocm in the web interface, you need to set the following envs:
@@ -589,6 +589,43 @@ The sample `fontsMap.json` file is located in `tests/config/drone/fontsMap.json`
589589}
590590```
591591
592+ ## Running Test on helm setup
593+
594+ Clone the [ ` ocis-charts ` ] ( https://github.com/owncloud/ocis-charts/ ) repository.
595+
596+ Install [ k3d] ( https://k3d.io/stable/#install-script )
597+ Install [ kubectl] ( https://kubernetes.io/docs/tasks/tools/#kubectl )
598+
599+ 1 . Setup Basicauth
600+
601+ ``` bash
602+ cd ocis-charts
603+ # Enable basic auth in proxy deployment
604+ sed -i ' /- name: PROXY_HTTP_ADDR/i\
605+ - name: PROXY_ENABLE_BASIC_AUTH\n\
606+ value: "true"' ./charts/ocis/templates/proxy/deployment.yaml
607+ # copy authbasic service
608+ cp -r < path-to-ocis-repo> /tests/config/drone/k3s/authbasic ./charts/ocis/templates/
609+ sed -i ' /{{- $_ := set .scope "appNameAuthMachine" "authmachine" -}}/a\ {{- $_ := set .scope "appNameAuthBasic" "authbasic" -}}' ./charts/ocis/templates/_common/_tplvalues.tpl
610+ ```
611+
612+ 2 . Install charts using k3d
613+
614+ ``` bash
615+ k3d cluster create drone --api-port ocis.owncloud.test:33199 -p ' 80:80@loadbalancer' -p ' 443:443@loadbalancer' --k3s-arg ' --tls-san=k3d@server:*' --k3s-arg ' --disable=metrics-server@server:*'
616+ k3d kubeconfig get drone > kubeconfig.yaml
617+ chmod 0600 kubeconfig.yaml
618+ kubectl create configmap coredns-custom --namespace kube-system --from-literal=' rewritehost.override=rewrite name exact ocis.owncloud.test host.k3d.internal'
619+ kubectl -n kube-system rollout restart deployment coredns
620+ make helm-install-atomic
621+ ```
622+
623+ 3 . Run test
624+ ``` bash
625+ cd ocis
626+ K3D=true TEST_SERVER_URL=" ocis.owncloud.test" make test-acceptance-api BEHAT_FEATURE=tests/acceptance/features/apiArchiver/downloadById.feature
627+ ```
628+
592629## Generating Code Coverage Report by Running Acceptance Tests
593630
594631To find out what oCIS code is covered by the API tests, first create a debug build of oCIS.
@@ -623,4 +660,4 @@ You can also view the report in a web UI using the following command.
623660go tool cover -html=cov.txt
624661```
625662
626- This command should open a browser with the code report.
663+ This command should open a browser with the code report.
0 commit comments