3 # ============LICENSE_START===============================================
4 # Copyright (C) 2021-2023 Nordix Foundation. All rights reserved.
5 # Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
6 # ========================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=================================================
21 TC_ONELINE_DESCR="Test of Helm Manager"
23 #App names to include in the test when running docker, space separated list
24 DOCKER_INCLUDED_IMAGES="KUBEPROXY CHARTMUS LOCALHELM HELMMANAGER"
26 #App names to include in the test when running kubernetes, space separated list
27 KUBE_INCLUDED_IMAGES="KUBEPROXY CHARTMUS LOCALHELM HELMMANAGER"
28 #Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
29 KUBE_PRESTARTED_IMAGES=""
31 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
32 #the image is not configured in the supplied env_file
33 #Used for images not applicable to all supported profile
34 CONDITIONALLY_IGNORED_IMAGES=""
36 #Supported test environment profiles
37 SUPPORTED_PROFILES="ORAN-G-RELEASE ORAN-H-RELEASE ORAN-I-RELEASE"
39 SUPPORTED_RUNMODES="DOCKER KUBE"
41 . ../common/testcase_common.sh $@
53 localhelm_create_test_chart dummy
55 localhelm_package_test_chart dummy
57 chartmus_upload_test_chart dummy
59 clean_and_create_namespace test-ns
61 localhelm_installed_chart_release NOTINSTALLED test-release test-ns
65 helm_manager_api_get_charts 200 EMPTY
67 helm_manager_api_exec_add_repo cm $CHART_MUS_SERVICE_PATH
69 helm_manager_api_post_repo 201 cm $CHART_MUS_SERVICE_HTTPX $CHART_MUS_SERVICE_HOST $CHART_MUS_SERVICE_PORT
71 helm_manager_api_post_onboard_chart 200 cm dummy DEFAULT-VERSION test-release test-ns
73 helm_manager_api_get_charts 200 cm dummy DEFAULT-VERSION test-release test-ns
75 helm_manager_api_post_install_chart 201 dummy DEFAULT-VERSION
77 localhelm_installed_chart_release INSTALLED test-release test-ns
79 helm_manager_api_get_charts 200 cm dummy DEFAULT-VERSION test-release test-ns
81 helm_manager_api_uninstall_chart 204 dummy DEFAULT-VERSION
83 helm_manager_api_get_charts 200 cm dummy DEFAULT-VERSION test-release test-ns
85 helm_manager_api_delete_chart 204 dummy DEFAULT-VERSION
87 helm_manager_api_get_charts 200 EMPTY
89 localhelm_installed_chart_release NOTINSTALLED test-release test-ns
91 #### TEST COMPLETE ####
97 auto_clean_environment