virtualmonkey 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. data/.document +5 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +77 -0
  4. data/Rakefile +51 -0
  5. data/VERSION +1 -0
  6. data/bin/grinder +102 -0
  7. data/bin/mcicp +46 -0
  8. data/bin/monkey +12 -0
  9. data/bin/vary_instance_types +59 -0
  10. data/config/cloud_variables/all_clouds.json +30 -0
  11. data/config/cloud_variables/east.json +9 -0
  12. data/config/cloud_variables/rackspace.json +7 -0
  13. data/config/cloud_variables/west.json +9 -0
  14. data/config/common_inputs/apache_haproxy.json +27 -0
  15. data/config/common_inputs/base.json +5 -0
  16. data/config/common_inputs/ebs_toolbox.json +10 -0
  17. data/config/common_inputs/haproxy.json +15 -0
  18. data/config/common_inputs/lamp.json +30 -0
  19. data/config/common_inputs/mysql.json +24 -0
  20. data/config/common_inputs/none.json +4 -0
  21. data/config/common_inputs/php.json +25 -0
  22. data/config/common_inputs/php_aio_trial_chef_alpha.json +3 -0
  23. data/config/common_inputs/php_app_fe_chef.json +12 -0
  24. data/config/common_inputs/php_elb.json +12 -0
  25. data/config/common_inputs/qstart.json +5 -0
  26. data/config/common_inputs/rails.json +31 -0
  27. data/config/common_inputs/rails_aio_demo_chef_alpha.json +3 -0
  28. data/config/common_inputs/rails_aio_developer_chef_alpha.json +10 -0
  29. data/config/common_inputs/rsgrid.json +10 -0
  30. data/config/common_inputs/tomcat.json +15 -0
  31. data/config/common_inputs/windows_blog_engine.json +3 -0
  32. data/config/common_inputs/windows_net_aio.json +14 -0
  33. data/config/troop/11H1/backup/base.json +10 -0
  34. data/config/troop/11H1/backup/lamp_mysql_50.json +10 -0
  35. data/config/troop/11H1/backup/lamp_mysql_51.json +10 -0
  36. data/config/troop/11H1/backup/loadbalancer-php.json +13 -0
  37. data/config/troop/11H1/backup/loadbalancer.json +14 -0
  38. data/config/troop/11H1/backup/loadbalancer_rails.json +13 -0
  39. data/config/troop/11H1/backup/loadbalancer_tomcat6.json +13 -0
  40. data/config/troop/11H1/backup/mysql50.json +11 -0
  41. data/config/troop/11H1/backup/mysql50_toolbox.json +12 -0
  42. data/config/troop/11H1/backup/mysql51.json +11 -0
  43. data/config/troop/11H1/backup/mysql51_toolbox.json +12 -0
  44. data/config/troop/11H1/backup/php_elb.json +11 -0
  45. data/config/troop/11H1/base.json +10 -0
  46. data/config/troop/11H1/ebs_toolbox.json +12 -0
  47. data/config/troop/11H1/lamp_mysql_50.json +10 -0
  48. data/config/troop/11H1/lamp_mysql_51.json +10 -0
  49. data/config/troop/11H1/loadbalancer-php.json +13 -0
  50. data/config/troop/11H1/loadbalancer.json +17 -0
  51. data/config/troop/11H1/loadbalancer_rails.json +13 -0
  52. data/config/troop/11H1/loadbalancer_tomcat6.json +13 -0
  53. data/config/troop/11H1/mysql50.json +11 -0
  54. data/config/troop/11H1/mysql50_toolbox.json +12 -0
  55. data/config/troop/11H1/mysql51.json +11 -0
  56. data/config/troop/11H1/mysql51_awsdns.json +11 -0
  57. data/config/troop/11H1/mysql51_debug.json +11 -0
  58. data/config/troop/11H1/mysql51_toolbox.json +12 -0
  59. data/config/troop/11H1/php.json +13 -0
  60. data/config/troop/11H1/php_elb.json +11 -0
  61. data/config/troop/11H1/rails.json +13 -0
  62. data/config/troop/11H1/tomcat6.json +13 -0
  63. data/config/troop/chef_quickstart.json +10 -0
  64. data/config/troop/just_elb +10 -0
  65. data/config/troop/lamp_v4.json +10 -0
  66. data/config/troop/patch_test.json +10 -0
  67. data/config/troop/rightlink.json +10 -0
  68. data/config/troop/simple_fail.json +11 -0
  69. data/config/troop/simple_pass.json +11 -0
  70. data/config/troop/windows_blog_engine.json +10 -0
  71. data/config/troop/windows_net_aio.json +10 -0
  72. data/config/troop/windows_quick_start.json +10 -0
  73. data/features/base.rb +31 -0
  74. data/features/db_toolbox.rb +59 -0
  75. data/features/ebs_toolbox.rb +62 -0
  76. data/features/lamp.rb +33 -0
  77. data/features/lb-apache-haproxy.rb +49 -0
  78. data/features/mysql_5.x_v2_v4_from_scratch.rb +71 -0
  79. data/features/mysql_5.x_v2_v4_from_scratch_awsdns.rb +71 -0
  80. data/features/mysql_5.x_v2_v4_from_scratch_dyndns.rb +71 -0
  81. data/features/mysql_v1_upgrade_v2.rb +54 -0
  82. data/features/old_cuke_features/Rakefile +121 -0
  83. data/features/old_cuke_features/Steps-TODO +31 -0
  84. data/features/old_cuke_features/app_state.feature +25 -0
  85. data/features/old_cuke_features/app_test.feature +24 -0
  86. data/features/old_cuke_features/base.feature +16 -0
  87. data/features/old_cuke_features/chef_quickstart.feature +11 -0
  88. data/features/old_cuke_features/db_toolbox.feature +38 -0
  89. data/features/old_cuke_features/ebs_toolbox.feature +39 -0
  90. data/features/old_cuke_features/elb_create_delete.feature +41 -0
  91. data/features/old_cuke_features/elb_generic.feature +27 -0
  92. data/features/old_cuke_features/fe_app_checks.feature +21 -0
  93. data/features/old_cuke_features/just-start.feature +13 -0
  94. data/features/old_cuke_features/lamp.feature +15 -0
  95. data/features/old_cuke_features/lb-apache-haproxy.feature +27 -0
  96. data/features/old_cuke_features/mysql_5.x_v2_v4_from_scratch.feature +33 -0
  97. data/features/old_cuke_features/mysql_5.x_v2_v4_from_scratch_awsdns.feature +33 -0
  98. data/features/old_cuke_features/mysql_5.x_v2_v4_from_scratch_dyndns.feature +33 -0
  99. data/features/old_cuke_features/mysql_chef_premium.feature +27 -0
  100. data/features/old_cuke_features/mysql_chef_premium_from_scratch.feature +37 -0
  101. data/features/old_cuke_features/mysql_v1_upgrade_v2.feature +42 -0
  102. data/features/old_cuke_features/php.feature +27 -0
  103. data/features/old_cuke_features/php_aio_trial_chef_alpha.feature +11 -0
  104. data/features/old_cuke_features/php_chef.feature +21 -0
  105. data/features/old_cuke_features/php_elb.feature +41 -0
  106. data/features/old_cuke_features/rails.feature +26 -0
  107. data/features/old_cuke_features/rails_aio_developer_chef.feature +17 -0
  108. data/features/old_cuke_features/reboot.feature +23 -0
  109. data/features/old_cuke_features/rightlink.feature +19 -0
  110. data/features/old_cuke_features/rsgrid.feature +19 -0
  111. data/features/old_cuke_features/simple.feature +8 -0
  112. data/features/old_cuke_features/simple_fail.feature +9 -0
  113. data/features/old_cuke_features/start-stop.feature +13 -0
  114. data/features/old_cuke_features/step_definitions/app.rb +21 -0
  115. data/features/old_cuke_features/step_definitions/deployment_steps.rb +112 -0
  116. data/features/old_cuke_features/step_definitions/ebs.rb +36 -0
  117. data/features/old_cuke_features/step_definitions/elb.rb +35 -0
  118. data/features/old_cuke_features/step_definitions/lb.rb +22 -0
  119. data/features/old_cuke_features/step_definitions/mysql_steps.rb +84 -0
  120. data/features/old_cuke_features/terminate.feature +7 -0
  121. data/features/old_cuke_features/tomcat6-tests-TODO +29 -0
  122. data/features/old_cuke_features/tomcat6.feature +27 -0
  123. data/features/patch_test.rb +33 -0
  124. data/features/php.rb +54 -0
  125. data/features/php_elb.rb +78 -0
  126. data/features/rails.rb +54 -0
  127. data/features/start_only.rb +26 -0
  128. data/features/tomcat6.rb +54 -0
  129. data/lib/virtualmonkey.rb +28 -0
  130. data/lib/virtualmonkey/application.rb +75 -0
  131. data/lib/virtualmonkey/application_frontend.rb +42 -0
  132. data/lib/virtualmonkey/command.rb +39 -0
  133. data/lib/virtualmonkey/command/clone.rb +50 -0
  134. data/lib/virtualmonkey/command/create.rb +21 -0
  135. data/lib/virtualmonkey/command/destroy.rb +51 -0
  136. data/lib/virtualmonkey/command/list.rb +10 -0
  137. data/lib/virtualmonkey/command/run.rb +76 -0
  138. data/lib/virtualmonkey/command/troop.rb +146 -0
  139. data/lib/virtualmonkey/cuke_monk.rb +184 -0
  140. data/lib/virtualmonkey/deployment_monk.rb +132 -0
  141. data/lib/virtualmonkey/deployment_runner.rb +333 -0
  142. data/lib/virtualmonkey/ebs.rb +161 -0
  143. data/lib/virtualmonkey/ebs_runner.rb +59 -0
  144. data/lib/virtualmonkey/elb_runner.rb +194 -0
  145. data/lib/virtualmonkey/fe_app_runner.rb +7 -0
  146. data/lib/virtualmonkey/file_locations.rb +7 -0
  147. data/lib/virtualmonkey/frontend.rb +124 -0
  148. data/lib/virtualmonkey/http_checks.rb +33 -0
  149. data/lib/virtualmonkey/index.html.erb +109 -0
  150. data/lib/virtualmonkey/lamp_runner.rb +29 -0
  151. data/lib/virtualmonkey/mysql.rb +172 -0
  152. data/lib/virtualmonkey/mysql_runner.rb +108 -0
  153. data/lib/virtualmonkey/mysql_toolbox_runner.rb +51 -0
  154. data/lib/virtualmonkey/patch_runner.rb +46 -0
  155. data/lib/virtualmonkey/php_aio_trial_chef_runner.rb +6 -0
  156. data/lib/virtualmonkey/php_chef_runner.rb +69 -0
  157. data/lib/virtualmonkey/rails_aio_developer_chef_runner.rb +8 -0
  158. data/lib/virtualmonkey/shared_dns.rb +67 -0
  159. data/lib/virtualmonkey/simple.rb +5 -0
  160. data/lib/virtualmonkey/simple_runner.rb +6 -0
  161. data/lib/virtualmonkey/test_case_interface.rb +151 -0
  162. data/lib/virtualmonkey/unified_application.rb +40 -0
  163. data/spec/bug3518.rb +16 -0
  164. data/spec/concurrent_writes_spec.rb +26 -0
  165. data/spec/cuke_job_spec.rb +26 -0
  166. data/spec/ek.rb +28 -0
  167. data/spec/little_ruby.rb +20 -0
  168. data/spec/mini.rb +25 -0
  169. data/spec/monitoring.rb +13 -0
  170. data/spec/release_aws_dns.rb +5 -0
  171. data/spec/release_dns.rb +5 -0
  172. data/spec/release_dyndns.rb +5 -0
  173. data/spec/shared_resources_spec.rb +25 -0
  174. data/spec/spec.opts +1 -0
  175. data/spec/spec_helper.rb +11 -0
  176. data/spec/virtualmonkey_spec.rb +7 -0
  177. data/virtualmonkey.gemspec +265 -0
  178. metadata +428 -0
@@ -0,0 +1,10 @@
1
+ {
2
+ "tag":"BASE_TROOP",
3
+ "feature":"base.rb",
4
+ "cloud_variables":"east.json",
5
+ "runner":"SimpleRunner",
6
+ "common_inputs":"base.json",
7
+ "server_template_ids":[
8
+ "84653"
9
+ ]
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "tag":"TROOP_EBS_TOOLBOX",
3
+ "runner":"SimpleRunner",
4
+ "common_inputs":"ebs_toolbox.json",
5
+ "server_template_ids":[
6
+ "84656",
7
+ "84656",
8
+ "84656"
9
+ ],
10
+ "feature":"ebs_toolbox.rb",
11
+ "cloud_variables":"east.json"
12
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "tag":"LAMP_MYSQL50_TROOP",
3
+ "feature":"lamp.rb",
4
+ "cloud_variables":"east.json",
5
+ "runner":"SimpleRunner",
6
+ "common_inputs":"lamp.json",
7
+ "server_template_ids":[
8
+ "84654"
9
+ ]
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "tag":"LAMP_MYSQL51_TROOP",
3
+ "feature":"lamp.rb",
4
+ "cloud_variables":"east.json",
5
+ "runner":"SimpleRunner",
6
+ "common_inputs":"lamp.json",
7
+ "server_template_ids":[
8
+ "84655"
9
+ ]
10
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "tag":"TROOP_APACHE_HAPROXY",
3
+ "feature":"lb-apache-haproxy.rb",
4
+ "common_inputs":"php.json",
5
+ "runner":"SimpleRunner",
6
+ "server_template_ids":[
7
+ "84648",
8
+ "84648",
9
+ "84644",
10
+ "84644"
11
+ ],
12
+ "cloud_variables":"all_clouds.json"
13
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "tag":"APACHE_HAPROXY_TROOP",
3
+ "feature":"lb-apache-haproxy.rb",
4
+ "common_inputs":[ "haproxy.json",
5
+ "php.json",
6
+ "rails.json",
7
+ "tomcat6.json"],
8
+ "runner":"SimpleRunner",
9
+ "server_template_ids":[
10
+ "84648",
11
+ "84648",
12
+ "84644",
13
+ "84651",
14
+ "84647"
15
+ ],
16
+ "cloud_variables":"all_clouds.json"
17
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "tag":"TROOP_RAILS_APACHE_HAPROXY",
3
+ "feature":"lb-apache-haproxy.rb",
4
+ "common_inputs":"rails.json",
5
+ "runner":"SimpleRunner",
6
+ "server_template_ids":[
7
+ "84648",
8
+ "84648",
9
+ "84647",
10
+ "84647"
11
+ ],
12
+ "cloud_variables":"east.json"
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "tag":"TROOP_T^_APACHE_HAPROXY",
3
+ "feature":"lb-apache-haproxy.rb",
4
+ "common_inputs":"tomcat.json",
5
+ "runner":"SimpleRunner",
6
+ "server_template_ids":[
7
+ "84648",
8
+ "84648",
9
+ "84651",
10
+ "84651"
11
+ ],
12
+ "cloud_variables":"east.json"
13
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag":"MYSQL_50_TROOP",
3
+ "feature":"mysql_5.x_v2_v4_from_scratch.rb",
4
+ "common_inputs":"mysql.json",
5
+ "runner":"MysqlRunner",
6
+ "server_template_ids":[
7
+ "84649",
8
+ "84649"
9
+ ],
10
+ "cloud_variables":"east.json"
11
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "tag":"MYSQL_50_TOOLBOX_TROOP",
3
+ "runner":"MysqlToolboxRunner",
4
+ "common_inputs":"mysql.json",
5
+ "server_template_ids":[
6
+ "84649",
7
+ "84649",
8
+ "84649"
9
+ ],
10
+ "feature":"db_toolbox.rb",
11
+ "cloud_variables":"all_clouds.json"
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag":"MYSQL_51_TROOP",
3
+ "runner":"MysqlRunner",
4
+ "common_inputs":"mysql.json",
5
+ "server_template_ids":[
6
+ "84650",
7
+ "84650"
8
+ ],
9
+ "feature":"mysql_5.x_v2_v4_from_scratch.rb",
10
+ "cloud_variables":"east.json"
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag":"MYSQL_51_TROOP_AWSDNS",
3
+ "runner":"MysqlRunner",
4
+ "common_inputs":"mysql.json",
5
+ "server_template_ids":[
6
+ "84650",
7
+ "84650"
8
+ ],
9
+ "feature":"mysql_5.x_v2_v4_from_scratch_awsdns.rb",
10
+ "cloud_variables":"all_clouds.json"
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag":"MYSQL_51_DEBUG_TROOP",
3
+ "runner":"MysqlRunner",
4
+ "common_inputs":"mysql.json",
5
+ "server_template_ids":[
6
+ "88818",
7
+ "88818"
8
+ ],
9
+ "feature":"mysql_5.x_v2_v4_from_scratch.rb",
10
+ "cloud_variables":"east.json"
11
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "tag":"MYSQL_51_TOOLBOX_TROOP",
3
+ "runner":"MysqlToolboxRunner",
4
+ "common_inputs":"mysql.json",
5
+ "server_template_ids":[
6
+ "84650",
7
+ "84650",
8
+ "84650"
9
+ ],
10
+ "feature":"db_toolbox.rb",
11
+ "cloud_variables":"east.json"
12
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "tag":"TROOP_PURE_PHP",
3
+ "feature":"php.rb",
4
+ "runner":"SimpleRunner",
5
+ "server_template_ids":[
6
+ "84645",
7
+ "84645",
8
+ "84644",
9
+ "84644"
10
+ ],
11
+ "cloud_variables":"east.json",
12
+ "common_inputs":"php.json"
13
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag":"PHP_ELB_TROOP",
3
+ "feature":"php_elb.rb",
4
+ "runner":"SimpleRunner",
5
+ "server_template_ids":[
6
+ "84643",
7
+ "84643"
8
+ ],
9
+ "cloud_variables":"all_clouds.json",
10
+ "common_inputs":"php_elb.json"
11
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "feature":"rails.rb",
3
+ "runner":"SimpleRunner",
4
+ "server_template_ids":[
5
+ "84646",
6
+ "84646",
7
+ "84647",
8
+ "84647"
9
+ ],
10
+ "cloud_variables":"east.json",
11
+ "common_inputs":"rails.json",
12
+ "tag":"TROOP_RAILS"
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "tag":"TROOP_TOMCAT6",
3
+ "feature":"tomcat6.rb",
4
+ "common_inputs":"tomcat.json",
5
+ "runner":"SimpleRunner",
6
+ "server_template_ids":[
7
+ "84652",
8
+ "84652",
9
+ "84651",
10
+ "84651"
11
+ ],
12
+ "cloud_variables":"east.json"
13
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "runner":"SimpleRunner",
3
+ "server_template_ids":[
4
+ "27641"
5
+ ],
6
+ "feature":"chef_quickstart.feature",
7
+ "cloud_variables":"east.json",
8
+ "tag":"TROOP-chef-quickstart",
9
+ "common_inputs":"none.json"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "common_inputs":"php_elb.json",
3
+ "runner":"SimpleRunner",
4
+ "server_template_ids":[
5
+ "23288 23288"
6
+ ],
7
+ "cloud_variables":"all_clouds.json",
8
+ "tag":"ELBBEATDOWN",
9
+ "feature":"elb_create_delete.feature"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "feature":"lamp.feature",
3
+ "cloud_variables":"west.json",
4
+ "runner":"SimpleRunner",
5
+ "common_inputs":"lamp.json",
6
+ "tag":"MONKEY_LAMP_TESTING",
7
+ "server_template_ids":[
8
+ "8942"
9
+ ]
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "tag":"PATCH_TEST_TROOP",
3
+ "feature":"patch_test.rb",
4
+ "cloud_variables":"east.json",
5
+ "runner":"PatchRunner",
6
+ "common_inputs":"none.json",
7
+ "server_template_ids":[
8
+ "89731"
9
+ ]
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "runner":"SimpleRunner",
3
+ "server_template_ids":[
4
+ "69025"
5
+ ],
6
+ "feature":"rightlink.feature",
7
+ "cloud_variables":"east.json",
8
+ "tag":"TROOP-rightlink",
9
+ "common_inputs":"none.json"
10
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "runner":"SimpleRunner",
3
+ "common_inputs":"mysql.json",
4
+ "tag":"SIMPLECRUISE",
5
+ "server_template_ids":[
6
+ "27418",
7
+ "27418"
8
+ ],
9
+ "cloud_variables":"west.json",
10
+ "feature":"simple_fail.feature"
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "runner":"SimpleRunner",
3
+ "common_inputs":"mysql.json",
4
+ "tag":"SIMPLECRUISE",
5
+ "server_template_ids":[
6
+ "27418",
7
+ "27418"
8
+ ],
9
+ "cloud_variables":"west.json",
10
+ "feature":"simple.feature"
11
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "tag":"BLOG_ENGINE_TROOP",
3
+ "feature":"base.rb",
4
+ "cloud_variables":"all_clouds.json",
5
+ "runner":"SimpleRunner",
6
+ "common_inputs":"windows_blog_engine.json",
7
+ "server_template_ids":[
8
+ "88321"
9
+ ]
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "tag":"ASP.NET_AIO_TROOP",
3
+ "feature":"base.rb",
4
+ "cloud_variables":"all_clouds.json",
5
+ "runner":"SimpleRunner",
6
+ "common_inputs":"windows_net_aio.json",
7
+ "server_template_ids":[
8
+ "88600"
9
+ ]
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "tag":"QUICK_START_TROOP",
3
+ "feature":"base.rb",
4
+ "cloud_variables":"all_clouds.json",
5
+ "runner":"SimpleRunner",
6
+ "common_inputs":"none.json",
7
+ "server_template_ids":[
8
+ "88316"
9
+ ]
10
+ }
@@ -0,0 +1,31 @@
1
+ #@base
2
+ #
3
+ # Feature: Base Server Test
4
+ # Tests the base server functions
5
+ #
6
+ # Scenario: base server test
7
+ #
8
+ # Given A simple deployment
9
+ @runner = VirtualMonkey::SimpleRunner.new(ENV['DEPLOYMENT'])
10
+
11
+ # Then I should stop the servers
12
+ @runner.behavior(:stop_all)
13
+
14
+ # Then I should launch all servers
15
+ @runner.behavior(:launch_all)
16
+
17
+ # Then I should wait for the state of "all" servers to be "operational"
18
+ @runner.behavior(:wait_for_all, "operational")
19
+
20
+ # Then I should check that monitoring is enabled
21
+ @runner.behavior(:check_monitoring)
22
+
23
+ # Then I should reboot the servers
24
+ @runner.behavior(:reboot_all)
25
+
26
+ # Then I should wait for the state of "all" servers to be "operational"
27
+ @runner.behavior(:wait_for_all, "operational")
28
+
29
+ # Then I should check that monitoring is enabled
30
+ @runner.behavior(:check_monitoring)
31
+
@@ -0,0 +1,59 @@
1
+ #@mysql_5.x
2
+ #Feature: mysql toolbox
3
+ # Tests the RightScale premium ServerTemplate
4
+ #
5
+ # Scenario: Run all toolbox scripts
6
+ ##
7
+ ## PHASE 1) Launch a few DB servers. Make one the master.
8
+ ##
9
+ # Given A MySQL Toolbox deployment
10
+ @runner = VirtualMonkey::MysqlToolboxRunner.new(ENV['DEPLOYMENT'])
11
+
12
+ # Then I should set a variation MySQL DNS
13
+ @runner.set_var(:setup_dns, "virtualmonkey_shared_resources") # DNSMadeEasy
14
+
15
+ # Then I should set a variation lineage
16
+ @runner.set_var(:set_variation_lineage)
17
+
18
+ # Then I should set a variation stripe count of "3"
19
+ @runner.set_var(:set_variation_stripe_count, 3)
20
+
21
+ # Then I should set a variation volume size "3"
22
+ @runner.set_var(:set_variation_volume_size, 3)
23
+
24
+ # Then I should stop the servers
25
+ @runner.behavior(:stop_all)
26
+
27
+ # Then I should launch all servers
28
+ @runner.behavior(:launch_all)
29
+
30
+ # Then I should wait for the state of "all" servers to be "operational"
31
+ @runner.behavior(:wait_for_all, "operational")
32
+
33
+ # Then I should create master from scratch
34
+ @runner.behavior(:create_master)
35
+
36
+ ##
37
+ ## PHASE 2) Run checks for the basic scripts
38
+ ##
39
+ ### TODO We need a non-mysql server that doesn't have continuous backups enabled
40
+ ## Then I should test the backup script operations
41
+ # @runner.behavior(:test_backup_script_operations)
42
+ #
43
+ ##
44
+ ## PHASE 3) restore the snapshot on another server
45
+ ##
46
+ # Then I should backup the volume
47
+ @runner.behavior(:create_backup)
48
+
49
+ ## Then I should test the restore operations
50
+ # @runner.behavior(:test_restore)
51
+ #
52
+ ##
53
+ ## PHASE 4) Do the grow EBS tests
54
+ ##
55
+ # Then I should test the restore grow operations
56
+ @runner.behavior(:test_restore_grow)
57
+
58
+ ## Then I should stop the servers
59
+ # @runner.behavior(:stop_all)