beaker-hostgenerator 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile +4 -0
  4. data/HISTORY.md +201 -2
  5. data/README.md +91 -0
  6. data/Rakefile +27 -1
  7. data/beaker-hostgenerator.gemspec +0 -1
  8. data/bin/beaker-hostgenerator +5 -1
  9. data/bin/genconfig2 +5 -1
  10. data/lib/beaker-hostgenerator/cli.rb +28 -8
  11. data/lib/beaker-hostgenerator/data/vmpooler.rb +3 -2
  12. data/lib/beaker-hostgenerator/data.rb +15 -5
  13. data/lib/beaker-hostgenerator/exceptions.rb +7 -0
  14. data/lib/beaker-hostgenerator/generator.rb +16 -9
  15. data/lib/beaker-hostgenerator/util.rb +2 -2
  16. data/lib/beaker-hostgenerator/version.rb +1 -1
  17. data/spec/beaker-hostgenerator/generator_spec.rb +35 -3
  18. data/test/fixtures/default/arista4-32a +20 -0
  19. data/test/fixtures/default/centos4-32u +21 -0
  20. data/test/fixtures/default/centos4-64l +21 -0
  21. data/test/fixtures/default/centos5-32c +21 -0
  22. data/test/fixtures/default/centos5-64d +21 -0
  23. data/test/fixtures/default/centos6-32f +21 -0
  24. data/test/fixtures/default/centos6-64m +21 -0
  25. data/test/fixtures/default/centos7-64aulcdfm +26 -0
  26. data/test/fixtures/default/ciscoexr7-64u +22 -0
  27. data/test/fixtures/default/cisconxos5-64a +23 -0
  28. data/test/fixtures/default/cumulus25-64l +21 -0
  29. data/test/fixtures/default/debian6-32c +21 -0
  30. data/test/fixtures/default/debian6-64d +21 -0
  31. data/test/fixtures/default/debian7-32f +21 -0
  32. data/test/fixtures/default/debian7-64m +21 -0
  33. data/test/fixtures/default/debian8-32aulcdfm +26 -0
  34. data/test/fixtures/default/debian8-64a +20 -0
  35. data/test/fixtures/default/debian9-32u +21 -0
  36. data/test/fixtures/default/debian9-64l +21 -0
  37. data/test/fixtures/default/fedora14-32l +21 -0
  38. data/test/fixtures/default/fedora19-32c +21 -0
  39. data/test/fixtures/default/fedora19-64d +21 -0
  40. data/test/fixtures/default/fedora20-32f +21 -0
  41. data/test/fixtures/default/fedora20-64m +21 -0
  42. data/test/fixtures/default/fedora21-32aulcdfm +26 -0
  43. data/test/fixtures/default/fedora21-64a +20 -0
  44. data/test/fixtures/default/fedora22-32u +21 -0
  45. data/test/fixtures/default/fedora22-64l +21 -0
  46. data/test/fixtures/default/fedora23-32c +21 -0
  47. data/test/fixtures/default/fedora23-64d +21 -0
  48. data/test/fixtures/default/opensuse11-32f +21 -0
  49. data/test/fixtures/default/opensuse11-64m +21 -0
  50. data/test/fixtures/default/oracle5-32c +21 -0
  51. data/test/fixtures/default/oracle5-64d +21 -0
  52. data/test/fixtures/default/oracle6-32f +21 -0
  53. data/test/fixtures/default/oracle6-64m +21 -0
  54. data/test/fixtures/default/oracle7-64aulcdfm +26 -0
  55. data/test/fixtures/default/osx1010-64u +21 -0
  56. data/test/fixtures/default/osx1011-64l +21 -0
  57. data/test/fixtures/default/osx109-64a +20 -0
  58. data/test/fixtures/default/redhat4-32c +21 -0
  59. data/test/fixtures/default/redhat4-64d +21 -0
  60. data/test/fixtures/default/redhat5-32f +21 -0
  61. data/test/fixtures/default/redhat5-64m +21 -0
  62. data/test/fixtures/default/redhat6-32aulcdfm +26 -0
  63. data/test/fixtures/default/redhat6-64a +20 -0
  64. data/test/fixtures/default/redhat7-64u +21 -0
  65. data/test/fixtures/default/scientific5-32aulcdfm +26 -0
  66. data/test/fixtures/default/scientific5-64a +20 -0
  67. data/test/fixtures/default/scientific6-32u +21 -0
  68. data/test/fixtures/default/scientific6-64l +21 -0
  69. data/test/fixtures/default/scientific7-64c +21 -0
  70. data/test/fixtures/default/sles10-32d +21 -0
  71. data/test/fixtures/default/sles10-64f +21 -0
  72. data/test/fixtures/default/sles11-32m +21 -0
  73. data/test/fixtures/default/sles11-64aulcdfm +26 -0
  74. data/test/fixtures/default/sles12-64a +20 -0
  75. data/test/fixtures/default/solaris10-32u +21 -0
  76. data/test/fixtures/default/solaris10-64l +21 -0
  77. data/test/fixtures/default/solaris11-32c +21 -0
  78. data/test/fixtures/default/solaris11-64d +21 -0
  79. data/test/fixtures/default/solaris112-32f +21 -0
  80. data/test/fixtures/default/solaris112-64m +21 -0
  81. data/test/fixtures/default/ubuntu1004-32aulcdfm +26 -0
  82. data/test/fixtures/default/ubuntu1004-64a +20 -0
  83. data/test/fixtures/default/ubuntu1204-32u +21 -0
  84. data/test/fixtures/default/ubuntu1204-64l +21 -0
  85. data/test/fixtures/default/ubuntu1404-32c +21 -0
  86. data/test/fixtures/default/ubuntu1404-64d +21 -0
  87. data/test/fixtures/default/ubuntu1504-32f +21 -0
  88. data/test/fixtures/default/ubuntu1504-64m +21 -0
  89. data/test/fixtures/default/ubuntu1510-32aulcdfm +26 -0
  90. data/test/fixtures/default/ubuntu1510-64a +20 -0
  91. data/test/fixtures/default/windows10ent-32l +22 -0
  92. data/test/fixtures/default/windows10ent-64c +22 -0
  93. data/test/fixtures/default/windows10pro-64d +22 -0
  94. data/test/fixtures/default/windows2003-6432l +22 -0
  95. data/test/fixtures/default/windows2003-64u +22 -0
  96. data/test/fixtures/default/windows2003r2-32c +22 -0
  97. data/test/fixtures/default/windows2003r2-6432f +22 -0
  98. data/test/fixtures/default/windows2003r2-64d +22 -0
  99. data/test/fixtures/default/windows2008-6432aulcdfm +27 -0
  100. data/test/fixtures/default/windows2008-64m +22 -0
  101. data/test/fixtures/default/windows2008r2-6432u +22 -0
  102. data/test/fixtures/default/windows2008r2-64a +21 -0
  103. data/test/fixtures/default/windows2012-6432c +22 -0
  104. data/test/fixtures/default/windows2012-64l +22 -0
  105. data/test/fixtures/default/windows2012r2-6432f +22 -0
  106. data/test/fixtures/default/windows2012r2-64d +22 -0
  107. data/test/fixtures/default/windows7-64m +22 -0
  108. data/test/fixtures/default/windows8-64aulcdfm +27 -0
  109. data/test/fixtures/default/windows81-64a +21 -0
  110. data/test/fixtures/default/windowsvista-64u +22 -0
  111. data/test/fixtures/environment_variable_tests/pe_version_and_pe_family/centos6-32a +24 -0
  112. data/test/fixtures/environment_variable_tests/pe_version_and_pe_family_no_upgrade/centos6-32a +22 -0
  113. data/test/fixtures/environment_variable_tests/pe_version_and_pe_family_upgrade_only/centos6-32a +22 -0
  114. data/test/fixtures/osinfo-version-0/arista4-32a +20 -0
  115. data/test/fixtures/osinfo-version-0/centos4-32u +21 -0
  116. data/test/fixtures/osinfo-version-0/centos4-64l +21 -0
  117. data/test/fixtures/osinfo-version-0/centos5-32c +21 -0
  118. data/test/fixtures/osinfo-version-0/centos5-64d +21 -0
  119. data/test/fixtures/osinfo-version-0/centos6-32f +21 -0
  120. data/test/fixtures/osinfo-version-0/centos6-64m +21 -0
  121. data/test/fixtures/osinfo-version-0/centos7-64aulcdfm +26 -0
  122. data/test/fixtures/osinfo-version-0/ciscoexr7-64u +22 -0
  123. data/test/fixtures/osinfo-version-0/cisconxos5-64a +23 -0
  124. data/test/fixtures/osinfo-version-0/cumulus25-64l +21 -0
  125. data/test/fixtures/osinfo-version-0/debian6-32c +21 -0
  126. data/test/fixtures/osinfo-version-0/debian6-64d +21 -0
  127. data/test/fixtures/osinfo-version-0/debian7-32f +21 -0
  128. data/test/fixtures/osinfo-version-0/debian7-64m +21 -0
  129. data/test/fixtures/osinfo-version-0/debian8-32aulcdfm +26 -0
  130. data/test/fixtures/osinfo-version-0/debian8-64a +20 -0
  131. data/test/fixtures/osinfo-version-0/debian9-32u +21 -0
  132. data/test/fixtures/osinfo-version-0/debian9-64l +21 -0
  133. data/test/fixtures/osinfo-version-0/fedora14-32l +21 -0
  134. data/test/fixtures/osinfo-version-0/fedora19-32c +21 -0
  135. data/test/fixtures/osinfo-version-0/fedora19-64d +21 -0
  136. data/test/fixtures/osinfo-version-0/fedora20-32f +21 -0
  137. data/test/fixtures/osinfo-version-0/fedora20-64m +21 -0
  138. data/test/fixtures/osinfo-version-0/fedora21-32aulcdfm +26 -0
  139. data/test/fixtures/osinfo-version-0/fedora21-64a +20 -0
  140. data/test/fixtures/osinfo-version-0/fedora22-32u +21 -0
  141. data/test/fixtures/osinfo-version-0/fedora22-64l +21 -0
  142. data/test/fixtures/osinfo-version-0/fedora23-32c +21 -0
  143. data/test/fixtures/osinfo-version-0/fedora23-64d +21 -0
  144. data/test/fixtures/osinfo-version-0/opensuse11-32f +21 -0
  145. data/test/fixtures/osinfo-version-0/opensuse11-64m +21 -0
  146. data/test/fixtures/osinfo-version-0/oracle5-32c +21 -0
  147. data/test/fixtures/osinfo-version-0/oracle5-64d +21 -0
  148. data/test/fixtures/osinfo-version-0/oracle6-32f +21 -0
  149. data/test/fixtures/osinfo-version-0/oracle6-64m +21 -0
  150. data/test/fixtures/osinfo-version-0/oracle7-64aulcdfm +26 -0
  151. data/test/fixtures/osinfo-version-0/osx1010-64u +21 -0
  152. data/test/fixtures/osinfo-version-0/osx1011-64l +21 -0
  153. data/test/fixtures/osinfo-version-0/osx109-64a +20 -0
  154. data/test/fixtures/osinfo-version-0/redhat4-32c +21 -0
  155. data/test/fixtures/osinfo-version-0/redhat4-64d +21 -0
  156. data/test/fixtures/osinfo-version-0/redhat5-32f +21 -0
  157. data/test/fixtures/osinfo-version-0/redhat5-64m +21 -0
  158. data/test/fixtures/osinfo-version-0/redhat6-32aulcdfm +26 -0
  159. data/test/fixtures/osinfo-version-0/redhat6-64a +20 -0
  160. data/test/fixtures/osinfo-version-0/redhat7-64u +21 -0
  161. data/test/fixtures/osinfo-version-0/scientific5-32aulcdfm +26 -0
  162. data/test/fixtures/osinfo-version-0/scientific5-64a +20 -0
  163. data/test/fixtures/osinfo-version-0/scientific6-32u +21 -0
  164. data/test/fixtures/osinfo-version-0/scientific6-64l +21 -0
  165. data/test/fixtures/osinfo-version-0/scientific7-64c +21 -0
  166. data/test/fixtures/osinfo-version-0/sles10-32d +21 -0
  167. data/test/fixtures/osinfo-version-0/sles10-64f +21 -0
  168. data/test/fixtures/osinfo-version-0/sles11-32m +21 -0
  169. data/test/fixtures/osinfo-version-0/sles11-64aulcdfm +26 -0
  170. data/test/fixtures/osinfo-version-0/sles12-64a +20 -0
  171. data/test/fixtures/osinfo-version-0/solaris10-32u +21 -0
  172. data/test/fixtures/osinfo-version-0/solaris10-64l +21 -0
  173. data/test/fixtures/osinfo-version-0/solaris11-32c +21 -0
  174. data/test/fixtures/osinfo-version-0/solaris11-64d +21 -0
  175. data/test/fixtures/osinfo-version-0/solaris112-32f +21 -0
  176. data/test/fixtures/osinfo-version-0/solaris112-64m +21 -0
  177. data/test/fixtures/osinfo-version-0/ubuntu1004-32aulcdfm +26 -0
  178. data/test/fixtures/osinfo-version-0/ubuntu1004-64a +20 -0
  179. data/test/fixtures/osinfo-version-0/ubuntu1204-32u +21 -0
  180. data/test/fixtures/osinfo-version-0/ubuntu1204-64l +21 -0
  181. data/test/fixtures/osinfo-version-0/ubuntu1404-32c +21 -0
  182. data/test/fixtures/osinfo-version-0/ubuntu1404-64d +21 -0
  183. data/test/fixtures/osinfo-version-0/ubuntu1504-32f +21 -0
  184. data/test/fixtures/osinfo-version-0/ubuntu1504-64m +21 -0
  185. data/test/fixtures/osinfo-version-0/ubuntu1510-32aulcdfm +26 -0
  186. data/test/fixtures/osinfo-version-0/ubuntu1510-64a +20 -0
  187. data/test/fixtures/osinfo-version-0/windows10ent-32l +22 -0
  188. data/test/fixtures/osinfo-version-0/windows10ent-64c +22 -0
  189. data/test/fixtures/osinfo-version-0/windows10pro-64d +22 -0
  190. data/test/fixtures/osinfo-version-0/windows2003-6432l +22 -0
  191. data/test/fixtures/osinfo-version-0/windows2003-64u +22 -0
  192. data/test/fixtures/osinfo-version-0/windows2003r2-32c +22 -0
  193. data/test/fixtures/osinfo-version-0/windows2003r2-6432f +22 -0
  194. data/test/fixtures/osinfo-version-0/windows2003r2-64d +22 -0
  195. data/test/fixtures/osinfo-version-0/windows2008-6432aulcdfm +27 -0
  196. data/test/fixtures/osinfo-version-0/windows2008-64m +22 -0
  197. data/test/fixtures/osinfo-version-0/windows2008r2-6432u +22 -0
  198. data/test/fixtures/osinfo-version-0/windows2008r2-64a +21 -0
  199. data/test/fixtures/osinfo-version-0/windows2012-6432c +22 -0
  200. data/test/fixtures/osinfo-version-0/windows2012-64l +22 -0
  201. data/test/fixtures/osinfo-version-0/windows2012r2-6432f +22 -0
  202. data/test/fixtures/osinfo-version-0/windows2012r2-64d +22 -0
  203. data/test/fixtures/osinfo-version-0/windows7-64m +22 -0
  204. data/test/fixtures/osinfo-version-0/windows8-64aulcdfm +27 -0
  205. data/test/fixtures/osinfo-version-0/windows81-64a +21 -0
  206. data/test/fixtures/osinfo-version-0/windowsvista-64u +22 -0
  207. data/test/fixtures/osinfo-version-1/arista4-32a +20 -0
  208. data/test/fixtures/osinfo-version-1/centos4-32u +21 -0
  209. data/test/fixtures/osinfo-version-1/centos4-64l +21 -0
  210. data/test/fixtures/osinfo-version-1/centos5-32c +21 -0
  211. data/test/fixtures/osinfo-version-1/centos5-64d +21 -0
  212. data/test/fixtures/osinfo-version-1/centos6-32f +21 -0
  213. data/test/fixtures/osinfo-version-1/centos6-64m +21 -0
  214. data/test/fixtures/osinfo-version-1/centos7-64aulcdfm +26 -0
  215. data/test/fixtures/osinfo-version-1/ciscoexr7-64u +22 -0
  216. data/test/fixtures/osinfo-version-1/cisconxos5-64a +23 -0
  217. data/test/fixtures/osinfo-version-1/cumulus25-64l +21 -0
  218. data/test/fixtures/osinfo-version-1/debian6-32c +21 -0
  219. data/test/fixtures/osinfo-version-1/debian6-64d +21 -0
  220. data/test/fixtures/osinfo-version-1/debian7-32f +21 -0
  221. data/test/fixtures/osinfo-version-1/debian7-64m +21 -0
  222. data/test/fixtures/osinfo-version-1/debian8-32aulcdfm +26 -0
  223. data/test/fixtures/osinfo-version-1/debian8-64a +20 -0
  224. data/test/fixtures/osinfo-version-1/debian9-32u +21 -0
  225. data/test/fixtures/osinfo-version-1/debian9-64l +21 -0
  226. data/test/fixtures/osinfo-version-1/fedora14-32l +21 -0
  227. data/test/fixtures/osinfo-version-1/fedora19-32c +21 -0
  228. data/test/fixtures/osinfo-version-1/fedora19-64d +21 -0
  229. data/test/fixtures/osinfo-version-1/fedora20-32f +21 -0
  230. data/test/fixtures/osinfo-version-1/fedora20-64m +21 -0
  231. data/test/fixtures/osinfo-version-1/fedora21-32aulcdfm +26 -0
  232. data/test/fixtures/osinfo-version-1/fedora21-64a +20 -0
  233. data/test/fixtures/osinfo-version-1/fedora22-32u +21 -0
  234. data/test/fixtures/osinfo-version-1/fedora22-64l +21 -0
  235. data/test/fixtures/osinfo-version-1/fedora23-32c +21 -0
  236. data/test/fixtures/osinfo-version-1/fedora23-64d +21 -0
  237. data/test/fixtures/osinfo-version-1/opensuse11-32f +21 -0
  238. data/test/fixtures/osinfo-version-1/opensuse11-64m +21 -0
  239. data/test/fixtures/osinfo-version-1/oracle5-32c +21 -0
  240. data/test/fixtures/osinfo-version-1/oracle5-64d +21 -0
  241. data/test/fixtures/osinfo-version-1/oracle6-32f +21 -0
  242. data/test/fixtures/osinfo-version-1/oracle6-64m +21 -0
  243. data/test/fixtures/osinfo-version-1/oracle7-64aulcdfm +26 -0
  244. data/test/fixtures/osinfo-version-1/osx1010-64u +21 -0
  245. data/test/fixtures/osinfo-version-1/osx1011-64l +21 -0
  246. data/test/fixtures/osinfo-version-1/osx109-64a +20 -0
  247. data/test/fixtures/osinfo-version-1/redhat4-32c +21 -0
  248. data/test/fixtures/osinfo-version-1/redhat4-64d +21 -0
  249. data/test/fixtures/osinfo-version-1/redhat5-32f +21 -0
  250. data/test/fixtures/osinfo-version-1/redhat5-64m +21 -0
  251. data/test/fixtures/osinfo-version-1/redhat6-32aulcdfm +26 -0
  252. data/test/fixtures/osinfo-version-1/redhat6-64a +20 -0
  253. data/test/fixtures/osinfo-version-1/redhat7-64u +21 -0
  254. data/test/fixtures/osinfo-version-1/scientific5-32aulcdfm +26 -0
  255. data/test/fixtures/osinfo-version-1/scientific5-64a +20 -0
  256. data/test/fixtures/osinfo-version-1/scientific6-32u +21 -0
  257. data/test/fixtures/osinfo-version-1/scientific6-64l +21 -0
  258. data/test/fixtures/osinfo-version-1/scientific7-64c +21 -0
  259. data/test/fixtures/osinfo-version-1/sles10-32d +21 -0
  260. data/test/fixtures/osinfo-version-1/sles10-64f +21 -0
  261. data/test/fixtures/osinfo-version-1/sles11-32m +21 -0
  262. data/test/fixtures/osinfo-version-1/sles11-64aulcdfm +26 -0
  263. data/test/fixtures/osinfo-version-1/sles12-64a +20 -0
  264. data/test/fixtures/osinfo-version-1/solaris10-32u +21 -0
  265. data/test/fixtures/osinfo-version-1/solaris10-64l +21 -0
  266. data/test/fixtures/osinfo-version-1/solaris11-32c +21 -0
  267. data/test/fixtures/osinfo-version-1/solaris11-64d +21 -0
  268. data/test/fixtures/osinfo-version-1/solaris112-32f +21 -0
  269. data/test/fixtures/osinfo-version-1/solaris112-64m +21 -0
  270. data/test/fixtures/osinfo-version-1/ubuntu1004-32aulcdfm +26 -0
  271. data/test/fixtures/osinfo-version-1/ubuntu1004-64a +20 -0
  272. data/test/fixtures/osinfo-version-1/ubuntu1204-32u +21 -0
  273. data/test/fixtures/osinfo-version-1/ubuntu1204-64l +21 -0
  274. data/test/fixtures/osinfo-version-1/ubuntu1404-32c +21 -0
  275. data/test/fixtures/osinfo-version-1/ubuntu1404-64d +21 -0
  276. data/test/fixtures/osinfo-version-1/ubuntu1504-32f +21 -0
  277. data/test/fixtures/osinfo-version-1/ubuntu1504-64m +21 -0
  278. data/test/fixtures/osinfo-version-1/ubuntu1510-32aulcdfm +26 -0
  279. data/test/fixtures/osinfo-version-1/ubuntu1510-64a +20 -0
  280. data/test/fixtures/osinfo-version-1/windows10ent-32l +22 -0
  281. data/test/fixtures/osinfo-version-1/windows10ent-64c +22 -0
  282. data/test/fixtures/osinfo-version-1/windows10pro-64d +22 -0
  283. data/test/fixtures/osinfo-version-1/windows2003-6432l +22 -0
  284. data/test/fixtures/osinfo-version-1/windows2003-64u +22 -0
  285. data/test/fixtures/osinfo-version-1/windows2003r2-32c +22 -0
  286. data/test/fixtures/osinfo-version-1/windows2003r2-6432f +22 -0
  287. data/test/fixtures/osinfo-version-1/windows2003r2-64d +22 -0
  288. data/test/fixtures/osinfo-version-1/windows2008-6432aulcdfm +27 -0
  289. data/test/fixtures/osinfo-version-1/windows2008-64m +22 -0
  290. data/test/fixtures/osinfo-version-1/windows2008r2-6432u +22 -0
  291. data/test/fixtures/osinfo-version-1/windows2008r2-64a +21 -0
  292. data/test/fixtures/osinfo-version-1/windows2012-6432c +22 -0
  293. data/test/fixtures/osinfo-version-1/windows2012-64l +22 -0
  294. data/test/fixtures/osinfo-version-1/windows2012r2-6432f +22 -0
  295. data/test/fixtures/osinfo-version-1/windows2012r2-64d +22 -0
  296. data/test/fixtures/osinfo-version-1/windows7-64m +22 -0
  297. data/test/fixtures/osinfo-version-1/windows8-64aulcdfm +27 -0
  298. data/test/fixtures/osinfo-version-1/windows81-64a +21 -0
  299. data/test/fixtures/osinfo-version-1/windowsvista-64u +22 -0
  300. data/test/fixtures/pe_dir/centos6-64mdc +23 -0
  301. data/test/fixtures/pe_upgrade_dir/centos6-64mdc +23 -0
  302. data/test/fixtures/pe_upgrade_ver/centos6-64mdc +23 -0
  303. data/test/fixtures/pe_ver/centos6-64mdc +23 -0
  304. data/test/test_cli.rb +20 -0
  305. data/test/test_generator.rb +27 -0
  306. data/test/test_stdout.rb +24 -0
  307. data/test/test_util.rb +26 -0
  308. data/test/util/generator_helpers.rb +150 -0
  309. metadata +294 -3
  310. data/lib/beaker-hostgenerator/error.rb +0 -6
@@ -1,6 +1,10 @@
1
- require 'beaker-hostgenerator'
1
+ require 'find'
2
+
2
3
  require 'spec_helper'
3
4
 
5
+ require 'beaker-hostgenerator'
6
+ require 'util/generator_helpers'
7
+
4
8
  module BeakerHostGenerator
5
9
  describe Generator do
6
10
  let(:options) {
@@ -57,7 +61,7 @@ module BeakerHostGenerator
57
61
 
58
62
  it 'Raises InvalidNodeSpecError for invalid tokens.' do
59
63
  expect{ generator.__parse_node_info_token("64compile_master") }.to \
60
- raise_error(BeakerHostGenerator::Errors::InvalidNodeSpecError)
64
+ raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
61
65
  end
62
66
 
63
67
  it 'Supports no roles in the spec.' do
@@ -81,7 +85,7 @@ module BeakerHostGenerator
81
85
  context 'When using arbitrary roles'do
82
86
  it 'Fails without a role-type delimiter (a period)' do
83
87
  expect{ generator.__parse_node_info_token("64compile_master,ca,blah") }.to \
84
- raise_error(BeakerHostGenerator::Errors::InvalidNodeSpecError)
88
+ raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
85
89
  end
86
90
  it 'It supports no static roles.' do
87
91
  node_info = generator.__parse_node_info_token("64compile_master,ca,blah.")
@@ -94,5 +98,33 @@ module BeakerHostGenerator
94
98
  end
95
99
  end
96
100
 
101
+ shared_examples "fixtures" do |fixture_hash|
102
+ arguments = fixture_hash["arguments_string"]
103
+ it "beaker-hostgenerator #{arguments}" do
104
+ arguments = arguments.split
105
+ STDERR.reopen("stderr.txt", "w")
106
+ fixture_hash['environment_variables'].each do |key, value|
107
+ ENV[key] = value
108
+ end
109
+ cli = BeakerHostGenerator::CLI.new(arguments)
110
+ test_hash = YAML.load(cli.execute)
111
+ fixture_hash['environment_variables'].each_key do |key|
112
+ ENV[key] = nil
113
+ end
114
+ expect(test_hash).to eq(fixture_hash["expected_hash"])
115
+ end
116
+ end
117
+
118
+ context "Fixtures" do
119
+ Find.find 'test/fixtures' do |f|
120
+ context "#{f}" do
121
+ if File.directory?(f)
122
+ next
123
+ end
124
+ include_examples "fixtures", YAML.load_file(f)
125
+ end
126
+ end
127
+ end
128
+
97
129
  end
98
130
  end
@@ -0,0 +1,20 @@
1
+ ---
2
+ arguments_string: arista4-32a
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ arista4-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: eos-4-i386
13
+ template: arista-4-i386
14
+ roles:
15
+ - agent
16
+ CONFIG:
17
+ nfs_server: none
18
+ consoleport: 443
19
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
20
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: centos4-32u
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ centos4-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: el-4-i386
13
+ template: centos-4-i386
14
+ roles:
15
+ - agent
16
+ - ca
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: centos4-64l
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ centos4-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: el-4-x86_64
13
+ template: centos-4-x86_64
14
+ roles:
15
+ - agent
16
+ - classifier
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: centos5-32c
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ centos5-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: el-5-i386
13
+ template: centos-5-i386
14
+ roles:
15
+ - agent
16
+ - dashboard
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: centos5-64d
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ centos5-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: el-5-x86_64
13
+ template: centos-5-x86_64
14
+ roles:
15
+ - agent
16
+ - database
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: centos6-32f
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ centos6-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: el-6-i386
13
+ template: centos-6-i386
14
+ roles:
15
+ - agent
16
+ - frictionless
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: centos6-64m
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
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,26 @@
1
+ ---
2
+ arguments_string: centos7-64aulcdfm
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ centos7-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: centos-7-x86_64
14
+ roles:
15
+ - agent
16
+ - ca
17
+ - classifier
18
+ - dashboard
19
+ - database
20
+ - frictionless
21
+ - master
22
+ CONFIG:
23
+ nfs_server: none
24
+ consoleport: 443
25
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
26
+ expected_exception:
@@ -0,0 +1,22 @@
1
+ ---
2
+ arguments_string: ciscoexr7-64u
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ ciscoexr7-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: cisco-7-x86_64
13
+ template: cisco-exr-9k-x86_64
14
+ vrf: management
15
+ roles:
16
+ - agent
17
+ - ca
18
+ CONFIG:
19
+ nfs_server: none
20
+ consoleport: 443
21
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
22
+ expected_exception:
@@ -0,0 +1,23 @@
1
+ ---
2
+ arguments_string: cisconxos5-64a
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ cisconxos5-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: cisco-5-x86_64
13
+ template: cisco-nxos-9k-x86_64
14
+ vrf: management
15
+ ssh:
16
+ user: beaker
17
+ roles:
18
+ - agent
19
+ CONFIG:
20
+ nfs_server: none
21
+ consoleport: 443
22
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
23
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: cumulus25-64l
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ cumulus25-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: cumulus-2.5-x86_64
13
+ template: cumulus-vx-25-x86_64
14
+ roles:
15
+ - agent
16
+ - classifier
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: debian6-32c
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian6-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-6-i386
13
+ template: debian-6-i386
14
+ roles:
15
+ - agent
16
+ - dashboard
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: debian6-64d
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian6-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-6-amd64
13
+ template: debian-6-x86_64
14
+ roles:
15
+ - agent
16
+ - database
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: debian7-32f
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian7-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-7-i386
13
+ template: debian-7-i386
14
+ roles:
15
+ - agent
16
+ - frictionless
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: debian7-64m
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian7-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-7-amd64
13
+ template: debian-7-x86_64
14
+ roles:
15
+ - agent
16
+ - master
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,26 @@
1
+ ---
2
+ arguments_string: debian8-32aulcdfm
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian8-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-8-i386
13
+ template: debian-8-i386
14
+ roles:
15
+ - agent
16
+ - ca
17
+ - classifier
18
+ - dashboard
19
+ - database
20
+ - frictionless
21
+ - master
22
+ CONFIG:
23
+ nfs_server: none
24
+ consoleport: 443
25
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
26
+ expected_exception:
@@ -0,0 +1,20 @@
1
+ ---
2
+ arguments_string: debian8-64a
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian8-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-8-amd64
13
+ template: debian-8-x86_64
14
+ roles:
15
+ - agent
16
+ CONFIG:
17
+ nfs_server: none
18
+ consoleport: 443
19
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
20
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: debian9-32u
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian9-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-9-i386
13
+ template: debian-9-i386
14
+ roles:
15
+ - agent
16
+ - ca
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: debian9-64l
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ debian9-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: debian-9-amd64
13
+ template: debian-9-x86_64
14
+ roles:
15
+ - agent
16
+ - classifier
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: fedora14-32l
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora14-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-14-i386
13
+ template: fedora-14-i386
14
+ roles:
15
+ - agent
16
+ - classifier
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: fedora19-32c
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora19-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-19-i386
13
+ template: fedora-19-i386
14
+ roles:
15
+ - agent
16
+ - dashboard
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: fedora19-64d
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora19-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-19-x86_64
13
+ template: fedora-19-x86_64
14
+ roles:
15
+ - agent
16
+ - database
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: fedora20-32f
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora20-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-20-i386
13
+ template: fedora-20-i386
14
+ roles:
15
+ - agent
16
+ - frictionless
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: fedora20-64m
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora20-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-20-x86_64
13
+ template: fedora-20-x86_64
14
+ roles:
15
+ - agent
16
+ - master
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception:
@@ -0,0 +1,26 @@
1
+ ---
2
+ arguments_string: fedora21-32aulcdfm
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora21-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-21-i386
13
+ template: fedora-21-i386
14
+ roles:
15
+ - agent
16
+ - ca
17
+ - classifier
18
+ - dashboard
19
+ - database
20
+ - frictionless
21
+ - master
22
+ CONFIG:
23
+ nfs_server: none
24
+ consoleport: 443
25
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
26
+ expected_exception:
@@ -0,0 +1,20 @@
1
+ ---
2
+ arguments_string: fedora21-64a
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora21-64-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-21-x86_64
13
+ template: fedora-21-x86_64
14
+ roles:
15
+ - agent
16
+ CONFIG:
17
+ nfs_server: none
18
+ consoleport: 443
19
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
20
+ expected_exception:
@@ -0,0 +1,21 @@
1
+ ---
2
+ arguments_string: fedora22-32u
3
+ environment_variables: {}
4
+ expected_hash:
5
+ HOSTS:
6
+ fedora22-32-1:
7
+ pe_dir:
8
+ pe_ver:
9
+ pe_upgrade_dir:
10
+ pe_upgrade_ver:
11
+ hypervisor: vmpooler
12
+ platform: fedora-22-i386
13
+ template: fedora-22-i386
14
+ roles:
15
+ - agent
16
+ - ca
17
+ CONFIG:
18
+ nfs_server: none
19
+ consoleport: 443
20
+ pooling_api: http://vmpooler.delivery.puppetlabs.net/
21
+ expected_exception: