@@ -135,6 +135,7 @@ config = {
135135 "apiSpaces" ,
136136 ],
137137 "skip" : False ,
138+ "k8s" : True ,
138139 },
139140 "spacesShares" : {
140141 "suites" : [
@@ -1087,7 +1088,7 @@ def localApiTestPipeline(ctx):
10871088 params [item ] = matrix [item ] if item in matrix else defaults [item ]
10881089 for storage in params ["storages" ]:
10891090 for run_with_remote_php in params ["withRemotePhp" ]:
1090- run_on_k8s = params ["k8s" ] and ctx . build . event == "cron"
1091+ run_on_k8s = params ["k8s" ]
10911092 ocis_url = OCIS_URL
10921093 if run_on_k8s :
10931094 ocis_url = "https://%s" % OCIS_SERVER_NAME
@@ -1389,7 +1390,7 @@ def coreApiTestPipeline(ctx):
13891390 for run_with_remote_php in params ["withRemotePhp" ]:
13901391 filter_tags = "~@skipOnGraph&&~@skipOnOcis-%s-Storage" % ("OC" if storage == "owncloud" else "OCIS" )
13911392 expected_failures_file = "%s/expected-failures-API-on-%s-storage.md" % (test_dir , storage .upper ())
1392- run_on_k8s = params ["k8s" ] and ctx . build . event == "cron"
1393+ run_on_k8s = params ["k8s" ]
13931394 ocis_url = OCIS_URL
13941395 if run_on_k8s :
13951396 ocis_url = "https://%s" % OCIS_SERVER_NAME
@@ -3815,6 +3816,7 @@ def deployOcis():
38153816 "commands" : [
38163817 "make -C %s build" % dirs ["ocisWrapper" ],
38173818 "mv %s/tests/config/drone/k3s/values.yaml %s/ocis-charts/charts/ocis/ci/deployment-values.yaml" % (dirs ["base" ], dirs ["base" ]),
3819+ "cat %s/ocis-charts/charts/ocis/ci/deployment-values.yaml" % dirs ["base" ],
38183820 "cp -r %s/tests/config/drone/k3s/authbasic %s/ocis-charts/charts/ocis/templates/" % (dirs ["base" ], dirs ["base" ]),
38193821 "cd %s/ocis-charts" % dirs ["base" ],
38203822 "sed -i '/{{- define \" ocis.basicServiceTemplates\" -}}/a\\ \\ {{- $_ := set .scope \" appNameAuthBasic\" \" authbasic\" -}}' ./charts/ocis/templates/_common/_tplvalues.tpl" ,
@@ -3825,6 +3827,7 @@ def deployOcis():
38253827 "sed -i '/name: SHARING_PASSWORD_POLICY_BANNED_PASSWORDS_LIST/,+1d' %s/ocis-charts/charts/ocis/templates/sharing/deployment.yaml" % dirs ["base" ],
38263828 "export KUBECONFIG=%s/kubeconfig-$${DRONE_BUILD_NUMBER}.yaml" % dirs ["base" ],
38273829 "make helm-install-atomic" ,
3830+ "curl -kv -X 'POST' 'https://ocis-server/graph/v1.0/drives' -H 'Authorization: Basic YWRtaW46YWRtaW4=' -d '{\" name\" :\" Space Nameklkj\" }'" ,
38283831 ],
38293832 "volumes" : [
38303833 {
@@ -3844,6 +3847,8 @@ def ociswrapper():
38443847 "until test -f $${KUBECONFIG}; do sleep 1s; done" ,
38453848 "kubectl get pods -A" ,
38463849 "kubectl get ingress -A" ,
3850+ "POD_NAME=$(kubectl get pods -n ocis --no-headers | grep graph | awk '{print $1}')" ,
3851+ "kubectl describe pod $POD_NAME -n ocis" ,
38473852 "%s/bin/ociswrapper serve --url https://ocis-server --admin-username admin --admin-password admin --skip-ocis-run" % dirs ["ocisWrapper" ],
38483853 ],
38493854 "detach" : True ,
0 commit comments