forked from Juniper/contrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_input.yml
86 lines (86 loc) · 1.92 KB
/
test_input.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Virtual Network Test
description: basic virtual network test
test_data:
vn_blue: &vn_blue
fq_name: ["default-domain", "admin", "vnblue"]
parent_uuid: {{ project_uuid }}
parent_type: "project"
uuid: {{ blue_uuid }}
display_name: blue
clients:
default:
id: admin
password: contrail123
domain: default
insecure: true
scope:
project:
name: admin
domain:
id: default
workflow:
- name: get project
request:
path: /project/{{ project_uuid }}
method: GET
expected:
- 200
- name: create virtual network blue
request:
path: /virtual-networks
method: POST
expected:
- 200
data:
virtual-network: *vn_blue
expect:
virtual-network: *vn_blue
- name: list virtual networks with detail
request:
path: /virtual-networks?detail=true
method: GET
expected:
- 200
- name: list virtual networks with share
request:
path: /virtual-networks?shared=true
method: GET
expected:
- 200
- name: list virtual networks with filters
request:
path: "/virtual-networks?filters=display_name==blue"
method: GET
expected:
- 200
- name: list virtual networks with parent_id
request:
path: "/virtual-networks?parent_id={{ project_uuid }}"
method: GET
expected:
- 200
- name: list virtual networks with parent_fq_name_str
request:
path: "/virtual-networks?parent_fq_name_str=default:admin"
method: GET
expected:
- 200
- name: list virtual networks with page limit
request:
path: "/virtual-networks?pageLimit=1&detail=true"
method: GET
expected:
- 200
- name: list virtual networks with obj_uuids
request:
path: "/virtual-networks?obj_uuids={{ blue_uuid }}&detail=true"
method: GET
expected:
- 200
- name: delete virtual network
request:
path: /virtual-network/{{ blue_uuid }}
method: DELETE
expected:
- 200
expect: null