blob: 0d3371a82898f0538b040849c27e757b59e0cd9b [file] [log] [blame]
BjornMagnussonXAbf3700b2020-10-05 08:39:40 +02001#!/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
21TC_ONELINE_DESCR="Experimental ECS test case"
22
23#App names to exclude checking pulling images for, space separated list
24EXCLUDED_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
31clean_containers
32
33use_ecs_rest_https
34
35use_ecs_rest_https
36
37start_ecs
38
39set_ecs_debug
40
41
42
43
44ecs_api_a1_get_job_ids 200
45ecs_api_a1_get_type 200
46ecs_api_a1_get_type_ids 200
47ecs_api_a1_get_job_status 200
48ecs_api_a1_get_job 200
49ecs_api_a1_delete_job 200
50ecs_api_a1_put_job 200
51ecs_api_edp_get_type_ids 200
52ecs_api_edp_get_producer_status 200
53ecs_api_edp_get_producer_ids 200 NOID
54ecs_api_edp_get_type 200
55ecs_api_edp_get_producer 200
56ecs_api_edp_delete_producer 200
57ecs_api_edp_put_producer 200
58ecs_api_edp_get_producer_jobs 200
59ecs_api_sim_post_job_delete_error 200
60ecs_api_sim_get_producer_supervision 200
61ecs_api_sim_post_job_deleted 200
62ecs_api_get_producer_supervision_error 200
63ecs_api_sim_get_job_created_error 200
64ecs_api_sim_get_job_created 200
65ecs_api_service_status 200
66
67
68
69store_logs END
70
71#### TEST COMPLETE ####
72
73
74print_result
75
76auto_clean_containers