3 # ============LICENSE_START===============================================
4 # Copyright (C) 2021 Nordix Foundation. All rights reserved.
5 # ========================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=================================================
20 TC_ONELINE_DESCR="Test of Helm Manager"
22 #App names to include in the test when running docker, space separated list
23 DOCKER_INCLUDED_IMAGES="KUBEPROXY CHARTMUS LOCALHELM HELMMANAGER"
25 #App names to include in the test when running kubernetes, space separated list
26 KUBE_INCLUDED_IMAGES="KUBEPROXY CHARTMUS LOCALHELM HELMMANAGER"
27 #Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
28 KUBE_PRESTARTED_IMAGES=""
30 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
31 #the image is not configured in the supplied env_file
32 #Used for images not applicable to all supported profile
33 CONDITIONALLY_IGNORED_IMAGES=""
35 #Supported test environment profiles
36 SUPPORTED_PROFILES="ORAN-E-RELEASE ORAN-F-RELEASE"
38 SUPPORTED_RUNMODES="DOCKER KUBE"
40 . ../common/testcase_common.sh $@
52 localhelm_create_test_chart dummy
54 localhelm_package_test_chart dummy
56 chartmus_upload_test_chart dummy
58 clean_and_create_namespace test-ns
60 localhelm_installed_chart_release NOTINSTALLED test-release test-ns
64 helm_manager_api_get_charts 200 EMPTY
66 helm_manager_api_exec_add_repo cm $CHART_MUS_SERVICE_PATH
68 helm_manager_api_post_repo 201 cm $CHART_MUS_SERVICE_HTTPX $CHART_MUS_SERVICE_HOST $CHART_MUS_SERVICE_PORT
70 helm_manager_api_post_onboard_chart 200 cm dummy DEFAULT-VERSION test-release test-ns
72 helm_manager_api_get_charts 200 cm dummy DEFAULT-VERSION test-release test-ns
74 helm_manager_api_post_install_chart 201 dummy DEFAULT-VERSION
76 localhelm_installed_chart_release INSTALLED test-release test-ns
78 helm_manager_api_get_charts 200 cm dummy DEFAULT-VERSION test-release test-ns
80 helm_manager_api_uninstall_chart 204 dummy DEFAULT-VERSION
82 helm_manager_api_get_charts 200 cm dummy DEFAULT-VERSION test-release test-ns
84 helm_manager_api_delete_chart 204 dummy DEFAULT-VERSION
86 helm_manager_api_get_charts 200 EMPTY
88 localhelm_installed_chart_release NOTINSTALLED test-release test-ns
90 #### TEST COMPLETE ####
96 auto_clean_environment