@@ -23,7 +23,7 @@ var _ = Describe("integration:vm", func() {
2323 "size": "40_960",
2424 "category": "cloud_efficiency"
2525 },
26- "instance_name": "test-cc ",
26+ "instance_name": "bosh- test-cpi-integration ",
2727 "instance_type": "ecs.n4.small",
2828 "system_disk": {
2929 "size": "61_440",
@@ -55,7 +55,7 @@ var _ = Describe("integration:vm", func() {
5555 "director_uuid": "911133bb-7d44-4811-bf8a-b215608bf084"
5656 }
5757 }` ).
58- P ("STEMCELL_ID" , stemcellId ).
58+ P ("STEMCELL_ID" , existingStemcell ).
5959 P ("SECURITY_GROUP_ID" , securityGroupId ).
6060 P ("VSWITCH_ID" , vswitchId ).
6161 P ("INTERNAL_IP" , internalIp ).
@@ -81,9 +81,6 @@ var _ = Describe("integration:vm", func() {
8181 })
8282
8383 It ("can run the vm lifecycle with slb" , func () {
84- if slbId == "" {
85- Skip ("no CPI_SLB_IP settings" )
86- }
8784 By ("create vm with slb" )
8885 in := mock .NewBuilder (`{
8986 "method": "create_vm",
@@ -95,7 +92,7 @@ var _ = Describe("integration:vm", func() {
9592 "size": "40_960",
9693 "category": "cloud_efficiency"
9794 },
98- "instance_name": "test-cc ",
95+ "instance_name": "bosh- test-cpi-integration ",
9996 "instance_type": "ecs.n4.small",
10097 "slbs": ["${SLB_ID}"],
10198 "system_disk": {
@@ -128,7 +125,7 @@ var _ = Describe("integration:vm", func() {
128125 "context": {
129126 "director_uuid": "911133bb-7d44-4811-bf8a-b215608bf084"
130127 }
131- }` ).P ("STEMCELL_ID" , stemcellId ).
128+ }` ).P ("STEMCELL_ID" , existingStemcell ).
132129 P ("SECURITY_GROUP_ID" , securityGroupId ).
133130 P ("VSWITCH_ID" , vswitchId ).
134131 P ("INTERNAL_IP" , internalIp ).
@@ -155,9 +152,6 @@ var _ = Describe("integration:vm", func() {
155152 })
156153
157154 It ("can run the vm lifecycle with external ip" , func () {
158- if externalIp == "" {
159- Skip ("no CPI_EXTERNAL_IP settings" )
160- }
161155 By ("create vm with external ip" )
162156 in := mock .NewBuilder (`{
163157 "method": "create_vm",
@@ -169,7 +163,7 @@ var _ = Describe("integration:vm", func() {
169163 "size": "40_960",
170164 "category": "cloud_efficiency"
171165 },
172- "instance_name": "test-cc ",
166+ "instance_name": "bosh- test-cpi-integration ",
173167 "instance_type": "ecs.n4.small",
174168 "system_disk": {
175169 "size": "61_440",
@@ -207,7 +201,7 @@ var _ = Describe("integration:vm", func() {
207201 "director_uuid": "911133bb-7d44-4811-bf8a-b215608bf084"
208202 }
209203 }` ).
210- P ("STEMCELL_ID" , stemcellId ).
204+ P ("STEMCELL_ID" , existingStemcell ).
211205 P ("SECURITY_GROUP_ID" , securityGroupId ).
212206 P ("VSWITCH_ID" , vswitchId ).
213207 P ("INTERNAL_IP" , internalIp ).
@@ -267,7 +261,7 @@ var _ = Describe("integration:vm", func() {
267261 "size": "40_960",
268262 "category": "cloud_efficiency"
269263 },
270- "instance_name": "test-cc ",
264+ "instance_name": "bosh- test-cpi-integration ",
271265 "instance_type": "ecs.n4.small",
272266 "spot_strategy": "${SPOT_STRATEGY}",
273267 "spot_price_limit": ${SPOT_PRICE_LIMIT},
@@ -301,7 +295,7 @@ var _ = Describe("integration:vm", func() {
301295 "director_uuid": "911133bb-7d44-4811-bf8a-b215608bf084"
302296 }
303297 }` ).
304- P ("STEMCELL_ID" , stemcellId ).
298+ P ("STEMCELL_ID" , existingStemcell ).
305299 P ("SECURITY_GROUP_ID" , securityGroupId ).
306300 P ("VSWITCH_ID" , vswitchId ).
307301 P ("INTERNAL_IP" , internalIp ).
@@ -339,7 +333,7 @@ var _ = Describe("integration:vm", func() {
339333 "size": "40_960",
340334 "category": "cloud_efficiency"
341335 },
342- "instance_name": "test-cc ",
336+ "instance_name": "bosh- test-cpi-integration ",
343337 "instance_type": "ecs.n4.small",
344338 "password": "Cloud12345",
345339 "ram_role_name": "${RAM_ROLE_NAME}",
@@ -373,7 +367,7 @@ var _ = Describe("integration:vm", func() {
373367 "director_uuid": "911133bb-7d44-4811-bf8a-b215608bf084"
374368 }
375369 }` ).
376- P ("STEMCELL_ID" , stemcellId ).
370+ P ("STEMCELL_ID" , existingStemcell ).
377371 P ("SECURITY_GROUP_ID" , securityGroupId ).
378372 P ("VSWITCH_ID" , vswitchId ).
379373 P ("INTERNAL_IP" , internalIp ).
0 commit comments