chef-provisioning-opennebula 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -3
  3. data/lib/chef/provisioning/opennebula_driver/driver.rb +7 -1
  4. data/lib/chef/provisioning/opennebula_driver/version.rb +1 -1
  5. data/spec/config_sample.rb +19 -18
  6. data/spec/integration/one_driver_spec.rb +84 -0
  7. data/spec/integration/one_flow_spec.rb +340 -0
  8. data/spec/recipes/OneDriver/{instantiate_one_template_vnet.rb → allocate_one_vm.rb} +6 -4
  9. data/spec/recipes/OneDriver/attach_one_image.rb +2 -2
  10. data/spec/recipes/OneDriver/converge_one_vm.rb +17 -0
  11. data/spec/recipes/OneDriver/create_one_image.rb +1 -1
  12. data/spec/recipes/OneDriver/create_one_template.rb +18 -0
  13. data/spec/recipes/OneDriver/create_one_vnet.rb +2 -2
  14. data/spec/recipes/OneDriver/{delete/OpenNebula-test-vm.rb → delete_one_img.rb} +1 -1
  15. data/spec/recipes/OneDriver/{delete/OpenNebula-test-img.rb → delete_one_snap-img.rb} +1 -1
  16. data/spec/recipes/{OneFlowService/delete/test_role_action.rb → OneDriver/delete_one_template.rb} +1 -1
  17. data/spec/recipes/OneDriver/{delete/OpenNebula-test-vm-vnet.rb → delete_one_vm.rb} +1 -1
  18. data/spec/recipes/OneDriver/{delete/OpenNebula-test-vnet.rb → delete_one_vnet.rb} +1 -1
  19. data/spec/recipes/OneDriver/ready_one_vm.rb +17 -0
  20. data/spec/recipes/OneDriver/snapshot_one_image.rb +3 -3
  21. data/spec/recipes/OneDriver/update_one_template.rb +20 -0
  22. data/spec/recipes/{OneFlowTemplate/create_branch_from_one_id.rb → OneFlow/branch_json_template_by_id.rb} +6 -6
  23. data/spec/recipes/OneFlow/branch_json_template_by_name.rb +42 -0
  24. data/spec/recipes/{OneFlowTemplate/chmod_simple_from_hash.rb → OneFlow/chmod_file_template.rb} +1 -1
  25. data/spec/recipes/{OneFlowService/chmod_simple_by_name_2.rb → OneFlow/chmod_json_service_by_id.rb} +2 -2
  26. data/spec/recipes/{OneFlowService/instance_simple_by_name.rb → OneFlow/chmod_json_service_by_name.rb} +2 -2
  27. data/spec/recipes/{OneDriver/delete/OpenNebula-test-snap-img.rb → OneFlow/chmod_json_template.rb} +2 -2
  28. data/spec/recipes/OneFlow/create_file_template.rb +18 -0
  29. data/spec/recipes/{OneFlowTemplate/create_tpl_opts_from_hash.rb → OneFlow/create_file_template_with_opts.rb} +8 -11
  30. data/spec/recipes/OneFlow/create_http_template.rb +17 -0
  31. data/spec/recipes/{OneFlowService/instance_simple_by_id.rb → OneFlow/create_json_service_by_id.rb} +4 -2
  32. data/spec/recipes/{OneFlowService/chmod_simple_by_name.rb → OneFlow/create_json_service_by_name.rb} +2 -2
  33. data/spec/recipes/{OneFlowService/instance_tpl_opts.rb → OneFlow/create_json_service_with_opts.rb} +8 -6
  34. data/spec/recipes/{OneFlowTemplate/create_simple_from_hash.rb → OneFlow/create_json_template.rb} +4 -3
  35. data/spec/recipes/{OneFlowTemplate/create_tpl_opts_from_file.rb → OneFlow/create_json_template_with_opts.rb} +15 -7
  36. data/spec/recipes/{OneFlowService/instance_role_action.rb → OneFlow/create_role_action_service.rb} +8 -8
  37. data/spec/recipes/OneFlow/create_role_action_template.rb +89 -0
  38. data/spec/recipes/OneFlow/delete_branched_template_by_id.rb +17 -0
  39. data/spec/recipes/OneFlow/delete_branched_template_by_name.rb +17 -0
  40. data/spec/recipes/{OneDriver/delete/OpenNebula-test-tpl-strings.rb → OneFlow/delete_file_template.rb} +1 -1
  41. data/spec/recipes/OneFlow/delete_file_template_with_opts.rb +17 -0
  42. data/spec/recipes/{OneDriver/delete/OpenNebula-test-tpl-ints.rb → OneFlow/delete_http_template.rb} +1 -1
  43. data/spec/recipes/{OneDriver/delete/OpenNebula-test-tpl-mix.rb → OneFlow/delete_json_service_by_id.rb} +1 -1
  44. data/spec/recipes/OneFlow/delete_json_service_by_name.rb +17 -0
  45. data/spec/recipes/OneFlow/delete_json_service_with_opts.rb +17 -0
  46. data/spec/recipes/OneFlow/delete_json_template.rb +17 -0
  47. data/spec/recipes/OneFlow/delete_json_template_with_opts.rb +17 -0
  48. data/spec/recipes/OneFlow/delete_role_action_service.rb +17 -0
  49. data/spec/recipes/OneFlow/delete_role_action_template.rb +17 -0
  50. data/spec/recipes/{OneFlowService/action/boot.rb → OneFlow/service_action_boot.rb} +4 -3
  51. data/spec/recipes/OneFlow/service_action_delete.rb +18 -0
  52. data/spec/recipes/{OneFlowService/action/delete_recreate.rb → OneFlow/service_action_delete_recreate.rb} +2 -2
  53. data/spec/recipes/{OneFlowService/action/hold.rb → OneFlow/service_action_hold.rb} +4 -3
  54. data/spec/recipes/{OneFlowService/action/poweroff.rb → OneFlow/service_action_poweroff.rb} +2 -2
  55. data/spec/recipes/{OneFlowService/action/poweroff_hard.rb → OneFlow/service_action_poweroff_hard.rb} +2 -2
  56. data/spec/recipes/{OneFlowService/action/reboot.rb → OneFlow/service_action_reboot.rb} +2 -2
  57. data/spec/recipes/{OneFlowService/action/reboot_hard.rb → OneFlow/service_action_reboot_hard.rb} +2 -2
  58. data/spec/recipes/{OneFlowService/action/release.rb → OneFlow/service_action_release.rb} +4 -3
  59. data/spec/recipes/OneFlow/service_action_resume_poweroff.rb +18 -0
  60. data/spec/recipes/OneFlow/service_action_resume_poweroff_hard.rb +18 -0
  61. data/spec/recipes/{OneFlowService/action/resume.rb → OneFlow/service_action_resume_stop.rb} +2 -2
  62. data/spec/recipes/OneFlow/service_action_resume_suspend.rb +18 -0
  63. data/spec/recipes/OneFlow/service_action_resume_undeploy.rb +18 -0
  64. data/spec/recipes/OneFlow/service_action_resume_undeploy_hard.rb +18 -0
  65. data/spec/recipes/{OneFlowService/action/scale.rb → OneFlow/service_action_scale.rb} +2 -2
  66. data/spec/recipes/{OneFlowService/action/shutdown.rb → OneFlow/service_action_shutdown.rb} +2 -2
  67. data/spec/recipes/{OneFlowService/action/shutdown_hard.rb → OneFlow/service_action_shutdown_hard.rb} +2 -2
  68. data/spec/recipes/{OneFlowService/action/snapshot_create.rb → OneFlow/service_action_snapshot_create.rb} +2 -2
  69. data/spec/recipes/{OneFlowService/action/stop.rb → OneFlow/service_action_stop.rb} +2 -2
  70. data/spec/recipes/{OneFlowService/action/suspend.rb → OneFlow/service_action_suspend.rb} +2 -2
  71. data/spec/recipes/{OneFlowService/action/undeploy.rb → OneFlow/service_action_undeploy.rb} +2 -2
  72. data/spec/recipes/{OneFlowService/action/undeploy_hard.rb → OneFlow/service_action_undeploy_hard.rb} +2 -2
  73. data/spec/recipes/{OneFlowService/action/shutdown_service.rb → OneFlow/shutdown_role_action_service.rb} +1 -1
  74. data/spec/recipes/{OneFlowTemplate/update_simple_from_hash.rb → OneFlow/update_json_template.rb} +17 -14
  75. data/spec/recipes/common.rb +0 -2
  76. data/spec/spec_helper.rb +97 -42
  77. metadata +86 -89
  78. data/spec/integration/test_all_integration_spec.rb +0 -21
  79. data/spec/integration/test_one_driver.rb +0 -177
  80. data/spec/integration/test_one_flow.rb +0 -546
  81. data/spec/recipes/OneDriver/allocate_change_profile.rb +0 -23
  82. data/spec/recipes/OneDriver/create_one_template_ints.rb +0 -38
  83. data/spec/recipes/OneDriver/create_one_template_mix.rb +0 -51
  84. data/spec/recipes/OneDriver/create_one_template_strings.rb +0 -34
  85. data/spec/recipes/OneDriver/instantiate_one_template.rb +0 -21
  86. data/spec/recipes/OneFlowService/action/delete.rb +0 -18
  87. data/spec/recipes/OneFlowService/chmod_tpl_opts.rb +0 -31
  88. data/spec/recipes/OneFlowService/delete/test_instance_template_options.rb +0 -17
  89. data/spec/recipes/OneFlowService/delete/test_simple_instance.rb +0 -17
  90. data/spec/recipes/OneFlowService/delete/test_simple_instance_by_id.rb +0 -17
  91. data/spec/recipes/OneFlowTemplate/chmod_update_simple_from_file.rb +0 -19
  92. data/spec/recipes/OneFlowTemplate/create_branch_from_one_name.rb +0 -20
  93. data/spec/recipes/OneFlowTemplate/create_role_action_instance.rb +0 -99
  94. data/spec/recipes/OneFlowTemplate/create_simple_from_file.rb +0 -18
  95. data/spec/recipes/OneFlowTemplate/create_simple_from_web.rb +0 -17
  96. data/spec/recipes/OneFlowTemplate/create_simple_instance_tpl.rb +0 -22
  97. data/spec/recipes/OneFlowTemplate/delete/branch_from_one_id.rb +0 -17
  98. data/spec/recipes/OneFlowTemplate/delete/branch_from_one_name.rb +0 -17
  99. data/spec/recipes/OneFlowTemplate/delete/role_action_instance.rb +0 -17
  100. data/spec/recipes/OneFlowTemplate/delete/simple_from_file.rb +0 -17
  101. data/spec/recipes/OneFlowTemplate/delete/simple_from_hash.rb +0 -17
  102. data/spec/recipes/OneFlowTemplate/delete/simple_from_web.rb +0 -17
  103. data/spec/recipes/OneFlowTemplate/delete/simple_instance_tpl.rb +0 -17
  104. data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_file.rb +0 -17
  105. data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_hash.rb +0 -17
  106. data/spec/support/opennebula_support.rb +0 -129
@@ -1,546 +0,0 @@
1
- # Copyright 2016, BlackBerry Limited
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'spec_helper'
16
- require 'chef/provisioning/opennebula_driver'
17
- require "#{File.dirname(__FILE__)}/../config.rb"
18
-
19
- describe 'OneFlow' do
20
- ########################
21
- ## CREATE VM TEMPLATE ##
22
- ########################
23
-
24
- describe 'create_one_template_strings.rb' do
25
- it do
26
- is_expected.to converge_test_recipe(
27
- :recipe => 'OneDriver/create_one_template_strings.rb',
28
- :expected => "create template 'OpenNebula-test-tpl-strings'"
29
- )
30
- end
31
- end
32
-
33
- ###########################
34
- ## CREATE FLOW TEMPLATES ##
35
- ###########################
36
-
37
- describe ':create' do
38
- idempotency_helper(
39
- 'Create simple flow template from hash',
40
- 'OneFlowTemplate/create_simple_from_hash.rb',
41
- "created template 'test_simple_from_hash'"
42
- )
43
- end
44
-
45
- describe ':create' do
46
- idempotency_helper(
47
- 'Update simple flow template from hash',
48
- 'OneFlowTemplate/update_simple_from_hash.rb',
49
- "updated template 'test_simple_from_hash'"
50
- )
51
- end
52
-
53
- describe ':create' do
54
- idempotency_helper(
55
- 'Chmod simple flow template from hash',
56
- 'OneFlowTemplate/chmod_simple_from_hash.rb',
57
- "updated template 'test_simple_from_hash'"
58
- )
59
- end
60
-
61
- describe ':create' do
62
- idempotency_helper(
63
- 'Update simple flow template from web',
64
- 'OneFlowTemplate/create_simple_from_web.rb',
65
- "created template 'test_simple_from_web'"
66
- )
67
- end
68
-
69
- describe ':create' do
70
- before(:context) do
71
- File.open('/tmp/one_rspec_test.json', 'w') do |f|
72
- f.write(
73
- {
74
- :roles => [
75
- {
76
- :name => 'gary_ubuntu',
77
- :vm_template => Chef::Provisioning::OpenNebulaDriver.get_onelib(
78
- :driver_url => DRIVER_URL
79
- ).get_resource(:template, :name => 'OpenNebula-test-tpl-strings').to_hash['VMTEMPLATE']['ID'].to_i
80
- }
81
- ]
82
- }.to_json
83
- )
84
- end
85
- end
86
- idempotency_helper(
87
- 'Create simple flow template from file',
88
- 'OneFlowTemplate/create_simple_from_file.rb',
89
- "created template 'test_simple_from_file'"
90
- )
91
- after(:context) do
92
- File.delete('/tmp/one_rspec_test.json')
93
- end
94
- end
95
-
96
- describe ':create' do
97
- before(:context) do
98
- File.open('/tmp/one_rspec_test.json', 'w') do |f|
99
- f.write(
100
- {
101
- :name => 'test_simple_from_file',
102
- :roles => [
103
- {
104
- :name => 'gary_ubuntu',
105
- :delete_role => true
106
- },
107
- {
108
- :name => 'gary_ubuntu_new',
109
- :vm_template => Chef::Provisioning::OpenNebulaDriver.get_onelib(
110
- :driver_url => DRIVER_URL
111
- ).get_resource(:template, :name => 'OpenNebula-test-tpl-strings').to_hash['VMTEMPLATE']['ID'].to_i
112
- }
113
- ]
114
- }.to_json
115
- )
116
- end
117
- end
118
- idempotency_helper(
119
- 'Chmod and update simple flow template from file',
120
- 'OneFlowTemplate/chmod_update_simple_from_file.rb',
121
- "updated template 'test_simple_from_file'"
122
- )
123
- after(:context) do
124
- File.delete('/tmp/one_rspec_test.json')
125
- end
126
- end
127
-
128
- describe ':create' do
129
- idempotency_helper(
130
- 'Create flow template with template_options from hash',
131
- 'OneFlowTemplate/create_tpl_opts_from_hash.rb',
132
- "created template 'test_tpl_opts_from_hash'"
133
- )
134
- end
135
-
136
- describe ':create' do
137
- before(:context) do
138
- File.open('/tmp/one_rspec_test.json', 'w') do |f|
139
- f.write(
140
- {
141
- :name => 'gary',
142
- :deployment => 'straight',
143
- :roles => [
144
- {
145
- :name => 'gary_ubuntu',
146
- :vm_template => Chef::Provisioning::OpenNebulaDriver.get_onelib(
147
- :driver_url => DRIVER_URL
148
- ).get_resource(:template, :name => 'OpenNebula-test-tpl-strings').to_hash['VMTEMPLATE']['ID'].to_i
149
- }
150
- ]
151
- }.to_json
152
- )
153
- end
154
- end
155
- idempotency_helper(
156
- 'Create flow template with template_options from file',
157
- 'OneFlowTemplate/create_tpl_opts_from_file.rb',
158
- "created template 'test_tpl_opts_from_file'"
159
- )
160
- after(:context) do
161
- File.delete('/tmp/one_rspec_test.json')
162
- end
163
- end
164
-
165
- describe ':create' do
166
- idempotency_helper(
167
- 'Create flow template that branch off of \'test_simple_from_hash\' by name',
168
- 'OneFlowTemplate/create_branch_from_one_name.rb',
169
- "created template 'test_branch_from_one_name'"
170
- )
171
- end
172
-
173
- describe ':create' do
174
- idempotency_helper(
175
- 'Create flow template that branch off of \'test_simple_from_hash\' by id',
176
- 'OneFlowTemplate/create_branch_from_one_id.rb',
177
- "created template 'test_branch_from_one_id'"
178
- )
179
- end
180
-
181
- describe ':create' do
182
- idempotency_helper(
183
- 'Create simple instance flow template',
184
- 'OneFlowTemplate/create_simple_instance_tpl.rb',
185
- "created template 'test_simple_instance_tpl'"
186
- )
187
- end
188
-
189
- describe ':create' do
190
- idempotency_helper(
191
- 'Create flow template which will be used to test all role actions',
192
- 'OneFlowTemplate/create_role_action_instance.rb',
193
- "created template 'test_role_action_instance'"
194
- )
195
- end
196
-
197
- ###########################
198
- ## INSTANTIATE TEMPLATES ##
199
- ###########################
200
-
201
- describe ':instantiate' do
202
- idempotency_helper(
203
- 'Create simple instance by name',
204
- 'OneFlowService/instance_simple_by_name.rb',
205
- "instantiated service 'test_simple_instance'"
206
- )
207
- end
208
-
209
- describe ':instantiate' do
210
- idempotency_helper(
211
- 'Create simple instance by id',
212
- 'OneFlowService/instance_simple_by_id.rb',
213
- "instantiated service 'test_simple_instance_by_id'"
214
- )
215
- end
216
-
217
- describe ':instantiate' do
218
- idempotency_helper(
219
- 'Create simple instance with template_options',
220
- 'OneFlowService/instance_tpl_opts.rb',
221
- "instantiated service 'test_instance_template_options'"
222
- )
223
- end
224
-
225
- describe ':instantiate' do
226
- idempotency_helper(
227
- 'Chmod simple instance',
228
- 'OneFlowService/chmod_simple_by_name.rb',
229
- "updated service 'test_simple_instance'"
230
- )
231
- end
232
-
233
- describe ':instantiate' do
234
- idempotency_helper(
235
- 'Chmod simple instance',
236
- 'OneFlowService/chmod_simple_by_name_2.rb',
237
- "updated service 'test_simple_instance'"
238
- )
239
- end
240
-
241
- describe ':instantiate' do
242
- idempotency_helper(
243
- 'Chmod simple instance with template_options',
244
- 'OneFlowService/chmod_tpl_opts.rb',
245
- "updated service 'test_instance_template_options'"
246
- )
247
- end
248
-
249
- describe ':instantiate' do
250
- idempotency_helper(
251
- 'Create instance for testing role actions',
252
- 'OneFlowService/instance_role_action.rb',
253
- "instantiated service 'test_role_action'"
254
- )
255
- end
256
-
257
- describe ':snapshot_create' do
258
- context 'Snapshot of a role' do
259
- it do
260
- is_expected.to converge_test_recipe(
261
- :recipe => 'OneFlowService/action/snapshot_create.rb',
262
- :expected => "created a snapshot for role 'snapshot_create' of service 'test_role_action'"
263
- )
264
- end
265
- end
266
- end
267
-
268
- describe ':scale' do
269
- idempotency_helper(
270
- 'Scale a role',
271
- 'OneFlowService/action/scale.rb',
272
- "scaled role 'scale' of service 'test_role_action' to cardinality '2'"
273
- )
274
- end
275
-
276
- describe ':shutdown' do
277
- idempotency_helper(
278
- 'Shutdown a role',
279
- 'OneFlowService/action/shutdown.rb',
280
- "shutdown role 'shutdown' of service 'test_role_action'"
281
- )
282
- end
283
-
284
- describe ':shutdown_hard' do
285
- idempotency_helper(
286
- 'Shutdown-hard a role',
287
- 'OneFlowService/action/shutdown_hard.rb',
288
- "performed hard shutdown of role 'shutdown_hard' of service 'test_role_action'"
289
- )
290
- end
291
-
292
- describe ':undeploy' do
293
- idempotency_helper(
294
- 'Undeploy a role',
295
- 'OneFlowService/action/undeploy.rb',
296
- "undeployed role 'undeploy' of service 'test_role_action'"
297
- )
298
- end
299
-
300
- describe ':undeploy_hard' do
301
- idempotency_helper(
302
- 'Undeploy-hard a role',
303
- 'OneFlowService/action/undeploy_hard.rb',
304
- "hard undeployed role 'undeploy_hard' of service 'test_role_action'"
305
- )
306
- end
307
-
308
- describe ':hold' do
309
- context 'Hold a role' do
310
- it do
311
- is_expected.to converge_test_recipe(
312
- :recipe => 'OneFlowService/action/hold.rb',
313
- :expected => "held role 'hold' of service 'test_role_action'"
314
- )
315
- end
316
- end
317
- end
318
-
319
- describe ':release' do
320
- context 'Release of a role' do
321
- it do
322
- is_expected.to converge_test_recipe(
323
- :recipe => 'OneFlowService/action/release.rb',
324
- :expected => "released role 'release' of service 'test_role_action'"
325
- )
326
- end
327
- end
328
- end
329
-
330
- describe ':suspend' do
331
- idempotency_helper(
332
- 'Suspend a role',
333
- 'OneFlowService/action/suspend.rb',
334
- "suspended role 'suspend_resume' of service 'test_role_action'"
335
- )
336
- end
337
-
338
- describe ':resume' do
339
- idempotency_helper(
340
- 'Resume a role',
341
- 'OneFlowService/action/resume.rb',
342
- "resumed role 'suspend_resume' of service 'test_role_action'"
343
- )
344
- end
345
-
346
- describe ':boot' do
347
- context 'Boot a role' do
348
- it do
349
- is_expected.to converge_test_recipe(
350
- :recipe => 'OneFlowService/action/boot.rb',
351
- :expected => "booted role 'boot' of service 'test_role_action'"
352
- )
353
- end
354
- end
355
- end
356
-
357
- describe ':delete' do
358
- idempotency_helper(
359
- 'Delete a role',
360
- 'OneFlowService/action/delete.rb',
361
- "deleted role 'delete' of service 'test_role_action'"
362
- )
363
- end
364
-
365
- describe ':delete_recreate' do
366
- context 'Delete recreate a role' do
367
- it do
368
- is_expected.to converge_test_recipe(
369
- :recipe => 'OneFlowService/action/delete_recreate.rb',
370
- :expected => "deleted and recreated role 'delete_recreate' of service 'test_role_action'"
371
- )
372
- end
373
- end
374
- end
375
-
376
- describe ':reboot' do
377
- context 'Reboot recreate a role' do
378
- it do
379
- is_expected.to converge_test_recipe(
380
- :recipe => 'OneFlowService/action/reboot.rb',
381
- :expected => "rebooted role 'reboot' of service 'test_role_action'"
382
- )
383
- end
384
- end
385
- end
386
-
387
- describe ':reboot_hard' do
388
- context 'Reboot hard a role' do
389
- it do
390
- is_expected.to converge_test_recipe(
391
- :recipe => 'OneFlowService/action/reboot_hard.rb',
392
- :expected => "hard rebooted role 'reboot_hard' of service 'test_role_action'"
393
- )
394
- end
395
- end
396
- end
397
-
398
- describe ':poweroff' do
399
- idempotency_helper(
400
- 'Poweroff a role',
401
- 'OneFlowService/action/poweroff.rb',
402
- "powered-off role 'poweroff' of service 'test_role_action'"
403
- )
404
- end
405
-
406
- describe ':poweroff_hard' do
407
- idempotency_helper(
408
- 'Poweroff hard a role',
409
- 'OneFlowService/action/poweroff_hard.rb',
410
- "hard powered-off role 'poweroff_hard' of service 'test_role_action'"
411
- )
412
- end
413
-
414
- describe ':shutdown' do
415
- idempotency_helper(
416
- 'Shutdown the service',
417
- 'OneFlowService/action/shutdown_service.rb',
418
- "shutdown service 'test_role_action'"
419
- )
420
- end
421
-
422
- #####################
423
- ## DELETE SERVICES ##
424
- #####################
425
-
426
- describe ':delete' do
427
- idempotency_helper(
428
- 'Delete service test_simple_instance',
429
- 'OneFlowService/delete/test_simple_instance.rb',
430
- "deleted service 'test_simple_instance'"
431
- )
432
- end
433
-
434
- describe ':delete' do
435
- idempotency_helper(
436
- 'Delete service test_simple_instance_by_id',
437
- 'OneFlowService/delete/test_simple_instance_by_id.rb',
438
- "deleted service 'test_simple_instance_by_id'"
439
- )
440
- end
441
-
442
- describe ':delete' do
443
- idempotency_helper(
444
- 'Delete service test_instance_template_options',
445
- 'OneFlowService/delete/test_instance_template_options.rb',
446
- "deleted service 'test_instance_template_options'"
447
- )
448
- end
449
-
450
- describe ':delete' do
451
- idempotency_helper(
452
- 'Delete service test_role_action',
453
- 'OneFlowService/delete/test_role_action.rb',
454
- "deleted service 'test_role_action'"
455
- )
456
- end
457
-
458
- ###########################
459
- ## DELETE FLOW TEMPLATES ##
460
- ###########################
461
-
462
- describe ':delete' do
463
- idempotency_helper(
464
- 'Delete simple flow template from hash',
465
- 'OneFlowTemplate/delete/simple_from_hash.rb',
466
- "deleted template 'test_simple_from_hash'"
467
- )
468
- end
469
-
470
- describe ':delete' do
471
- idempotency_helper(
472
- 'Delete simple flow template from web',
473
- 'OneFlowTemplate/delete/simple_from_web.rb',
474
- "deleted template 'test_simple_from_web'"
475
- )
476
- end
477
-
478
- describe ':delete' do
479
- idempotency_helper(
480
- 'Delete simple flow template from file',
481
- 'OneFlowTemplate/delete/simple_from_file.rb',
482
- "deleted template 'test_simple_from_file'"
483
- )
484
- end
485
-
486
- describe ':delete' do
487
- idempotency_helper(
488
- 'Delete flow template with template_options from hash',
489
- 'OneFlowTemplate/delete/tpl_opts_from_hash.rb',
490
- "deleted template 'test_tpl_opts_from_hash'"
491
- )
492
- end
493
-
494
- describe ':delete' do
495
- idempotency_helper(
496
- 'Delete flow template with template_options from file',
497
- 'OneFlowTemplate/delete/tpl_opts_from_file.rb',
498
- "deleted template 'test_tpl_opts_from_file'"
499
- )
500
- end
501
-
502
- describe ':delete' do
503
- idempotency_helper(
504
- 'Delete flow template that branch off of \'test_simple_from_hash\' by name',
505
- 'OneFlowTemplate/delete/branch_from_one_name.rb',
506
- "deleted template 'test_branch_from_one_name'"
507
- )
508
- end
509
-
510
- describe ':delete' do
511
- idempotency_helper(
512
- 'Delete flow template that branch off of \'test_simple_from_hash\' by id',
513
- 'OneFlowTemplate/delete/branch_from_one_id.rb',
514
- "deleted template 'test_branch_from_one_id'"
515
- )
516
- end
517
-
518
- describe ':delete' do
519
- idempotency_helper(
520
- 'Delete simple instance flow template',
521
- 'OneFlowTemplate/delete/simple_instance_tpl.rb',
522
- "deleted template 'test_simple_instance_tpl'"
523
- )
524
- end
525
-
526
- describe ':delete' do
527
- idempotency_helper(
528
- 'Delete role action flow template',
529
- 'OneFlowTemplate/delete/role_action_instance.rb',
530
- "deleted template 'test_role_action_instance'"
531
- )
532
- end
533
-
534
- ########################
535
- ## DELETE VM TEMPLATE ##
536
- ########################
537
-
538
- describe 'delete OpenNebula-test-tpl-strings' do
539
- it do
540
- is_expected.to converge_test_recipe(
541
- :recipe => 'OneDriver/delete/OpenNebula-test-tpl-strings.rb',
542
- :expected => "delete template 'OpenNebula-test-tpl-strings'"
543
- )
544
- end
545
- end
546
- end