Restructure test cases and upgraded test environment
[nonrtric.git] / test / auto-test / FTC1100.sh
1 #!/bin/bash
2
3 #  ============LICENSE_START===============================================
4 #  Copyright (C) 2020 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
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
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=================================================
18 #
19
20
21 TC_ONELINE_DESCR="Experimental ECS test case"
22
23 #App names to exclude checking pulling images for, space separated list
24 EXCLUDED_IMAGES="SDNC PA CP CR MR RICSIM CONSUL CBS"
25
26 . ../common/testcase_common.sh  $@
27 . ../common/ecs_api_functions.sh
28
29 #### TEST BEGIN ####
30
31 clean_containers
32
33 use_ecs_rest_https
34
35 use_ecs_rest_https
36
37 start_ecs
38
39 set_ecs_debug
40
41
42
43
44 ecs_api_a1_get_job_ids 200
45 ecs_api_a1_get_type 200
46 ecs_api_a1_get_type_ids 200
47 ecs_api_a1_get_job_status 200
48 ecs_api_a1_get_job 200
49 ecs_api_a1_delete_job 200
50 ecs_api_a1_put_job 200
51 ecs_api_edp_get_type_ids 200
52 ecs_api_edp_get_producer_status 200
53 ecs_api_edp_get_producer_ids 200 NOID
54 ecs_api_edp_get_type 200
55 ecs_api_edp_get_producer 200
56 ecs_api_edp_delete_producer 200
57 ecs_api_edp_put_producer 200
58 ecs_api_edp_get_producer_jobs 200
59 ecs_api_sim_post_job_delete_error 200
60 ecs_api_sim_get_producer_supervision 200
61 ecs_api_sim_post_job_deleted 200
62 ecs_api_get_producer_supervision_error 200
63 ecs_api_sim_get_job_created_error 200
64 ecs_api_sim_get_job_created 200
65 ecs_api_service_status 200
66
67
68
69 store_logs END
70
71 #### TEST COMPLETE ####
72
73
74 print_result
75
76 auto_clean_containers