Merge "Ceph-RGW: fix helm test"

This commit is contained in:
Zuul 2019-08-26 18:43:49 +00:00 committed by Gerrit Code Review
commit 49c8c744ac
3 changed files with 13 additions and 9 deletions

View File

@ -144,13 +144,13 @@ function rgw_s3_bucket_validation ()
fi
}
if [ {{ .Values.conf.rgw_ks.enabled }} == true ];
if [ "$RGW_TEST_TYPE" == RGW_KS ];
then
echo "--> Keystone is enabled. Calling function to test keystone based auth "
rgw_keystone_bucket_validation
fi
if [ {{ .Values.conf.rgw_s3.enabled }} == true ];
if [ "$RGW_TEST_TYPE" == RGW_S3 ];
then
echo "--> S3 is enabled. Calling function to test S3 based auth "
rgw_s3_bucket_validation

View File

@ -52,6 +52,8 @@ spec:
name: {{ $.Values.secrets.identity.user_rgw }}
key: OS_TENANT_NAME
{{- end }}
- name: "RGW_TEST_TYPE"
value: "RGW_KS"
command:
- /tmp/helm-tests.sh
volumeMounts:
@ -82,6 +84,8 @@ spec:
{{- end }}
- name: RGW_HOST
value: {{ tuple "ceph_object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
- name: "RGW_TEST_TYPE"
value: "RGW_S3"
command:
- /tmp/helm-tests.sh
volumeMounts:

View File

@ -148,13 +148,13 @@ pod:
limits:
memory: "1024Mi"
cpu: "2000m"
tests:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "1024Mi"
cpu: "2000m"
tests:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "1024Mi"
cpu: "2000m"
network_policy:
ceph: