Skip to content

Commit f640c50

Browse files
authored
Include community module in e2e intergation scenario (#2772) (#2774)
1 parent d19dd3e commit f640c50

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

tests/btp/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: prerequisites
22
prerequisites:
33
terraform -chdir=tf init
4-
terraform -chdir=tf apply --auto-approve -var-file=.tfvars
4+
terraform -chdir=tf apply --auto-approve -var-file=terraform.tfvars
55

66
.PHONY: e2e-test
77
e2e-test: |

tests/btp/integration-test-btp.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ while ! kubectl get secret object-store-reference-binding --namespace kyma-syste
5050

5151
# Enable Docker Registry
5252
echo -e "\n--------------------------------------------------------------------------------------\n"
53-
echo -e "Step5: Enable Docker Registry from experimental channel (with persistent BTP based storage)\n"
54-
../../bin/kyma module add docker-registry --channel experimental --cr-path k8s-resources/custom-docker-registry.yaml
53+
echo -e "Step5: Enable Docker Registry community module (with persistent BTP based storage)\n"
54+
../../bin/kyma module pull docker-registry
55+
../../bin/kyma module add default/docker-registry-0.10.0 --cr-path k8s-resources/custom-docker-registry.yaml --auto-approve
5556

5657
echo "..waiting for docker registry"
5758
kubectl wait --for condition=Installed dockerregistries.operator.kyma-project.io/custom-dr -n kyma-system --timeout=360s
@@ -98,6 +99,7 @@ kubectl label namespace default istio-injection=enabled --overwrite
9899

99100
../../bin/kyma app push --name bookstore --expose --container-port 3000 --mount-service-binding-secret hana-hdi-binding --code-path sample-http-db-nodejs/bookstore
100101

102+
echo -e ""
101103
kubectl wait --for condition=Available deployment bookstore --timeout=60s
102104
kubectl wait --for='jsonpath={.status.state}=Ready' apirules.gateway.kyma-project.io/bookstore
103105

@@ -113,5 +115,9 @@ if [[ $response != '[{"id":1,"title":"Dune","author":"Frank Herbert"},{"id":2,"t
113115
exit 1
114116
fi
115117

118+
# TODO enable after https://github.com/kyma-project/docker-registry/issues/447 is fixed
119+
# echo -e "\n--------------------------------------------------------------------------------------\n"
120+
# echo -e "Step11: Uninstalling community module \n"
121+
# ../../bin/kyma module delete default/docker-registry-0.10.0
116122

117123
exit 0

tests/btp/kyma-cleanup.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ kubectl delete serviceinstances.services.cloud.sap.com -A --all
1616
kubectl delete secret -n kyma-system remote-service-manager-credentials
1717

1818
rm tf/btp-access-credentials-secret.yaml || true
19-
rm tf/hana-admin-creds.json || true
20-
rm tf/creds.json || true
2119

2220
rm tf/terraform.tfstate.backup || true
2321
rm tf/terraform.tfstate || true

0 commit comments

Comments
 (0)