beaker-hostgenerator 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (481) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +7 -0
  4. data/Gemfile +0 -24
  5. data/HISTORY.md +150 -2
  6. data/MAINTAINERS +1 -0
  7. data/Rakefile +0 -17
  8. data/beaker-hostgenerator.gemspec +2 -3
  9. data/lib/beaker-hostgenerator/data.rb +18 -0
  10. data/lib/beaker-hostgenerator/version.rb +1 -1
  11. metadata +16 -472
  12. data/acceptance/config/nodes/vagrant-ubuntu-1404.yml +0 -8
  13. data/acceptance/tests/first.rb +0 -8
  14. data/spec/beaker-hostgenerator/abs-support_spec.rb +0 -14
  15. data/spec/beaker-hostgenerator/generator_spec.rb +0 -94
  16. data/spec/beaker-hostgenerator/parser_spec.rb +0 -146
  17. data/spec/helpers.rb +0 -109
  18. data/spec/spec_helper.rb +0 -10
  19. data/test/fixtures/generated/default/aix53-POWERa +0 -19
  20. data/test/fixtures/generated/default/aix61-POWERu +0 -20
  21. data/test/fixtures/generated/default/aix71-POWERl +0 -20
  22. data/test/fixtures/generated/default/arista4-32c +0 -21
  23. data/test/fixtures/generated/default/centos4-32d +0 -21
  24. data/test/fixtures/generated/default/centos4-64f +0 -21
  25. data/test/fixtures/generated/default/centos5-32m +0 -21
  26. data/test/fixtures/generated/default/centos5-64aulcdfm +0 -26
  27. data/test/fixtures/generated/default/centos6-32a +0 -20
  28. data/test/fixtures/generated/default/centos6-64u +0 -21
  29. data/test/fixtures/generated/default/centos7-64l +0 -21
  30. data/test/fixtures/generated/default/cisconx-64c +0 -24
  31. data/test/fixtures/generated/default/ciscoxr-64d +0 -21
  32. data/test/fixtures/generated/default/cumulus25-64f +0 -21
  33. data/test/fixtures/generated/default/debian6-32m +0 -21
  34. data/test/fixtures/generated/default/debian6-64aulcdfm +0 -26
  35. data/test/fixtures/generated/default/debian7-32a +0 -20
  36. data/test/fixtures/generated/default/debian7-64u +0 -21
  37. data/test/fixtures/generated/default/debian8-32l +0 -21
  38. data/test/fixtures/generated/default/debian8-64c +0 -21
  39. data/test/fixtures/generated/default/debian9-32d +0 -21
  40. data/test/fixtures/generated/default/debian9-64f +0 -21
  41. data/test/fixtures/generated/default/fedora14-32m +0 -21
  42. data/test/fixtures/generated/default/fedora19-32aulcdfm +0 -26
  43. data/test/fixtures/generated/default/fedora19-64a +0 -20
  44. data/test/fixtures/generated/default/fedora20-32u +0 -21
  45. data/test/fixtures/generated/default/fedora20-64l +0 -21
  46. data/test/fixtures/generated/default/fedora21-32c +0 -21
  47. data/test/fixtures/generated/default/fedora21-64d +0 -21
  48. data/test/fixtures/generated/default/fedora22-32f +0 -21
  49. data/test/fixtures/generated/default/fedora22-64m +0 -21
  50. data/test/fixtures/generated/default/fedora23-32aulcdfm +0 -26
  51. data/test/fixtures/generated/default/fedora23-64a +0 -20
  52. data/test/fixtures/generated/default/fedora24-32u +0 -21
  53. data/test/fixtures/generated/default/fedora24-64l +0 -21
  54. data/test/fixtures/generated/default/huaweios6-POWERc +0 -20
  55. data/test/fixtures/generated/default/opensuse11-32c +0 -21
  56. data/test/fixtures/generated/default/opensuse11-64d +0 -21
  57. data/test/fixtures/generated/default/oracle5-32f +0 -21
  58. data/test/fixtures/generated/default/oracle5-64m +0 -21
  59. data/test/fixtures/generated/default/oracle6-32aulcdfm +0 -26
  60. data/test/fixtures/generated/default/oracle6-64a +0 -20
  61. data/test/fixtures/generated/default/oracle7-64u +0 -21
  62. data/test/fixtures/generated/default/osx1010-64c +0 -21
  63. data/test/fixtures/generated/default/osx1011-64d +0 -21
  64. data/test/fixtures/generated/default/osx1012-64m +0 -21
  65. data/test/fixtures/generated/default/osx109-64l +0 -21
  66. data/test/fixtures/generated/default/redhat4-32f +0 -21
  67. data/test/fixtures/generated/default/redhat4-64m +0 -21
  68. data/test/fixtures/generated/default/redhat5-32aulcdfm +0 -26
  69. data/test/fixtures/generated/default/redhat5-64a +0 -20
  70. data/test/fixtures/generated/default/redhat6-32u +0 -21
  71. data/test/fixtures/generated/default/redhat6-64l +0 -21
  72. data/test/fixtures/generated/default/redhat6-S390Xc +0 -20
  73. data/test/fixtures/generated/default/redhat7-64d +0 -21
  74. data/test/fixtures/generated/default/redhat7-S390Xf +0 -20
  75. data/test/fixtures/generated/default/scientific5-32m +0 -21
  76. data/test/fixtures/generated/default/scientific5-64aulcdfm +0 -26
  77. data/test/fixtures/generated/default/scientific6-32a +0 -20
  78. data/test/fixtures/generated/default/scientific6-64u +0 -21
  79. data/test/fixtures/generated/default/scientific7-64l +0 -21
  80. data/test/fixtures/generated/default/sles10-32c +0 -21
  81. data/test/fixtures/generated/default/sles10-64d +0 -21
  82. data/test/fixtures/generated/default/sles11-32f +0 -21
  83. data/test/fixtures/generated/default/sles11-64m +0 -21
  84. data/test/fixtures/generated/default/sles11-S390Xaulcdfm +0 -25
  85. data/test/fixtures/generated/default/sles12-64a +0 -20
  86. data/test/fixtures/generated/default/sles12-S390Xu +0 -20
  87. data/test/fixtures/generated/default/solaris10-32l +0 -21
  88. data/test/fixtures/generated/default/solaris10-64c +0 -21
  89. data/test/fixtures/generated/default/solaris10-SPARCd +0 -20
  90. data/test/fixtures/generated/default/solaris11-32f +0 -21
  91. data/test/fixtures/generated/default/solaris11-64m +0 -21
  92. data/test/fixtures/generated/default/solaris11-SPARCaulcdfm +0 -25
  93. data/test/fixtures/generated/default/solaris112-32a +0 -20
  94. data/test/fixtures/generated/default/solaris112-64u +0 -21
  95. data/test/fixtures/generated/default/ubuntu1004-32l +0 -21
  96. data/test/fixtures/generated/default/ubuntu1004-64c +0 -21
  97. data/test/fixtures/generated/default/ubuntu1204-32d +0 -21
  98. data/test/fixtures/generated/default/ubuntu1204-64f +0 -21
  99. data/test/fixtures/generated/default/ubuntu1404-32m +0 -21
  100. data/test/fixtures/generated/default/ubuntu1404-64aulcdfm +0 -26
  101. data/test/fixtures/generated/default/ubuntu1504-32a +0 -20
  102. data/test/fixtures/generated/default/ubuntu1504-64u +0 -21
  103. data/test/fixtures/generated/default/ubuntu1510-32l +0 -21
  104. data/test/fixtures/generated/default/ubuntu1510-64c +0 -21
  105. data/test/fixtures/generated/default/ubuntu1604-32d +0 -21
  106. data/test/fixtures/generated/default/ubuntu1604-64f +0 -21
  107. data/test/fixtures/generated/default/windows10ent-32aulcdfm +0 -27
  108. data/test/fixtures/generated/default/windows10ent-64a +0 -21
  109. data/test/fixtures/generated/default/windows10pro-64u +0 -22
  110. data/test/fixtures/generated/default/windows2003-6432aulcdfm +0 -27
  111. data/test/fixtures/generated/default/windows2003-64m +0 -22
  112. data/test/fixtures/generated/default/windows2003r2-32a +0 -21
  113. data/test/fixtures/generated/default/windows2003r2-6432l +0 -22
  114. data/test/fixtures/generated/default/windows2003r2-64u +0 -22
  115. data/test/fixtures/generated/default/windows2008-6432d +0 -22
  116. data/test/fixtures/generated/default/windows2008-64c +0 -22
  117. data/test/fixtures/generated/default/windows2008r2-6432m +0 -22
  118. data/test/fixtures/generated/default/windows2008r2-64f +0 -22
  119. data/test/fixtures/generated/default/windows2012-6432a +0 -21
  120. data/test/fixtures/generated/default/windows2012-64aulcdfm +0 -27
  121. data/test/fixtures/generated/default/windows2012r2-6432l +0 -22
  122. data/test/fixtures/generated/default/windows2012r2-64u +0 -22
  123. data/test/fixtures/generated/default/windows2016-6432m +0 -22
  124. data/test/fixtures/generated/default/windows2016-64f +0 -22
  125. data/test/fixtures/generated/default/windows7-64c +0 -22
  126. data/test/fixtures/generated/default/windows8-64d +0 -22
  127. data/test/fixtures/generated/default/windows81-64f +0 -22
  128. data/test/fixtures/generated/default/windowsvista-64m +0 -22
  129. data/test/fixtures/generated/environment_variable_tests/pe_version_and_pe_family/centos6-32a +0 -24
  130. data/test/fixtures/generated/environment_variable_tests/pe_version_and_pe_family_no_upgrade/centos6-32a +0 -22
  131. data/test/fixtures/generated/environment_variable_tests/pe_version_and_pe_family_upgrade_only/centos6-32a +0 -22
  132. data/test/fixtures/generated/multiplatform/aix53-POWERa-windows10pro-64-aix53-POWERaulcdfm +0 -45
  133. data/test/fixtures/generated/multiplatform/aix61-POWERu-windows10ent-64-aix61-POWERm +0 -41
  134. data/test/fixtures/generated/multiplatform/aix71-POWERl-windows10ent-32-aix71-POWERf +0 -41
  135. data/test/fixtures/generated/multiplatform/arista4-32c-windowsvista-64-arista4-32d +0 -43
  136. data/test/fixtures/generated/multiplatform/centos4-32d-windows81-64-centos4-32c +0 -43
  137. data/test/fixtures/generated/multiplatform/centos4-64f-windows8-64-centos4-64l +0 -43
  138. data/test/fixtures/generated/multiplatform/centos5-32m-windows7-64-centos5-32u +0 -43
  139. data/test/fixtures/generated/multiplatform/centos5-64aulcdfm-windows2012r2-6432-centos5-64a +0 -47
  140. data/test/fixtures/generated/multiplatform/centos5-64aulcdfm-windows2016-6432-centos5-64a +0 -47
  141. data/test/fixtures/generated/multiplatform/centos6-32a-windows2012r2-64-centos6-32aulcdfm +0 -47
  142. data/test/fixtures/generated/multiplatform/centos6-32a-windows2016-64-centos6-32aulcdfm +0 -47
  143. data/test/fixtures/generated/multiplatform/centos6-64u-windows2012-6432-centos6-64m +0 -43
  144. data/test/fixtures/generated/multiplatform/centos7-64l-windows2012-64-centos7-64f +0 -43
  145. data/test/fixtures/generated/multiplatform/cisconx-64c-windows2008r2-6432-cisconx-64d +0 -49
  146. data/test/fixtures/generated/multiplatform/ciscoxr-64d-windows2008r2-64-ciscoxr-64c +0 -43
  147. data/test/fixtures/generated/multiplatform/cumulus25-64f-windows2008-6432-cumulus25-64l +0 -43
  148. data/test/fixtures/generated/multiplatform/debian6-32m-windows2008-64-debian6-32u +0 -43
  149. data/test/fixtures/generated/multiplatform/debian6-64aulcdfm-windows2003r2-6432-debian6-64a +0 -47
  150. data/test/fixtures/generated/multiplatform/debian7-32a-windows2003r2-64-debian7-32aulcdfm +0 -47
  151. data/test/fixtures/generated/multiplatform/debian7-64u-windows2003r2-32-debian7-64m +0 -43
  152. data/test/fixtures/generated/multiplatform/debian8-32l-windows2003-6432-debian8-32f +0 -43
  153. data/test/fixtures/generated/multiplatform/debian8-64c-windows2003-64-debian8-64d +0 -43
  154. data/test/fixtures/generated/multiplatform/debian9-32d-ubuntu1604-64-debian9-32c +0 -42
  155. data/test/fixtures/generated/multiplatform/debian9-64f-ubuntu1604-32-debian9-64l +0 -42
  156. data/test/fixtures/generated/multiplatform/fedora14-32m-ubuntu1510-64-fedora14-32u +0 -42
  157. data/test/fixtures/generated/multiplatform/fedora19-32aulcdfm-ubuntu1510-32-fedora19-32a +0 -46
  158. data/test/fixtures/generated/multiplatform/fedora19-64a-ubuntu1504-64-fedora19-64aulcdfm +0 -46
  159. data/test/fixtures/generated/multiplatform/fedora20-32u-ubuntu1504-32-fedora20-32m +0 -42
  160. data/test/fixtures/generated/multiplatform/fedora20-64l-ubuntu1404-64-fedora20-64f +0 -42
  161. data/test/fixtures/generated/multiplatform/fedora21-32c-ubuntu1404-32-fedora21-32d +0 -42
  162. data/test/fixtures/generated/multiplatform/fedora21-64d-ubuntu1204-64-fedora21-64c +0 -42
  163. data/test/fixtures/generated/multiplatform/fedora22-32f-ubuntu1204-32-fedora22-32l +0 -42
  164. data/test/fixtures/generated/multiplatform/fedora22-64m-ubuntu1004-64-fedora22-64u +0 -42
  165. data/test/fixtures/generated/multiplatform/fedora23-32aulcdfm-ubuntu1004-32-fedora23-32a +0 -46
  166. data/test/fixtures/generated/multiplatform/fedora23-64a-solaris112-64-fedora23-64aulcdfm +0 -46
  167. data/test/fixtures/generated/multiplatform/fedora24-32u-solaris112-32-fedora24-32m +0 -42
  168. data/test/fixtures/generated/multiplatform/fedora24-64l-solaris11-SPARC-fedora24-64f +0 -41
  169. data/test/fixtures/generated/multiplatform/huaweios6-POWERc-solaris11-64-huaweios6-POWERd +0 -40
  170. data/test/fixtures/generated/multiplatform/opensuse11-32c-solaris11-64-opensuse11-32d +0 -42
  171. data/test/fixtures/generated/multiplatform/opensuse11-64d-solaris11-32-opensuse11-64c +0 -42
  172. data/test/fixtures/generated/multiplatform/oracle5-32f-solaris10-SPARC-oracle5-32l +0 -41
  173. data/test/fixtures/generated/multiplatform/oracle5-64m-solaris10-64-oracle5-64u +0 -42
  174. data/test/fixtures/generated/multiplatform/oracle6-32aulcdfm-solaris10-32-oracle6-32a +0 -46
  175. data/test/fixtures/generated/multiplatform/oracle6-64a-sles12-S390X-oracle6-64aulcdfm +0 -45
  176. data/test/fixtures/generated/multiplatform/oracle7-64u-sles12-64-oracle7-64m +0 -42
  177. data/test/fixtures/generated/multiplatform/osx1010-64c-sles11-64-osx1010-64d +0 -42
  178. data/test/fixtures/generated/multiplatform/osx1011-64d-sles11-32-osx1011-64c +0 -42
  179. data/test/fixtures/generated/multiplatform/osx1012-64m-sles10-32-osx1012-64u +0 -42
  180. data/test/fixtures/generated/multiplatform/osx1012-64m-sles11-32-osx1012-64u +0 -42
  181. data/test/fixtures/generated/multiplatform/osx109-64l-sles11-S390X-osx109-64f +0 -41
  182. data/test/fixtures/generated/multiplatform/redhat4-32f-sles10-64-redhat4-32l +0 -42
  183. data/test/fixtures/generated/multiplatform/redhat4-64m-sles10-32-redhat4-64u +0 -42
  184. data/test/fixtures/generated/multiplatform/redhat5-32aulcdfm-scientific7-64-redhat5-32a +0 -46
  185. data/test/fixtures/generated/multiplatform/redhat5-64a-scientific6-64-redhat5-64aulcdfm +0 -46
  186. data/test/fixtures/generated/multiplatform/redhat6-32u-scientific6-32-redhat6-32m +0 -42
  187. data/test/fixtures/generated/multiplatform/redhat6-64l-scientific5-64-redhat6-64f +0 -42
  188. data/test/fixtures/generated/multiplatform/redhat6-S390Xc-scientific5-32-redhat6-S390Xd +0 -40
  189. data/test/fixtures/generated/multiplatform/redhat7-64d-redhat7-S390X-redhat7-64c +0 -41
  190. data/test/fixtures/generated/multiplatform/redhat7-S390Xf-redhat7-64-redhat7-S390Xl +0 -40
  191. data/test/fixtures/generated/multiplatform/scientific5-32m-redhat6-S390X-scientific5-32u +0 -41
  192. data/test/fixtures/generated/multiplatform/scientific5-64aulcdfm-redhat6-64-scientific5-64a +0 -46
  193. data/test/fixtures/generated/multiplatform/scientific6-32a-redhat6-32-scientific6-32aulcdfm +0 -46
  194. data/test/fixtures/generated/multiplatform/scientific6-64u-redhat5-64-scientific6-64m +0 -42
  195. data/test/fixtures/generated/multiplatform/scientific7-64l-redhat5-32-scientific7-64f +0 -42
  196. data/test/fixtures/generated/multiplatform/sles10-32c-redhat4-64-sles10-32d +0 -42
  197. data/test/fixtures/generated/multiplatform/sles10-32f-osx1012-64-sles10-32l +0 -42
  198. data/test/fixtures/generated/multiplatform/sles10-64d-redhat4-32-sles10-64c +0 -42
  199. data/test/fixtures/generated/multiplatform/sles11-32aulcdfm-osx1012-64-sles11-32a +0 -46
  200. data/test/fixtures/generated/multiplatform/sles11-32f-osx1011-64-sles11-32l +0 -42
  201. data/test/fixtures/generated/multiplatform/sles11-64m-osx1010-64-sles11-64u +0 -42
  202. data/test/fixtures/generated/multiplatform/sles11-S390Xaulcdfm-osx109-64-sles11-S390Xa +0 -44
  203. data/test/fixtures/generated/multiplatform/sles12-64a-oracle7-64-sles12-64aulcdfm +0 -46
  204. data/test/fixtures/generated/multiplatform/sles12-S390Xu-oracle6-64-sles12-S390Xm +0 -40
  205. data/test/fixtures/generated/multiplatform/solaris10-32l-oracle6-32-solaris10-32f +0 -42
  206. data/test/fixtures/generated/multiplatform/solaris10-64c-oracle5-64-solaris10-64d +0 -42
  207. data/test/fixtures/generated/multiplatform/solaris10-SPARCd-oracle5-32-solaris10-SPARCc +0 -40
  208. data/test/fixtures/generated/multiplatform/solaris11-32f-opensuse11-64-solaris11-32l +0 -42
  209. data/test/fixtures/generated/multiplatform/solaris11-64aulcdfm-huaweios6-POWER-solaris11-64a +0 -45
  210. data/test/fixtures/generated/multiplatform/solaris11-64m-opensuse11-32-solaris11-64u +0 -42
  211. data/test/fixtures/generated/multiplatform/solaris11-SPARCaulcdfm-fedora24-64-solaris11-SPARCa +0 -44
  212. data/test/fixtures/generated/multiplatform/solaris112-32a-fedora24-32-solaris112-32aulcdfm +0 -46
  213. data/test/fixtures/generated/multiplatform/solaris112-64u-fedora23-64-solaris112-64m +0 -42
  214. data/test/fixtures/generated/multiplatform/ubuntu1004-32l-fedora23-32-ubuntu1004-32f +0 -42
  215. data/test/fixtures/generated/multiplatform/ubuntu1004-64c-fedora22-64-ubuntu1004-64d +0 -42
  216. data/test/fixtures/generated/multiplatform/ubuntu1204-32d-fedora22-32-ubuntu1204-32c +0 -42
  217. data/test/fixtures/generated/multiplatform/ubuntu1204-64f-fedora21-64-ubuntu1204-64l +0 -42
  218. data/test/fixtures/generated/multiplatform/ubuntu1404-32m-fedora21-32-ubuntu1404-32u +0 -42
  219. data/test/fixtures/generated/multiplatform/ubuntu1404-64aulcdfm-fedora20-64-ubuntu1404-64a +0 -46
  220. data/test/fixtures/generated/multiplatform/ubuntu1504-32a-fedora20-32-ubuntu1504-32aulcdfm +0 -46
  221. data/test/fixtures/generated/multiplatform/ubuntu1504-64u-fedora19-64-ubuntu1504-64m +0 -42
  222. data/test/fixtures/generated/multiplatform/ubuntu1510-32l-fedora19-32-ubuntu1510-32f +0 -42
  223. data/test/fixtures/generated/multiplatform/ubuntu1510-64c-fedora14-32-ubuntu1510-64d +0 -42
  224. data/test/fixtures/generated/multiplatform/ubuntu1604-32d-debian9-64-ubuntu1604-32c +0 -42
  225. data/test/fixtures/generated/multiplatform/ubuntu1604-64f-debian9-32-ubuntu1604-64l +0 -42
  226. data/test/fixtures/generated/multiplatform/windows10ent-32aulcdfm-aix71-POWER-windows10ent-32a +0 -47
  227. data/test/fixtures/generated/multiplatform/windows10ent-64a-aix61-POWER-windows10ent-64aulcdfm +0 -47
  228. data/test/fixtures/generated/multiplatform/windows10pro-64u-aix53-POWER-windows10pro-64m +0 -43
  229. data/test/fixtures/generated/multiplatform/windows2003-6432aulcdfm-debian8-32-windows2003-6432a +0 -48
  230. data/test/fixtures/generated/multiplatform/windows2003-64m-debian8-64-windows2003-64u +0 -44
  231. data/test/fixtures/generated/multiplatform/windows2003r2-32a-debian7-64-windows2003r2-32aulcdfm +0 -48
  232. data/test/fixtures/generated/multiplatform/windows2003r2-6432l-debian6-64-windows2003r2-6432f +0 -44
  233. data/test/fixtures/generated/multiplatform/windows2003r2-64u-debian7-32-windows2003r2-64m +0 -44
  234. data/test/fixtures/generated/multiplatform/windows2008-6432d-cumulus25-64-windows2008-6432c +0 -44
  235. data/test/fixtures/generated/multiplatform/windows2008-64c-debian6-32-windows2008-64d +0 -44
  236. data/test/fixtures/generated/multiplatform/windows2008r2-6432m-cisconx-64-windows2008r2-6432u +0 -47
  237. data/test/fixtures/generated/multiplatform/windows2008r2-64f-ciscoxr-64-windows2008r2-64l +0 -44
  238. data/test/fixtures/generated/multiplatform/windows2012-6432a-centos6-64-windows2012-6432aulcdfm +0 -48
  239. data/test/fixtures/generated/multiplatform/windows2012-64aulcdfm-centos7-64-windows2012-64a +0 -48
  240. data/test/fixtures/generated/multiplatform/windows2012r2-6432l-centos5-64-windows2012r2-6432f +0 -44
  241. data/test/fixtures/generated/multiplatform/windows2012r2-64u-centos6-32-windows2012r2-64m +0 -44
  242. data/test/fixtures/generated/multiplatform/windows2016-6432m-centos5-64-windows2016-6432u +0 -44
  243. data/test/fixtures/generated/multiplatform/windows2016-64f-centos6-32-windows2016-64l +0 -44
  244. data/test/fixtures/generated/multiplatform/windows7-64c-centos5-32-windows7-64d +0 -44
  245. data/test/fixtures/generated/multiplatform/windows8-64d-centos4-64-windows8-64c +0 -44
  246. data/test/fixtures/generated/multiplatform/windows81-64f-centos4-32-windows81-64l +0 -44
  247. data/test/fixtures/generated/multiplatform/windowsvista-64m-arista4-32-windowsvista-64u +0 -44
  248. data/test/fixtures/generated/osinfo-version-0/aix53-POWERa +0 -19
  249. data/test/fixtures/generated/osinfo-version-0/aix61-POWERu +0 -20
  250. data/test/fixtures/generated/osinfo-version-0/aix71-POWERl +0 -20
  251. data/test/fixtures/generated/osinfo-version-0/arista4-32c +0 -21
  252. data/test/fixtures/generated/osinfo-version-0/centos4-32d +0 -21
  253. data/test/fixtures/generated/osinfo-version-0/centos4-64f +0 -21
  254. data/test/fixtures/generated/osinfo-version-0/centos5-32m +0 -21
  255. data/test/fixtures/generated/osinfo-version-0/centos5-64aulcdfm +0 -26
  256. data/test/fixtures/generated/osinfo-version-0/centos6-32a +0 -20
  257. data/test/fixtures/generated/osinfo-version-0/centos6-64u +0 -21
  258. data/test/fixtures/generated/osinfo-version-0/centos7-64l +0 -21
  259. data/test/fixtures/generated/osinfo-version-0/cisconx-64c +0 -24
  260. data/test/fixtures/generated/osinfo-version-0/ciscoxr-64d +0 -21
  261. data/test/fixtures/generated/osinfo-version-0/cumulus25-64f +0 -21
  262. data/test/fixtures/generated/osinfo-version-0/debian6-32m +0 -21
  263. data/test/fixtures/generated/osinfo-version-0/debian6-64aulcdfm +0 -26
  264. data/test/fixtures/generated/osinfo-version-0/debian7-32a +0 -20
  265. data/test/fixtures/generated/osinfo-version-0/debian7-64u +0 -21
  266. data/test/fixtures/generated/osinfo-version-0/debian8-32l +0 -21
  267. data/test/fixtures/generated/osinfo-version-0/debian8-64c +0 -21
  268. data/test/fixtures/generated/osinfo-version-0/debian9-32d +0 -21
  269. data/test/fixtures/generated/osinfo-version-0/debian9-64f +0 -21
  270. data/test/fixtures/generated/osinfo-version-0/fedora14-32m +0 -21
  271. data/test/fixtures/generated/osinfo-version-0/fedora19-32aulcdfm +0 -26
  272. data/test/fixtures/generated/osinfo-version-0/fedora19-64a +0 -20
  273. data/test/fixtures/generated/osinfo-version-0/fedora20-32u +0 -21
  274. data/test/fixtures/generated/osinfo-version-0/fedora20-64l +0 -21
  275. data/test/fixtures/generated/osinfo-version-0/fedora21-32c +0 -21
  276. data/test/fixtures/generated/osinfo-version-0/fedora21-64d +0 -21
  277. data/test/fixtures/generated/osinfo-version-0/fedora22-32f +0 -21
  278. data/test/fixtures/generated/osinfo-version-0/fedora22-64m +0 -21
  279. data/test/fixtures/generated/osinfo-version-0/fedora23-32aulcdfm +0 -26
  280. data/test/fixtures/generated/osinfo-version-0/fedora23-64a +0 -20
  281. data/test/fixtures/generated/osinfo-version-0/fedora24-32u +0 -21
  282. data/test/fixtures/generated/osinfo-version-0/fedora24-64l +0 -21
  283. data/test/fixtures/generated/osinfo-version-0/huaweios6-POWERc +0 -20
  284. data/test/fixtures/generated/osinfo-version-0/opensuse11-32c +0 -21
  285. data/test/fixtures/generated/osinfo-version-0/opensuse11-64d +0 -21
  286. data/test/fixtures/generated/osinfo-version-0/oracle5-32f +0 -21
  287. data/test/fixtures/generated/osinfo-version-0/oracle5-64m +0 -21
  288. data/test/fixtures/generated/osinfo-version-0/oracle6-32aulcdfm +0 -26
  289. data/test/fixtures/generated/osinfo-version-0/oracle6-64a +0 -20
  290. data/test/fixtures/generated/osinfo-version-0/oracle7-64u +0 -21
  291. data/test/fixtures/generated/osinfo-version-0/osx1010-64c +0 -21
  292. data/test/fixtures/generated/osinfo-version-0/osx1011-64d +0 -21
  293. data/test/fixtures/generated/osinfo-version-0/osx1012-64m +0 -21
  294. data/test/fixtures/generated/osinfo-version-0/osx109-64l +0 -21
  295. data/test/fixtures/generated/osinfo-version-0/redhat4-32f +0 -21
  296. data/test/fixtures/generated/osinfo-version-0/redhat4-64m +0 -21
  297. data/test/fixtures/generated/osinfo-version-0/redhat5-32aulcdfm +0 -26
  298. data/test/fixtures/generated/osinfo-version-0/redhat5-64a +0 -20
  299. data/test/fixtures/generated/osinfo-version-0/redhat6-32u +0 -21
  300. data/test/fixtures/generated/osinfo-version-0/redhat6-64l +0 -21
  301. data/test/fixtures/generated/osinfo-version-0/redhat6-S390Xc +0 -20
  302. data/test/fixtures/generated/osinfo-version-0/redhat7-64d +0 -21
  303. data/test/fixtures/generated/osinfo-version-0/redhat7-S390Xf +0 -20
  304. data/test/fixtures/generated/osinfo-version-0/scientific5-32m +0 -21
  305. data/test/fixtures/generated/osinfo-version-0/scientific5-64aulcdfm +0 -26
  306. data/test/fixtures/generated/osinfo-version-0/scientific6-32a +0 -20
  307. data/test/fixtures/generated/osinfo-version-0/scientific6-64u +0 -21
  308. data/test/fixtures/generated/osinfo-version-0/scientific7-64l +0 -21
  309. data/test/fixtures/generated/osinfo-version-0/sles10-32c +0 -21
  310. data/test/fixtures/generated/osinfo-version-0/sles10-64d +0 -21
  311. data/test/fixtures/generated/osinfo-version-0/sles11-32f +0 -21
  312. data/test/fixtures/generated/osinfo-version-0/sles11-64m +0 -21
  313. data/test/fixtures/generated/osinfo-version-0/sles11-S390Xaulcdfm +0 -25
  314. data/test/fixtures/generated/osinfo-version-0/sles12-64a +0 -20
  315. data/test/fixtures/generated/osinfo-version-0/sles12-S390Xu +0 -20
  316. data/test/fixtures/generated/osinfo-version-0/solaris10-32l +0 -21
  317. data/test/fixtures/generated/osinfo-version-0/solaris10-64c +0 -21
  318. data/test/fixtures/generated/osinfo-version-0/solaris10-SPARCd +0 -20
  319. data/test/fixtures/generated/osinfo-version-0/solaris11-32f +0 -21
  320. data/test/fixtures/generated/osinfo-version-0/solaris11-64m +0 -21
  321. data/test/fixtures/generated/osinfo-version-0/solaris11-SPARCaulcdfm +0 -25
  322. data/test/fixtures/generated/osinfo-version-0/solaris112-32a +0 -20
  323. data/test/fixtures/generated/osinfo-version-0/solaris112-64u +0 -21
  324. data/test/fixtures/generated/osinfo-version-0/ubuntu1004-32l +0 -21
  325. data/test/fixtures/generated/osinfo-version-0/ubuntu1004-64c +0 -21
  326. data/test/fixtures/generated/osinfo-version-0/ubuntu1204-32d +0 -21
  327. data/test/fixtures/generated/osinfo-version-0/ubuntu1204-64f +0 -21
  328. data/test/fixtures/generated/osinfo-version-0/ubuntu1404-32m +0 -21
  329. data/test/fixtures/generated/osinfo-version-0/ubuntu1404-64aulcdfm +0 -26
  330. data/test/fixtures/generated/osinfo-version-0/ubuntu1504-32a +0 -20
  331. data/test/fixtures/generated/osinfo-version-0/ubuntu1504-64u +0 -21
  332. data/test/fixtures/generated/osinfo-version-0/ubuntu1510-32l +0 -21
  333. data/test/fixtures/generated/osinfo-version-0/ubuntu1510-64c +0 -21
  334. data/test/fixtures/generated/osinfo-version-0/ubuntu1604-32d +0 -21
  335. data/test/fixtures/generated/osinfo-version-0/ubuntu1604-64f +0 -21
  336. data/test/fixtures/generated/osinfo-version-0/windows10ent-32aulcdfm +0 -27
  337. data/test/fixtures/generated/osinfo-version-0/windows10ent-64a +0 -21
  338. data/test/fixtures/generated/osinfo-version-0/windows10pro-64u +0 -22
  339. data/test/fixtures/generated/osinfo-version-0/windows2003-6432aulcdfm +0 -27
  340. data/test/fixtures/generated/osinfo-version-0/windows2003-64m +0 -22
  341. data/test/fixtures/generated/osinfo-version-0/windows2003r2-32a +0 -21
  342. data/test/fixtures/generated/osinfo-version-0/windows2003r2-6432l +0 -22
  343. data/test/fixtures/generated/osinfo-version-0/windows2003r2-64u +0 -22
  344. data/test/fixtures/generated/osinfo-version-0/windows2008-6432d +0 -22
  345. data/test/fixtures/generated/osinfo-version-0/windows2008-64c +0 -22
  346. data/test/fixtures/generated/osinfo-version-0/windows2008r2-6432m +0 -22
  347. data/test/fixtures/generated/osinfo-version-0/windows2008r2-64f +0 -22
  348. data/test/fixtures/generated/osinfo-version-0/windows2012-6432a +0 -21
  349. data/test/fixtures/generated/osinfo-version-0/windows2012-64aulcdfm +0 -27
  350. data/test/fixtures/generated/osinfo-version-0/windows2012r2-6432l +0 -22
  351. data/test/fixtures/generated/osinfo-version-0/windows2012r2-64u +0 -22
  352. data/test/fixtures/generated/osinfo-version-0/windows2016-6432m +0 -22
  353. data/test/fixtures/generated/osinfo-version-0/windows2016-64f +0 -22
  354. data/test/fixtures/generated/osinfo-version-0/windows7-64c +0 -22
  355. data/test/fixtures/generated/osinfo-version-0/windows8-64d +0 -22
  356. data/test/fixtures/generated/osinfo-version-0/windows81-64f +0 -22
  357. data/test/fixtures/generated/osinfo-version-0/windowsvista-64m +0 -22
  358. data/test/fixtures/generated/osinfo-version-1/aix53-POWERa +0 -19
  359. data/test/fixtures/generated/osinfo-version-1/aix61-POWERu +0 -20
  360. data/test/fixtures/generated/osinfo-version-1/aix71-POWERl +0 -20
  361. data/test/fixtures/generated/osinfo-version-1/arista4-32c +0 -21
  362. data/test/fixtures/generated/osinfo-version-1/centos4-32d +0 -21
  363. data/test/fixtures/generated/osinfo-version-1/centos4-64f +0 -21
  364. data/test/fixtures/generated/osinfo-version-1/centos5-32m +0 -21
  365. data/test/fixtures/generated/osinfo-version-1/centos5-64aulcdfm +0 -26
  366. data/test/fixtures/generated/osinfo-version-1/centos6-32a +0 -20
  367. data/test/fixtures/generated/osinfo-version-1/centos6-64u +0 -21
  368. data/test/fixtures/generated/osinfo-version-1/centos7-64l +0 -21
  369. data/test/fixtures/generated/osinfo-version-1/cisconx-64c +0 -24
  370. data/test/fixtures/generated/osinfo-version-1/ciscoxr-64d +0 -21
  371. data/test/fixtures/generated/osinfo-version-1/cumulus25-64f +0 -21
  372. data/test/fixtures/generated/osinfo-version-1/debian6-32m +0 -21
  373. data/test/fixtures/generated/osinfo-version-1/debian6-64aulcdfm +0 -26
  374. data/test/fixtures/generated/osinfo-version-1/debian7-32a +0 -20
  375. data/test/fixtures/generated/osinfo-version-1/debian7-64u +0 -21
  376. data/test/fixtures/generated/osinfo-version-1/debian8-32l +0 -21
  377. data/test/fixtures/generated/osinfo-version-1/debian8-64c +0 -21
  378. data/test/fixtures/generated/osinfo-version-1/debian9-32d +0 -21
  379. data/test/fixtures/generated/osinfo-version-1/debian9-64f +0 -21
  380. data/test/fixtures/generated/osinfo-version-1/fedora14-32m +0 -21
  381. data/test/fixtures/generated/osinfo-version-1/fedora19-32aulcdfm +0 -26
  382. data/test/fixtures/generated/osinfo-version-1/fedora19-64a +0 -20
  383. data/test/fixtures/generated/osinfo-version-1/fedora20-32u +0 -21
  384. data/test/fixtures/generated/osinfo-version-1/fedora20-64l +0 -21
  385. data/test/fixtures/generated/osinfo-version-1/fedora21-32c +0 -21
  386. data/test/fixtures/generated/osinfo-version-1/fedora21-64d +0 -21
  387. data/test/fixtures/generated/osinfo-version-1/fedora22-32f +0 -21
  388. data/test/fixtures/generated/osinfo-version-1/fedora22-64m +0 -21
  389. data/test/fixtures/generated/osinfo-version-1/fedora23-32aulcdfm +0 -26
  390. data/test/fixtures/generated/osinfo-version-1/fedora23-64a +0 -20
  391. data/test/fixtures/generated/osinfo-version-1/fedora24-32u +0 -21
  392. data/test/fixtures/generated/osinfo-version-1/fedora24-64l +0 -21
  393. data/test/fixtures/generated/osinfo-version-1/huaweios6-POWERc +0 -20
  394. data/test/fixtures/generated/osinfo-version-1/opensuse11-32c +0 -21
  395. data/test/fixtures/generated/osinfo-version-1/opensuse11-64d +0 -21
  396. data/test/fixtures/generated/osinfo-version-1/oracle5-32f +0 -21
  397. data/test/fixtures/generated/osinfo-version-1/oracle5-64m +0 -21
  398. data/test/fixtures/generated/osinfo-version-1/oracle6-32aulcdfm +0 -26
  399. data/test/fixtures/generated/osinfo-version-1/oracle6-64a +0 -20
  400. data/test/fixtures/generated/osinfo-version-1/oracle7-64u +0 -21
  401. data/test/fixtures/generated/osinfo-version-1/osx1010-64c +0 -21
  402. data/test/fixtures/generated/osinfo-version-1/osx1011-64d +0 -21
  403. data/test/fixtures/generated/osinfo-version-1/osx1012-64m +0 -21
  404. data/test/fixtures/generated/osinfo-version-1/osx109-64l +0 -21
  405. data/test/fixtures/generated/osinfo-version-1/redhat4-32f +0 -21
  406. data/test/fixtures/generated/osinfo-version-1/redhat4-64m +0 -21
  407. data/test/fixtures/generated/osinfo-version-1/redhat5-32aulcdfm +0 -26
  408. data/test/fixtures/generated/osinfo-version-1/redhat5-64a +0 -20
  409. data/test/fixtures/generated/osinfo-version-1/redhat6-32u +0 -21
  410. data/test/fixtures/generated/osinfo-version-1/redhat6-64l +0 -21
  411. data/test/fixtures/generated/osinfo-version-1/redhat6-S390Xc +0 -20
  412. data/test/fixtures/generated/osinfo-version-1/redhat7-64d +0 -21
  413. data/test/fixtures/generated/osinfo-version-1/redhat7-S390Xf +0 -20
  414. data/test/fixtures/generated/osinfo-version-1/scientific5-32m +0 -21
  415. data/test/fixtures/generated/osinfo-version-1/scientific5-64aulcdfm +0 -26
  416. data/test/fixtures/generated/osinfo-version-1/scientific6-32a +0 -20
  417. data/test/fixtures/generated/osinfo-version-1/scientific6-64u +0 -21
  418. data/test/fixtures/generated/osinfo-version-1/scientific7-64l +0 -21
  419. data/test/fixtures/generated/osinfo-version-1/sles10-32c +0 -21
  420. data/test/fixtures/generated/osinfo-version-1/sles10-64d +0 -21
  421. data/test/fixtures/generated/osinfo-version-1/sles11-32f +0 -21
  422. data/test/fixtures/generated/osinfo-version-1/sles11-64m +0 -21
  423. data/test/fixtures/generated/osinfo-version-1/sles11-S390Xaulcdfm +0 -25
  424. data/test/fixtures/generated/osinfo-version-1/sles12-64a +0 -20
  425. data/test/fixtures/generated/osinfo-version-1/sles12-S390Xu +0 -20
  426. data/test/fixtures/generated/osinfo-version-1/solaris10-32l +0 -21
  427. data/test/fixtures/generated/osinfo-version-1/solaris10-64c +0 -21
  428. data/test/fixtures/generated/osinfo-version-1/solaris10-SPARCd +0 -20
  429. data/test/fixtures/generated/osinfo-version-1/solaris11-32f +0 -21
  430. data/test/fixtures/generated/osinfo-version-1/solaris11-64m +0 -21
  431. data/test/fixtures/generated/osinfo-version-1/solaris11-SPARCaulcdfm +0 -25
  432. data/test/fixtures/generated/osinfo-version-1/solaris112-32a +0 -20
  433. data/test/fixtures/generated/osinfo-version-1/solaris112-64u +0 -21
  434. data/test/fixtures/generated/osinfo-version-1/ubuntu1004-32l +0 -21
  435. data/test/fixtures/generated/osinfo-version-1/ubuntu1004-64c +0 -21
  436. data/test/fixtures/generated/osinfo-version-1/ubuntu1204-32d +0 -21
  437. data/test/fixtures/generated/osinfo-version-1/ubuntu1204-64f +0 -21
  438. data/test/fixtures/generated/osinfo-version-1/ubuntu1404-32m +0 -21
  439. data/test/fixtures/generated/osinfo-version-1/ubuntu1404-64aulcdfm +0 -26
  440. data/test/fixtures/generated/osinfo-version-1/ubuntu1504-32a +0 -20
  441. data/test/fixtures/generated/osinfo-version-1/ubuntu1504-64u +0 -21
  442. data/test/fixtures/generated/osinfo-version-1/ubuntu1510-32l +0 -21
  443. data/test/fixtures/generated/osinfo-version-1/ubuntu1510-64c +0 -21
  444. data/test/fixtures/generated/osinfo-version-1/ubuntu1604-32d +0 -21
  445. data/test/fixtures/generated/osinfo-version-1/ubuntu1604-64f +0 -21
  446. data/test/fixtures/generated/osinfo-version-1/windows10ent-32aulcdfm +0 -27
  447. data/test/fixtures/generated/osinfo-version-1/windows10ent-64a +0 -21
  448. data/test/fixtures/generated/osinfo-version-1/windows10pro-64u +0 -22
  449. data/test/fixtures/generated/osinfo-version-1/windows2003-6432aulcdfm +0 -27
  450. data/test/fixtures/generated/osinfo-version-1/windows2003-64m +0 -22
  451. data/test/fixtures/generated/osinfo-version-1/windows2003r2-32a +0 -21
  452. data/test/fixtures/generated/osinfo-version-1/windows2003r2-6432l +0 -22
  453. data/test/fixtures/generated/osinfo-version-1/windows2003r2-64u +0 -22
  454. data/test/fixtures/generated/osinfo-version-1/windows2008-6432d +0 -22
  455. data/test/fixtures/generated/osinfo-version-1/windows2008-64c +0 -22
  456. data/test/fixtures/generated/osinfo-version-1/windows2008r2-6432m +0 -22
  457. data/test/fixtures/generated/osinfo-version-1/windows2008r2-64f +0 -22
  458. data/test/fixtures/generated/osinfo-version-1/windows2012-6432a +0 -21
  459. data/test/fixtures/generated/osinfo-version-1/windows2012-64aulcdfm +0 -27
  460. data/test/fixtures/generated/osinfo-version-1/windows2012r2-6432l +0 -22
  461. data/test/fixtures/generated/osinfo-version-1/windows2012r2-64u +0 -22
  462. data/test/fixtures/generated/osinfo-version-1/windows2016-6432m +0 -22
  463. data/test/fixtures/generated/osinfo-version-1/windows2016-64f +0 -22
  464. data/test/fixtures/generated/osinfo-version-1/windows7-64c +0 -22
  465. data/test/fixtures/generated/osinfo-version-1/windows8-64d +0 -22
  466. data/test/fixtures/generated/osinfo-version-1/windows81-64f +0 -22
  467. data/test/fixtures/generated/osinfo-version-1/windowsvista-64m +0 -22
  468. data/test/fixtures/generated/pe_dir/centos6-64mdc +0 -23
  469. data/test/fixtures/generated/pe_upgrade_dir/centos6-64mdc +0 -23
  470. data/test/fixtures/generated/pe_upgrade_ver/centos6-64mdc +0 -23
  471. data/test/fixtures/generated/pe_ver/centos6-64mdc +0 -23
  472. data/test/fixtures/per-host-settings/arbitrary-hypervisor.yaml +0 -39
  473. data/test/fixtures/per-host-settings/arbitrary-settings.yaml +0 -57
  474. data/test/fixtures/per-host-settings/every-hypervisor.yaml +0 -41
  475. data/test/fixtures/per-host-settings/malformed-input.yaml +0 -5
  476. data/test/fixtures/per-host-settings/url-encoded.yaml +0 -44
  477. data/test/fixtures/per-host-settings/with-global-settings.yaml +0 -25
  478. data/test/test_cli.rb +0 -15
  479. data/test/test_generator.rb +0 -27
  480. data/test/test_stdout.rb +0 -21
  481. data/test/util/generator_helpers.rb +0 -158
@@ -1,8 +0,0 @@
1
- HOSTS:
2
- ubuntu-server-1404-x64:
3
- roles:
4
- - master
5
- platform: ubuntu-14.04-amd64
6
- box: puppetlabs/ubuntu-14.04-64-nocm
7
- box_url: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-64-nocm
8
- hypervisor: vagrant
@@ -1,8 +0,0 @@
1
-
2
- # Acceptance level testing goes into files in the tests directory like this one,
3
- # Each file corresponding to a new test made up of individual testing steps
4
- test_name "Template Acceptance Test Example"
5
-
6
- step "Fail fast!"
7
-
8
- fail_test("There are no acceptance tests yet!")
@@ -1,14 +0,0 @@
1
- require 'beaker-hostgenerator/cli'
2
- require 'json'
3
-
4
- module BeakerHostGenerator
5
- describe AbsSupport do
6
- describe 'extract_templates' do
7
- it 'Returns a JSON map with template counts' do
8
- input = ['--templates-only', 'centos6-64m-centos6-64m-redhat7-64m']
9
- expect( JSON.load(BeakerHostGenerator::CLI.new(input).execute) ).
10
- to eq({"centos-6-x86_64" => 2, "redhat-7-x86_64" => 1})
11
- end
12
- end
13
- end
14
- end
@@ -1,94 +0,0 @@
1
- require 'find'
2
-
3
- require 'spec_helper'
4
-
5
- require 'beaker-hostgenerator'
6
- require 'util/generator_helpers'
7
-
8
- module BeakerHostGenerator
9
- describe Generator do
10
- let(:generator) { BeakerHostGenerator::Generator.new }
11
-
12
- describe 'get_host_roles' do
13
- it 'Expands default roles and merges in arbitrary roles' do
14
- {
15
- {
16
- "roles" => "aulcdfm",
17
- "arbitrary_roles" => [],
18
- } => [
19
- 'agent',
20
- 'ca',
21
- 'classifier',
22
- 'dashboard',
23
- 'database',
24
- 'frictionless',
25
- 'master',
26
- ],
27
- {
28
- "roles" => "a",
29
- "arbitrary_roles" => ["meow","hello","compile_master"],
30
- } => [
31
- 'agent',
32
- 'meow',
33
- 'hello',
34
- 'compile_master',
35
- ],
36
- {
37
- "roles" => "",
38
- "arbitrary_roles" => ["compile_master"],
39
- } => [
40
- 'compile_master'
41
- ],
42
- {
43
- "roles" => "",
44
- "arbitrary_roles" => [],
45
- } => [],
46
- }.each do |node_info, roles|
47
- expect( generator.get_host_roles(node_info) ).to eq( roles )
48
- end
49
- end
50
- end
51
-
52
- shared_examples "fixtures" do |fixture_hash|
53
- arguments = fixture_hash["arguments_string"]
54
- it "beaker-hostgenerator #{arguments}" do
55
- arguments = arguments.split
56
- STDERR.reopen("stderr.txt", "w")
57
- fixture_hash['environment_variables'].each do |key, value|
58
- ENV[key] = value
59
- end
60
-
61
- cli = BeakerHostGenerator::CLI.new(arguments)
62
- if fixture_hash['expected_exception']
63
- # Turn fully-qualified classname string into actual Class object.
64
- # We have to manually descend into each Module that makes up the
65
- # fully-qualified path to the error class.
66
- qualified_classname = fixture_hash['expected_exception'].split('::')
67
- expected_class = qualified_classname.reduce(Object) do |accum, e|
68
- accum.const_get(e)
69
- end
70
- expect { cli.execute }.to raise_error(expected_class)
71
- else
72
- test_hash = YAML.load(cli.execute)
73
- expect(test_hash).to eq(fixture_hash['expected_hash'])
74
- end
75
-
76
- fixture_hash['environment_variables'].each_key do |key|
77
- ENV[key] = nil
78
- end
79
- end
80
- end
81
-
82
- context "Fixtures" do
83
- Find.find 'test/fixtures' do |f|
84
- context "#{f}" do
85
- if File.directory?(f)
86
- next
87
- end
88
- include_examples "fixtures", YAML.load_file(f)
89
- end
90
- end
91
- end
92
-
93
- end
94
- end
@@ -1,146 +0,0 @@
1
- require 'beaker-hostgenerator/parser'
2
-
3
- module BeakerHostGenerator
4
- describe Parser do
5
- include BeakerHostGenerator::Parser
6
-
7
- describe 'prepare' do
8
- it 'Supports URL-encoded input' do
9
- expect( prepare('centos6-64m%7Bfoo=bar-baz,this=that%7D-32a') ).
10
- to eq('centos6-64m{foo=bar-baz,this=that}-32a')
11
- end
12
- end
13
-
14
- describe 'parse_node_info_token' do
15
-
16
- it 'Raises InvalidNodeSpecError for invalid tokens.' do
17
- expect { parse_node_info_token("64compile_master") }.
18
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
19
- end
20
-
21
- it 'Supports no roles in the spec.' do
22
- expect( parse_node_info_token("64") ).
23
- to eq({
24
- "roles" => "",
25
- "arbitrary_roles" => [],
26
- "bits" => "64",
27
- "host_settings" => {}
28
- })
29
- end
30
-
31
- context 'When specifying architecture bits' do
32
-
33
- it 'Supports uppercase alphanumeric architecture bits' do
34
- expect( parse_node_info_token("SPARC") ).
35
- to eq({
36
- "roles" => "",
37
- "arbitrary_roles" => [],
38
- "bits" => "SPARC",
39
- "host_settings" => {}
40
- })
41
-
42
- expect( parse_node_info_token("POWER6") ).
43
- to eq({
44
- "roles" => "",
45
- "arbitrary_roles" => [],
46
- "bits" => "POWER6",
47
- "host_settings" => {}
48
- })
49
-
50
- expect( parse_node_info_token("S390X") ).
51
- to eq({
52
- "roles" => "",
53
- "arbitrary_roles" => [],
54
- "bits" => "S390X",
55
- "host_settings" => {}
56
- })
57
-
58
- end
59
-
60
- it 'Trailing lowercase characters are parsed as roles' do
61
- expect( parse_node_info_token("S390Xm") ).
62
- to eq({
63
- "roles" => "m",
64
- "arbitrary_roles" => [],
65
- "bits" => "S390X",
66
- "host_settings" => {}
67
- })
68
-
69
- expect( parse_node_info_token("S390Xcustom.m") ).
70
- to eq({
71
- "roles" => "m",
72
- "arbitrary_roles" => ["custom"],
73
- "bits" => "S390X",
74
- "host_settings" => {}
75
- })
76
- end
77
-
78
- it 'Rejects lowercase characters that are not at the end' do
79
- expect { parse_node_info_token("AbC3") }.
80
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
81
-
82
- expect { parse_node_info_token("aBC3") }.
83
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
84
- end
85
- end
86
-
87
- it 'Supports the use of arbitrary roles.' do
88
- expect( parse_node_info_token("64compile_master,ca,blah.mad") ).
89
- to eq({
90
- "roles" => "mad",
91
- "arbitrary_roles" => ["compile_master", "ca", "blah"],
92
- "bits" => "64",
93
- "host_settings" => {}
94
- })
95
- end
96
-
97
- context 'When using arbitrary roles' do
98
-
99
- it 'Fails without a role-type delimiter (a period)' do
100
- expect { parse_node_info_token("64compile_master,ca,blah") }.
101
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
102
- end
103
-
104
- it 'It supports no static roles.' do
105
- expect( parse_node_info_token("64compile_master,ca,blah.") ).
106
- to eq({
107
- "roles" => "",
108
- "arbitrary_roles" => ["compile_master", "ca", "blah"],
109
- "bits" => "64",
110
- "host_settings" => {}
111
- })
112
- end
113
- end
114
-
115
- context 'When using arbitrary host settings' do
116
- it 'Supports arbitrary whitespace in values' do
117
- expect( parse_node_info_token("64{k1=value 1,k2=v2,k3= v3 }") ).
118
- to eq({
119
- "roles" => "",
120
- "arbitrary_roles" => [],
121
- "bits" => "64",
122
- "host_settings" => {
123
- "k1" => "value 1",
124
- "k2" => "v2",
125
- "k3" => " v3 "
126
- }
127
- })
128
- end
129
-
130
- it 'Raises InvalidNodeSpecError for malformed key-value pairs' do
131
- expect { parse_node_info_token("64{foo=bar=baz}") }.
132
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
133
-
134
- expect { parse_node_info_token("64{foo=}") }.
135
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
136
-
137
- expect { parse_node_info_token("64{=bar}") }.
138
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
139
-
140
- expect { parse_node_info_token("64{=}") }.
141
- to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
142
- end
143
- end
144
- end
145
- end
146
- end
@@ -1,109 +0,0 @@
1
- module TestFileHelpers
2
- def create_files file_array
3
- file_array.each do |f|
4
- FileUtils.mkdir_p File.dirname(f)
5
- FileUtils.touch f
6
- end
7
- end
8
-
9
- def fog_file_contents
10
- { :default => { :aws_access_key_id => "IMANACCESSKEY",
11
- :aws_secret_access_key => "supersekritkey",
12
- :aix_hypervisor_server => "aix_hypervisor.labs.net",
13
- :aix_hypervisor_username => "aixer",
14
- :aix_hypervisor_keyfile => "/Users/user/.ssh/id_rsa-acceptance",
15
- :solaris_hypervisor_server => "solaris_hypervisor.labs.net",
16
- :solaris_hypervisor_username => "harness",
17
- :solaris_hypervisor_keyfile => "/Users/user/.ssh/id_rsa-old.private",
18
- :solaris_hypervisor_vmpath => "rpoooool/zs",
19
- :solaris_hypervisor_snappaths => ["rpoooool/USER/z0"],
20
- :vsphere_server => "vsphere.labs.net",
21
- :vsphere_username => "vsphere@labs.com",
22
- :vsphere_password => "supersekritpassword"} }
23
- end
24
-
25
- end
26
-
27
- module HostHelpers
28
- HOST_DEFAULTS = { :platform => 'unix',
29
- :snapshot => 'pe',
30
- :box => 'box_name',
31
- :roles => ['agent'],
32
- :snapshot => 'snap',
33
- :ip => 'default.ip.address',
34
- :box => 'default_box_name',
35
- :box_url => 'http://default.box.url',
36
- }
37
-
38
- HOST_NAME = "vm%d"
39
- HOST_SNAPSHOT = "snapshot%d"
40
- HOST_IP = "ip.address.for.%s"
41
- HOST_BOX = "%s_of_my_box"
42
- HOST_BOX_URL = "http://address.for.my.box.%s"
43
- HOST_TEMPLATE = "%s_has_a_template"
44
-
45
- def logger
46
- double( 'logger' ).as_null_object
47
- end
48
-
49
- def make_opts
50
- opts = StringifyHash.new
51
- opts.merge( { :logger => logger,
52
- :host_config => 'sample.config',
53
- :type => nil,
54
- :pooling_api => 'http://vcloud.delivery.puppetlabs.net/',
55
- :datastore => 'instance0',
56
- :folder => 'Delivery/Quality Assurance/Staging/Dynamic',
57
- :resourcepool => 'delivery/Quality Assurance/Staging/Dynamic',
58
- :gce_project => 'beaker-compute',
59
- :gce_keyfile => '/path/to/keyfile.p12',
60
- :gce_password => 'notasecret',
61
- :gce_email => '12345678910@developer.gserviceaccount.com' } )
62
- end
63
-
64
- def generate_result (name, opts )
65
- result = double( 'result' )
66
- stdout = opts.has_key?(:stdout) ? opts[:stdout] : name
67
- stderr = opts.has_key?(:stderr) ? opts[:stderr] : name
68
- exit_code = opts.has_key?(:exit_code) ? opts[:exit_code] : 0
69
- exit_code = [exit_code].flatten
70
- allow( result ).to receive( :stdout ).and_return( stdout )
71
- allow( result ).to receive( :stderr ).and_return( stderr )
72
- allow( result ).to receive( :exit_code ).and_return( *exit_code )
73
- result
74
- end
75
-
76
- def make_host_opts name, opts
77
- make_opts.merge( { 'HOSTS' => { name => opts } } ).merge( opts )
78
- end
79
-
80
- def make_host name, host_hash
81
- host_hash = StringifyHash.new.merge(HOST_DEFAULTS.merge(host_hash))
82
-
83
- host = make_opts.merge(host_hash)
84
-
85
- allow(host).to receive( :name ).and_return( name )
86
- allow(host).to receive( :to_s ).and_return( name )
87
- allow(host).to receive( :exec ).and_return( generate_result( name, host_hash ) )
88
- host
89
- end
90
-
91
- def make_hosts preset_opts = {}, amt = 3
92
- hosts = []
93
- (1..amt).each do |num|
94
- name = HOST_NAME % num
95
- opts = { :snapshot => HOST_SNAPSHOT % num,
96
- :ip => HOST_IP % name,
97
- :template => HOST_TEMPLATE % name,
98
- :box => HOST_BOX % name,
99
- :box_url => HOST_BOX_URL % name }.merge( preset_opts )
100
- hosts << make_host(name, opts)
101
- end
102
- hosts
103
- end
104
-
105
- def make_instance instance_data = {}
106
- OpenStruct.new instance_data
107
- end
108
-
109
- end
@@ -1,10 +0,0 @@
1
- require 'simplecov'
2
- require 'beaker-hostgenerator'
3
- require 'helpers'
4
-
5
- require 'rspec/its'
6
-
7
- RSpec.configure do |config|
8
- config.include TestFileHelpers
9
- config.include HostHelpers
10
- end
@@ -1,19 +0,0 @@
1
- ---
2
- arguments_string: aix53-POWERa
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- aix53-POWER-1:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: aix-5.3-power
13
- roles:
14
- - agent
15
- CONFIG:
16
- nfs_server: none
17
- consoleport: 443
18
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
19
- expected_exception:
@@ -1,20 +0,0 @@
1
- ---
2
- arguments_string: aix61-POWERu
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- aix61-POWER-1:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: aix-6.1-power
13
- roles:
14
- - agent
15
- - ca
16
- CONFIG:
17
- nfs_server: none
18
- consoleport: 443
19
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
20
- expected_exception:
@@ -1,20 +0,0 @@
1
- ---
2
- arguments_string: aix71-POWERl
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- aix71-POWER-1:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: aix-7.1-power
13
- roles:
14
- - agent
15
- - classifier
16
- CONFIG:
17
- nfs_server: none
18
- consoleport: 443
19
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
20
- expected_exception: