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,23 +0,0 @@
1
- ---
2
- arguments_string: --pe_ver 2020.7 centos6-64mdc
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- centos6-64-1:
7
- pe_dir:
8
- pe_ver: '2020.7'
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: el-6-x86_64
13
- template: centos-6-x86_64
14
- roles:
15
- - agent
16
- - master
17
- - database
18
- - dashboard
19
- CONFIG:
20
- nfs_server: none
21
- consoleport: 443
22
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
23
- expected_exception:
@@ -1,39 +0,0 @@
1
- ---
2
- arguments_string: centos6-64m{hypervisor=vmpooler}-debian8-32a{hypervisor=none}-redhat7-64a{hypervisor=custom}
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- centos6-64-1:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: el-6-x86_64
13
- template: centos-6-x86_64
14
- roles:
15
- - agent
16
- - master
17
- debian8-32-1:
18
- pe_dir:
19
- pe_ver:
20
- pe_upgrade_dir:
21
- pe_upgrade_ver:
22
- platform: debian-8-i386
23
- hypervisor: none
24
- roles:
25
- - agent
26
- redhat7-64-1:
27
- pe_dir:
28
- pe_ver:
29
- pe_upgrade_dir:
30
- pe_upgrade_ver:
31
- platform: el-7-x86_64
32
- hypervisor: custom
33
- roles:
34
- - agent
35
- CONFIG:
36
- nfs_server: none
37
- consoleport: 443
38
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
39
- expected_exception:
@@ -1,57 +0,0 @@
1
- ---
2
- arguments_string: redhat7-64role_a,role_b.m{hypervisor=none,hostname=redhat,vmhostname=vm-redhat,ip=1.2.3.4}-sles10-32a-64a{key=value-with-dashes}-64dc
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- redhat:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- platform: el-7-x86_64
12
- hypervisor: none
13
- vmhostname: vm-redhat
14
- ip: 1.2.3.4
15
- roles:
16
- - agent
17
- - master
18
- - role_a
19
- - role_b
20
- sles10-32-1:
21
- pe_dir:
22
- pe_ver:
23
- pe_upgrade_dir:
24
- pe_upgrade_ver:
25
- hypervisor: vmpooler
26
- platform: sles-10-i386
27
- template: sles-10-i386
28
- roles:
29
- - agent
30
- sles10-64-2:
31
- pe_dir:
32
- pe_ver:
33
- pe_upgrade_dir:
34
- pe_upgrade_ver:
35
- hypervisor: vmpooler
36
- platform: sles-10-x86_64
37
- template: sles-10-x86_64
38
- key: value-with-dashes
39
- roles:
40
- - agent
41
- sles10-64-3:
42
- pe_dir:
43
- pe_ver:
44
- pe_upgrade_dir:
45
- pe_upgrade_ver:
46
- hypervisor: vmpooler
47
- platform: sles-10-x86_64
48
- template: sles-10-x86_64
49
- roles:
50
- - agent
51
- - database
52
- - dashboard
53
- CONFIG:
54
- nfs_server: none
55
- consoleport: 443
56
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
57
- expected_exception:
@@ -1,41 +0,0 @@
1
- ---
2
- arguments_string: centos6-64m{hypervisor=vmpooler}-debian8-32a{hypervisor=none}-redhat7-64f{hypervisor=abs}
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- centos6-64-1:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: el-6-x86_64
13
- template: centos-6-x86_64
14
- roles:
15
- - agent
16
- - master
17
- debian8-32-1:
18
- pe_dir:
19
- pe_ver:
20
- pe_upgrade_dir:
21
- pe_upgrade_ver:
22
- platform: debian-8-i386
23
- hypervisor: none
24
- roles:
25
- - agent
26
- redhat7-64-1:
27
- pe_dir:
28
- pe_ver:
29
- pe_upgrade_dir:
30
- pe_upgrade_ver:
31
- hypervisor: abs
32
- platform: el-7-x86_64
33
- template: redhat-7-x86_64
34
- roles:
35
- - agent
36
- - frictionless
37
- CONFIG:
38
- nfs_server: none
39
- consoleport: 443
40
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
41
- expected_exception:
@@ -1,5 +0,0 @@
1
- ---
2
- arguments_string: 'centos6-64m\ {foo=bar}'
3
- environment_variables: {}
4
- expected_hash:
5
- expected_exception: BeakerHostGenerator::Exceptions::InvalidNodeSpecError
@@ -1,44 +0,0 @@
1
- ---
2
- arguments_string: centos6-64mcd-aix53-POWERfa%7Bhypervisor=aix%2Cvmhostname=pe-aix-53-acceptance.delivery.puppetlabs.net%7D-POWERa%7Bfoo=bar%7D
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- centos6-64-1:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: el-6-x86_64
13
- template: centos-6-x86_64
14
- roles:
15
- - agent
16
- - master
17
- - dashboard
18
- - database
19
- aix53-POWER-1:
20
- pe_dir:
21
- pe_ver:
22
- pe_upgrade_dir:
23
- pe_upgrade_ver:
24
- platform: aix-5.3-power
25
- hypervisor: aix
26
- vmhostname: pe-aix-53-acceptance.delivery.puppetlabs.net
27
- roles:
28
- - agent
29
- - frictionless
30
- aix53-POWER-2:
31
- pe_dir:
32
- pe_ver:
33
- pe_upgrade_dir:
34
- pe_upgrade_ver:
35
- hypervisor: vmpooler
36
- platform: aix-5.3-power
37
- foo: bar
38
- roles:
39
- - agent
40
- CONFIG:
41
- nfs_server: none
42
- consoleport: 443
43
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
44
- expected_exception:
@@ -1,25 +0,0 @@
1
- ---
2
- arguments_string: "--global-config {masterless=true,number=1234,key=url%20encoded%20%20white%20space} redhat7-64c{type=o-negative}"
3
- environment_variables: {}
4
- expected_hash:
5
- HOSTS:
6
- redhat7-64-1:
7
- pe_dir:
8
- pe_ver:
9
- pe_upgrade_dir:
10
- pe_upgrade_ver:
11
- hypervisor: vmpooler
12
- platform: el-7-x86_64
13
- template: redhat-7-x86_64
14
- type: o-negative
15
- roles:
16
- - agent
17
- - dashboard
18
- CONFIG:
19
- nfs_server: none
20
- consoleport: 443
21
- masterless: true
22
- number: 1234
23
- key: url encoded white space
24
- pooling_api: http://vmpooler.delivery.puppetlabs.net/
25
- expected_exception:
@@ -1,15 +0,0 @@
1
- require 'minitest/autorun'
2
-
3
- require 'beaker-hostgenerator/cli'
4
-
5
- class TestUtil < Minitest::Test
6
-
7
- def test_new_with_list_option
8
- assert_instance_of(String, BeakerHostGenerator::CLI.new(['--list']).execute)
9
- end
10
-
11
- def test_version_option
12
- assert_equal(BeakerHostGenerator::Version::STRING,
13
- BeakerHostGenerator::CLI.new(['--version']).execute)
14
- end
15
- end
@@ -1,27 +0,0 @@
1
- require "find"
2
- require "yaml"
3
-
4
- require "minitest/autorun"
5
-
6
- require 'util/generator_helpers'
7
-
8
- class TestGenerator < Minitest::Test
9
- include GeneratorTestHelpers
10
-
11
- def setup
12
- @default_options = [
13
- 'centos6-64mdca',
14
- ]
15
- end
16
-
17
- def test_default_options
18
- hash = run_cli_with_options(@default_options)
19
- hosts = hash['HOSTS']
20
-
21
- assert_includes(hosts, "centos6-64-1")
22
- centos6 = hosts['centos6-64-1']
23
- ["master", "database", "dashboard", "agent"].each do |role|
24
- assert_includes(centos6['roles'], role)
25
- end
26
- end
27
- end
@@ -1,21 +0,0 @@
1
- require 'minitest/autorun'
2
- require 'beaker-hostgenerator/cli'
3
- require 'beaker-hostgenerator/data'
4
-
5
- class TestStdout < Minitest::Test
6
-
7
- def setup
8
- @stderr = StringIO.new
9
- @stdout = StringIO.new
10
-
11
- $stderr = @stderr
12
- $stdout = @stdout
13
- end
14
-
15
- def test_default_list_output
16
- BeakerHostGenerator::CLI.new(['--list']).execute!
17
- BeakerHostGenerator::Data.get_platforms(0).each do |spec_key|
18
- assert_match(/.*#{spec_key}.*/, @stdout.string)
19
- end
20
- end
21
- end
@@ -1,158 +0,0 @@
1
- require "yaml"
2
-
3
- require 'beaker-hostgenerator'
4
- require 'beaker-hostgenerator/data'
5
-
6
- module GeneratorTestHelpers
7
- include BeakerHostGenerator::Data
8
-
9
- def run_cli_with_options(options=[])
10
- STDERR.reopen("stderr.txt", "w")
11
- cli = BeakerHostGenerator::CLI.new(options)
12
- yaml_string = cli.execute
13
-
14
- hash = YAML.load(yaml_string)
15
- return hash
16
- end
17
-
18
- def open_file(path)
19
- # Takes a list of path elements.
20
- # Returns a file object where the basename of the file is the last path
21
- # element.
22
- dirname = File.join(path[1, path.length - 2]) # wtf
23
- filename = File.join(path)
24
- FileUtils.mkdir_p(dirname)
25
- return File.open(filename, "w")
26
- end
27
-
28
- def generate_fixture(relative_path, options, spec, environment_variables={})
29
- specopts = options + [spec]
30
- arguments_string = specopts.join(" ")
31
-
32
- environment_variables.each do |key, value|
33
- ENV[key] = value
34
- end
35
- generated_hash = run_cli_with_options(specopts)
36
- environment_variables.each_key do |key|
37
- ENV[key] = nil
38
- end
39
-
40
- fixture_hash = {
41
- "arguments_string" => arguments_string,
42
- "environment_variables" => environment_variables,
43
- "expected_hash" => generated_hash,
44
- "expected_exception" => nil,
45
- }
46
- fixture_yaml = fixture_hash.to_yaml
47
-
48
- fixture_file = open_file([Dir.pwd, @fixture_root] + relative_path + [spec])
49
- fixture_file.write(fixture_yaml)
50
- end
51
-
52
- def generate_fixtures_using_osinfo(relative_path,
53
- role_enumerator,
54
- options=[],
55
- bhg_version=0)
56
- platforms = get_platforms(bhg_version)
57
- platforms.each do |platform_info|
58
- role = role_enumerator.next
59
- spec = "#{platform_info}" + role
60
- generate_fixture(relative_path, options, spec)
61
- end
62
- end
63
-
64
- end
65
-
66
- class FixtureGenerator
67
- include GeneratorTestHelpers
68
-
69
- def initialize
70
- @fixture_root = 'test/fixtures/generated/'
71
- @simple_roles = ["a", "u", "l", "c", "d", "f", "m", "aulcdfm"]
72
- end
73
-
74
- def generate
75
- # Validates single-host scenarios using all short-form role aliases with no
76
- # optional flags'
77
- generate_fixtures_using_osinfo(['default'], @simple_roles.cycle, [])
78
-
79
- # Validates the use of environment variables to set various pe options.
80
- [
81
- {'case_name' => 'pe_version_and_pe_family',
82
- 'environment_variables' => {
83
- 'pe_version' => '6.6.6',
84
- 'pe_upgrade_version' => '6.6.6',
85
- 'pe_family' => '6.6.6',
86
- 'pe_upgrade_family' => '6.6.6',
87
- }
88
- },
89
- {'case_name' => 'pe_version_and_pe_family_upgrade_only',
90
- 'environment_variables' => {
91
- 'pe_upgrade_version' => '6.6.6',
92
- 'pe_upgrade_family' => '6.6.6',
93
- }
94
- },
95
- {'case_name' => 'pe_version_and_pe_family_no_upgrade',
96
- 'environment_variables' => {
97
- 'pe_version' => '6.6.6',
98
- 'pe_family' => '6.6.6',
99
- }
100
- },
101
- ].each do |fixture_hash|
102
- case_name = fixture_hash['case_name']
103
- environment_variables = fixture_hash['case_name']
104
- generate_fixture(['environment_variable_tests', fixture_hash['case_name']],
105
- [],
106
- 'centos6-32a',
107
- fixture_hash['environment_variables'])
108
- end
109
-
110
- # Validates single-host scenarios using all short-form role aliases with the
111
- # addition of the --osinfo-version flag to indicate which BHG version to
112
- # generate host configs for.
113
- [0, 1].each do |bhg_version|
114
- generate_fixtures_using_osinfo(["osinfo-version-#{bhg_version}"],
115
- @simple_roles.cycle,
116
- ["--osinfo-version", "#{bhg_version}"],
117
- bhg_version)
118
- end
119
-
120
- # Validates the use of the pe ver/dir type options.
121
- [
122
- {
123
- 'path' => ['pe_upgrade_ver'],
124
- 'options' => ['--pe_upgrade_ver', '2020.7.3'],
125
- 'spec' => 'centos6-64mdc'
126
- },
127
- {
128
- 'path' => ['pe_ver'],
129
- 'options' => ['--pe_ver', '2020.7'],
130
- 'spec' => 'centos6-64mdc'
131
- },
132
- {
133
- 'path' => ['pe_upgrade_dir'],
134
- 'options' => ['--pe_upgrade_dir', '/opt/whatever'],
135
- 'spec' => 'centos6-64mdc'
136
- },
137
- {
138
- 'path' => ['pe_dir'],
139
- 'options' => ['--pe_dir', '/opt/hello'],
140
- 'spec' => 'centos6-64mdc'
141
- }
142
- ].each do |fixture_info|
143
- generate_fixture(fixture_info['path'],
144
- fixture_info['options'],
145
- fixture_info['spec'])
146
- end
147
-
148
- # Validates multi-platform specs
149
- get_platforms(0).zip(
150
- get_platforms(1).reverse,
151
- get_platforms(0),
152
- @simple_roles.cycle,
153
- @simple_roles.reverse.cycle
154
- ) do |p1, p2, p3, r1, r2|
155
- generate_fixture(["multiplatform"], [], "#{p1}#{r1}-#{p2}-#{p3}#{r2}")
156
- end
157
- end
158
- end