-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathtest_instance_ip.yml
138 lines (126 loc) · 3.05 KB
/
test_instance_ip.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Instance IP Test
description: basic instance ip test
cleanup:
- path: /virtual-network/vn_instance_ip_blue
- path: /network-ipam/test_ipam_instance_ip_blue
- path: /instance-ip/test_instance_ip
test_data:
admin_project: &admin_project_instance_ip
uuid: admin_instance_ip_project_uuid
name: admin_instance_ip_project
parent_type: domain
parent_uuid: beefbeef-beef-beef-beef-beefbeef0002
quota: {}
network_ipam: &network_ipam_blue
network_ipam_mgmt:
host_routes:
route:
- prefix: "test_prefix"
next_hop: "1.2.3.5"
uuid: test_ipam_instance_ip_blue
display_name: test_ipam_instance_ip_blue
parent_type: project
parent_uuid: admin_instance_ip_project_uuid
fq_name: ["domain","admin","test_ipam_instance_ip_blue"]
vn_instance_ip: &vn_instance_ip_blue
fq_name: ["default", "admin_instance_ip", "vn_instance_ip_blue"]
uuid: vn_instance_ip_blue
parent_type: project
parent_uuid: admin_instance_ip_project_uuid
route_target_list:
route_target: ["100:200"]
network_ipam_refs:
- uuid: test_ipam_instance_ip_blue
clients:
default:
id: alice
password: alice_password
insecure: true
scope:
project:
name: admin
workflow:
- name: create project
request:
path: /projects
method: POST
expected:
- 200
data:
project: *admin_project_instance_ip
expect:
project: *admin_project_instance_ip
- name: create network ipam
request:
path: /network-ipams
method: POST
expected:
- 200
data:
network-ipam: *network_ipam_blue
expect:
network-ipam: *network_ipam_blue
- name: create virtual network
request:
path: /virtual-networks
method: POST
expected:
- 200
data:
virtual-network: *vn_instance_ip_blue
expect:
virtual-network: *vn_instance_ip_blue
- name: create instance ip
request:
path: /instance-ips
method: POST
expected:
- 200
data:
instance-ip:
fq_name: ["test_instance_ip"]
uuid: "test_instance_ip"
network_ipam_refs:
- uuid: test_ipam_instance_ip_blue
virtual_network_refs:
- uuid: vn_instance_ip_blue
expect:
instance-ip:
fq_name: ["test_instance_ip"]
uuid: "test_instance_ip"
network_ipam_refs:
- uuid: test_ipam_instance_ip_blue
virtual_network_refs:
- uuid: vn_instance_ip_blue
- name: update instance ip ip-family
request:
path: /instance-ip/test_instance_ip
method: PUT
expected:
- 200
data:
instance-ip:
uuid: "test_instance_ip"
InstanceIPFamily: "v6"
expect: null
- name: delete instance ip
request:
path: /instance-ip/test_instance_ip
method: DELETE
expected:
- 200
expect: null
- name: delete virtual network
request:
path: /virtual-network/vn_instance_ip_blue
method: DELETE
expected:
- 200
expect: null
- name: delete network ipam
request:
path: /network-ipam/test_ipam_instance_ip_blue
method: DELETE
expected:
- 200
expect: null