rspec-puppet-facts 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 (333) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -0
  3. data/CHANGELOG.md +6 -0
  4. data/README.md +2 -2
  5. data/facts/1.6/archlinux-3-i386.facts +1 -1
  6. data/facts/1.6/archlinux-3-x86_64.facts +1 -1
  7. data/facts/1.6/centos-5-i386.facts +1 -1
  8. data/facts/1.6/centos-5-x86_64.facts +1 -1
  9. data/facts/1.6/centos-6-i386.facts +1 -1
  10. data/facts/1.6/centos-6-x86_64.facts +1 -1
  11. data/facts/1.6/centos-7-i386.facts +1 -1
  12. data/facts/1.6/centos-7-x86_64.facts +1 -1
  13. data/facts/1.6/debian-6-i386.facts +1 -1
  14. data/facts/1.6/debian-6-x86_64.facts +1 -1
  15. data/facts/1.6/debian-7-i386.facts +1 -1
  16. data/facts/1.6/debian-7-x86_64.facts +1 -1
  17. data/facts/1.6/debian-8-i386.facts +1 -1
  18. data/facts/1.6/debian-8-x86_64.facts +1 -1
  19. data/facts/1.6/fedora-19-i386.facts +1 -1
  20. data/facts/1.6/fedora-19-x86_64.facts +1 -1
  21. data/facts/1.6/opensuse-12-i386.facts +1 -1
  22. data/facts/1.6/opensuse-12-x86_64.facts +1 -1
  23. data/facts/1.6/opensuse-13-i386.facts +1 -1
  24. data/facts/1.6/opensuse-13-x86_64.facts +1 -1
  25. data/facts/1.6/oraclelinux-5-i386.facts +1 -1
  26. data/facts/1.6/oraclelinux-5-x86_64.facts +1 -1
  27. data/facts/1.6/oraclelinux-6-i386.facts +1 -1
  28. data/facts/1.6/oraclelinux-6-x86_64.facts +1 -1
  29. data/facts/1.6/oraclelinux-7-i386.facts +1 -1
  30. data/facts/1.6/oraclelinux-7-x86_64.facts +1 -1
  31. data/facts/1.6/redhat-5-i386.facts +1 -1
  32. data/facts/1.6/redhat-5-x86_64.facts +1 -1
  33. data/facts/1.6/redhat-6-i386.facts +1 -1
  34. data/facts/1.6/redhat-6-x86_64.facts +1 -1
  35. data/facts/1.6/redhat-7-i386.facts +1 -1
  36. data/facts/1.6/redhat-7-x86_64.facts +1 -1
  37. data/facts/1.6/scientific-5-i386.facts +1 -1
  38. data/facts/1.6/scientific-5-x86_64.facts +1 -1
  39. data/facts/1.6/scientific-6-i386.facts +1 -1
  40. data/facts/1.6/scientific-6-x86_64.facts +1 -1
  41. data/facts/1.6/scientific-7-i386.facts +1 -1
  42. data/facts/1.6/scientific-7-x86_64.facts +1 -1
  43. data/facts/1.6/sles-11-i386.facts +1 -1
  44. data/facts/1.6/sles-11-x86_64.facts +1 -1
  45. data/facts/1.6/ubuntu-10.04-i386.facts +1 -1
  46. data/facts/1.6/ubuntu-10.04-x86_64.facts +1 -1
  47. data/facts/1.6/ubuntu-12.04-i386.facts +1 -1
  48. data/facts/1.6/ubuntu-12.04-x86_64.facts +1 -1
  49. data/facts/1.6/ubuntu-14.04-i386.facts +1 -1
  50. data/facts/1.6/ubuntu-14.04-x86_64.facts +1 -1
  51. data/facts/1.7/archlinux-3-i386.facts +1 -1
  52. data/facts/1.7/archlinux-3-x86_64.facts +1 -1
  53. data/facts/1.7/centos-5-i386.facts +1 -1
  54. data/facts/1.7/centos-5-x86_64.facts +1 -1
  55. data/facts/1.7/centos-6-i386.facts +1 -1
  56. data/facts/1.7/centos-6-x86_64.facts +1 -1
  57. data/facts/1.7/centos-7-i386.facts +1 -1
  58. data/facts/1.7/centos-7-x86_64.facts +1 -1
  59. data/facts/1.7/debian-6-i386.facts +1 -1
  60. data/facts/1.7/debian-6-x86_64.facts +1 -1
  61. data/facts/1.7/debian-7-i386.facts +1 -1
  62. data/facts/1.7/debian-7-x86_64.facts +1 -1
  63. data/facts/1.7/debian-8-i386.facts +1 -1
  64. data/facts/1.7/debian-8-x86_64.facts +1 -1
  65. data/facts/1.7/fedora-19-i386.facts +1 -1
  66. data/facts/1.7/fedora-19-x86_64.facts +1 -1
  67. data/facts/1.7/opensuse-12-i386.facts +1 -1
  68. data/facts/1.7/opensuse-12-x86_64.facts +1 -1
  69. data/facts/1.7/opensuse-13-i386.facts +1 -1
  70. data/facts/1.7/opensuse-13-x86_64.facts +1 -1
  71. data/facts/1.7/oraclelinux-5-i386.facts +1 -1
  72. data/facts/1.7/oraclelinux-5-x86_64.facts +1 -1
  73. data/facts/1.7/oraclelinux-6-i386.facts +1 -1
  74. data/facts/1.7/oraclelinux-6-x86_64.facts +1 -1
  75. data/facts/1.7/oraclelinux-7-i386.facts +1 -1
  76. data/facts/1.7/oraclelinux-7-x86_64.facts +1 -1
  77. data/facts/1.7/redhat-5-i386.facts +1 -1
  78. data/facts/1.7/redhat-5-x86_64.facts +1 -1
  79. data/facts/1.7/redhat-6-i386.facts +1 -1
  80. data/facts/1.7/redhat-6-x86_64.facts +1 -1
  81. data/facts/1.7/redhat-7-i386.facts +1 -1
  82. data/facts/1.7/redhat-7-x86_64.facts +1 -1
  83. data/facts/1.7/scientific-5-i386.facts +1 -1
  84. data/facts/1.7/scientific-5-x86_64.facts +1 -1
  85. data/facts/1.7/scientific-6-i386.facts +1 -1
  86. data/facts/1.7/scientific-6-x86_64.facts +1 -1
  87. data/facts/1.7/scientific-7-i386.facts +1 -1
  88. data/facts/1.7/scientific-7-x86_64.facts +1 -1
  89. data/facts/1.7/sles-11-i386.facts +1 -1
  90. data/facts/1.7/sles-11-x86_64.facts +1 -1
  91. data/facts/1.7/ubuntu-10.04-i386.facts +1 -1
  92. data/facts/1.7/ubuntu-10.04-x86_64.facts +1 -1
  93. data/facts/1.7/ubuntu-12.04-i386.facts +1 -1
  94. data/facts/1.7/ubuntu-12.04-x86_64.facts +1 -1
  95. data/facts/1.7/ubuntu-14.04-i386.facts +1 -1
  96. data/facts/1.7/ubuntu-14.04-x86_64.facts +1 -1
  97. data/facts/2.0/archlinux-3-i386.facts +15 -15
  98. data/facts/2.0/archlinux-3-x86_64.facts +15 -15
  99. data/facts/2.0/centos-5-i386.facts +9 -9
  100. data/facts/2.0/centos-5-x86_64.facts +9 -9
  101. data/facts/2.0/centos-6-i386.facts +60 -60
  102. data/facts/2.0/centos-6-x86_64.facts +60 -60
  103. data/facts/2.0/centos-7-i386.facts +9 -9
  104. data/facts/2.0/centos-7-x86_64.facts +9 -9
  105. data/facts/2.0/debian-6-i386.facts +38 -38
  106. data/facts/2.0/debian-6-x86_64.facts +38 -38
  107. data/facts/2.0/debian-7-i386.facts +6 -6
  108. data/facts/2.0/debian-7-x86_64.facts +6 -6
  109. data/facts/2.0/debian-8-i386.facts +7 -7
  110. data/facts/2.0/debian-8-x86_64.facts +7 -7
  111. data/facts/2.0/fedora-19-i386.facts +7 -7
  112. data/facts/2.0/fedora-19-x86_64.facts +7 -7
  113. data/facts/2.0/opensuse-12-i386.facts +5 -5
  114. data/facts/2.0/opensuse-12-x86_64.facts +5 -5
  115. data/facts/2.0/opensuse-13-i386.facts +5 -5
  116. data/facts/2.0/opensuse-13-x86_64.facts +5 -5
  117. data/facts/2.0/oraclelinux-5-i386.facts +9 -9
  118. data/facts/2.0/oraclelinux-5-x86_64.facts +9 -9
  119. data/facts/2.0/oraclelinux-6-i386.facts +60 -60
  120. data/facts/2.0/oraclelinux-6-x86_64.facts +60 -60
  121. data/facts/2.0/oraclelinux-7-i386.facts +9 -9
  122. data/facts/2.0/oraclelinux-7-x86_64.facts +9 -9
  123. data/facts/2.0/redhat-5-i386.facts +9 -9
  124. data/facts/2.0/redhat-5-x86_64.facts +9 -9
  125. data/facts/2.0/redhat-6-i386.facts +60 -60
  126. data/facts/2.0/redhat-6-x86_64.facts +60 -60
  127. data/facts/2.0/redhat-7-i386.facts +9 -9
  128. data/facts/2.0/redhat-7-x86_64.facts +9 -9
  129. data/facts/2.0/scientific-5-i386.facts +9 -9
  130. data/facts/2.0/scientific-5-x86_64.facts +9 -9
  131. data/facts/2.0/scientific-6-i386.facts +60 -60
  132. data/facts/2.0/scientific-6-x86_64.facts +60 -60
  133. data/facts/2.0/scientific-7-i386.facts +9 -9
  134. data/facts/2.0/scientific-7-x86_64.facts +9 -9
  135. data/facts/2.0/sles-11-i386.facts +27 -27
  136. data/facts/2.0/sles-11-x86_64.facts +27 -27
  137. data/facts/2.0/ubuntu-10.04-i386.facts +73 -73
  138. data/facts/2.0/ubuntu-10.04-x86_64.facts +73 -73
  139. data/facts/2.0/ubuntu-12.04-i386.facts +71 -71
  140. data/facts/2.0/ubuntu-12.04-x86_64.facts +71 -71
  141. data/facts/2.0/ubuntu-14.04-i386.facts +7 -7
  142. data/facts/2.0/ubuntu-14.04-x86_64.facts +7 -7
  143. data/facts/2.1/archlinux-3-i386.facts +16 -16
  144. data/facts/2.1/archlinux-3-x86_64.facts +16 -16
  145. data/facts/2.1/centos-5-i386.facts +9 -9
  146. data/facts/2.1/centos-5-x86_64.facts +9 -9
  147. data/facts/2.1/centos-6-i386.facts +69 -69
  148. data/facts/2.1/centos-6-x86_64.facts +69 -69
  149. data/facts/2.1/centos-7-i386.facts +9 -9
  150. data/facts/2.1/centos-7-x86_64.facts +9 -9
  151. data/facts/2.1/debian-6-i386.facts +15 -15
  152. data/facts/2.1/debian-6-x86_64.facts +15 -15
  153. data/facts/2.1/debian-7-i386.facts +7 -7
  154. data/facts/2.1/debian-7-x86_64.facts +7 -7
  155. data/facts/2.1/debian-8-i386.facts +7 -7
  156. data/facts/2.1/debian-8-x86_64.facts +7 -7
  157. data/facts/2.1/fedora-19-i386.facts +7 -7
  158. data/facts/2.1/fedora-19-x86_64.facts +7 -7
  159. data/facts/2.1/opensuse-12-i386.facts +5 -5
  160. data/facts/2.1/opensuse-12-x86_64.facts +5 -5
  161. data/facts/2.1/opensuse-13-i386.facts +5 -5
  162. data/facts/2.1/opensuse-13-x86_64.facts +5 -5
  163. data/facts/2.1/oraclelinux-5-i386.facts +9 -9
  164. data/facts/2.1/oraclelinux-5-x86_64.facts +9 -9
  165. data/facts/2.1/oraclelinux-6-i386.facts +69 -69
  166. data/facts/2.1/oraclelinux-6-x86_64.facts +69 -69
  167. data/facts/2.1/oraclelinux-7-i386.facts +9 -9
  168. data/facts/2.1/oraclelinux-7-x86_64.facts +9 -9
  169. data/facts/2.1/redhat-5-i386.facts +9 -9
  170. data/facts/2.1/redhat-5-x86_64.facts +9 -9
  171. data/facts/2.1/redhat-6-i386.facts +69 -69
  172. data/facts/2.1/redhat-6-x86_64.facts +69 -69
  173. data/facts/2.1/redhat-7-i386.facts +9 -9
  174. data/facts/2.1/redhat-7-x86_64.facts +9 -9
  175. data/facts/2.1/scientific-5-i386.facts +9 -9
  176. data/facts/2.1/scientific-5-x86_64.facts +9 -9
  177. data/facts/2.1/scientific-6-i386.facts +69 -69
  178. data/facts/2.1/scientific-6-x86_64.facts +69 -69
  179. data/facts/2.1/scientific-7-i386.facts +9 -9
  180. data/facts/2.1/scientific-7-x86_64.facts +9 -9
  181. data/facts/2.1/sles-11-i386.facts +11 -11
  182. data/facts/2.1/sles-11-x86_64.facts +11 -11
  183. data/facts/2.1/ubuntu-10.04-i386.facts +76 -76
  184. data/facts/2.1/ubuntu-10.04-x86_64.facts +76 -76
  185. data/facts/2.1/ubuntu-12.04-i386.facts +77 -77
  186. data/facts/2.1/ubuntu-12.04-x86_64.facts +77 -77
  187. data/facts/2.1/ubuntu-14.04-i386.facts +7 -7
  188. data/facts/2.1/ubuntu-14.04-x86_64.facts +7 -7
  189. data/facts/2.2/archlinux-3-i386.facts +23 -23
  190. data/facts/2.2/archlinux-3-x86_64.facts +23 -23
  191. data/facts/2.2/centos-5-i386.facts +12 -12
  192. data/facts/2.2/centos-5-x86_64.facts +12 -12
  193. data/facts/2.2/centos-6-i386.facts +91 -91
  194. data/facts/2.2/centos-6-x86_64.facts +91 -91
  195. data/facts/2.2/centos-7-i386.facts +12 -12
  196. data/facts/2.2/centos-7-x86_64.facts +12 -12
  197. data/facts/2.2/debian-6-i386.facts +28 -28
  198. data/facts/2.2/debian-6-x86_64.facts +28 -28
  199. data/facts/2.2/debian-7-i386.facts +10 -10
  200. data/facts/2.2/debian-7-x86_64.facts +10 -10
  201. data/facts/2.2/debian-8-i386.facts +10 -10
  202. data/facts/2.2/debian-8-x86_64.facts +10 -10
  203. data/facts/2.2/fedora-19-i386.facts +8 -8
  204. data/facts/2.2/fedora-19-x86_64.facts +8 -8
  205. data/facts/2.2/opensuse-12-i386.facts +7 -7
  206. data/facts/2.2/opensuse-12-x86_64.facts +7 -7
  207. data/facts/2.2/opensuse-13-i386.facts +7 -7
  208. data/facts/2.2/opensuse-13-x86_64.facts +7 -7
  209. data/facts/2.2/oraclelinux-5-i386.facts +12 -12
  210. data/facts/2.2/oraclelinux-5-x86_64.facts +12 -12
  211. data/facts/2.2/oraclelinux-6-i386.facts +91 -91
  212. data/facts/2.2/oraclelinux-6-x86_64.facts +91 -91
  213. data/facts/2.2/oraclelinux-7-i386.facts +12 -12
  214. data/facts/2.2/oraclelinux-7-x86_64.facts +12 -12
  215. data/facts/2.2/redhat-5-i386.facts +12 -12
  216. data/facts/2.2/redhat-5-x86_64.facts +12 -12
  217. data/facts/2.2/redhat-6-i386.facts +91 -91
  218. data/facts/2.2/redhat-6-x86_64.facts +91 -91
  219. data/facts/2.2/redhat-7-i386.facts +12 -12
  220. data/facts/2.2/redhat-7-x86_64.facts +12 -12
  221. data/facts/2.2/scientific-5-i386.facts +12 -12
  222. data/facts/2.2/scientific-5-x86_64.facts +12 -12
  223. data/facts/2.2/scientific-6-i386.facts +91 -91
  224. data/facts/2.2/scientific-6-x86_64.facts +91 -91
  225. data/facts/2.2/scientific-7-i386.facts +12 -12
  226. data/facts/2.2/scientific-7-x86_64.facts +12 -12
  227. data/facts/2.2/sles-11-i386.facts +24 -24
  228. data/facts/2.2/sles-11-x86_64.facts +24 -24
  229. data/facts/2.2/ubuntu-10.04-i386.facts +92 -92
  230. data/facts/2.2/ubuntu-10.04-x86_64.facts +92 -92
  231. data/facts/2.2/ubuntu-12.04-i386.facts +105 -105
  232. data/facts/2.2/ubuntu-12.04-x86_64.facts +105 -105
  233. data/facts/2.2/ubuntu-14.04-i386.facts +10 -10
  234. data/facts/2.2/ubuntu-14.04-x86_64.facts +10 -10
  235. data/facts/2.3/archlinux-3-i386.facts +21 -21
  236. data/facts/2.3/archlinux-3-x86_64.facts +21 -21
  237. data/facts/2.3/centos-5-i386.facts +12 -12
  238. data/facts/2.3/centos-5-x86_64.facts +12 -12
  239. data/facts/2.3/centos-6-i386.facts +83 -83
  240. data/facts/2.3/centos-6-x86_64.facts +83 -83
  241. data/facts/2.3/centos-7-i386.facts +12 -12
  242. data/facts/2.3/centos-7-x86_64.facts +12 -12
  243. data/facts/2.3/debian-6-i386.facts +20 -20
  244. data/facts/2.3/debian-6-x86_64.facts +20 -20
  245. data/facts/2.3/debian-7-i386.facts +8 -8
  246. data/facts/2.3/debian-7-x86_64.facts +8 -8
  247. data/facts/2.3/debian-8-i386.facts +10 -10
  248. data/facts/2.3/debian-8-x86_64.facts +10 -10
  249. data/facts/2.3/fedora-19-i386.facts +8 -8
  250. data/facts/2.3/fedora-19-x86_64.facts +8 -8
  251. data/facts/2.3/opensuse-12-i386.facts +7 -7
  252. data/facts/2.3/opensuse-12-x86_64.facts +7 -7
  253. data/facts/2.3/opensuse-13-i386.facts +7 -7
  254. data/facts/2.3/opensuse-13-x86_64.facts +7 -7
  255. data/facts/2.3/oraclelinux-5-i386.facts +12 -12
  256. data/facts/2.3/oraclelinux-5-x86_64.facts +12 -12
  257. data/facts/2.3/oraclelinux-6-i386.facts +83 -83
  258. data/facts/2.3/oraclelinux-6-x86_64.facts +83 -83
  259. data/facts/2.3/oraclelinux-7-i386.facts +12 -12
  260. data/facts/2.3/oraclelinux-7-x86_64.facts +12 -12
  261. data/facts/2.3/redhat-5-i386.facts +12 -12
  262. data/facts/2.3/redhat-5-x86_64.facts +12 -12
  263. data/facts/2.3/redhat-6-i386.facts +83 -83
  264. data/facts/2.3/redhat-6-x86_64.facts +83 -83
  265. data/facts/2.3/redhat-7-i386.facts +12 -12
  266. data/facts/2.3/redhat-7-x86_64.facts +12 -12
  267. data/facts/2.3/scientific-5-i386.facts +12 -12
  268. data/facts/2.3/scientific-5-x86_64.facts +12 -12
  269. data/facts/2.3/scientific-6-i386.facts +83 -83
  270. data/facts/2.3/scientific-6-x86_64.facts +83 -83
  271. data/facts/2.3/scientific-7-i386.facts +12 -12
  272. data/facts/2.3/scientific-7-x86_64.facts +12 -12
  273. data/facts/2.3/sles-11-i386.facts +16 -16
  274. data/facts/2.3/sles-11-x86_64.facts +16 -16
  275. data/facts/2.3/ubuntu-10.04-i386.facts +104 -104
  276. data/facts/2.3/ubuntu-10.04-x86_64.facts +104 -104
  277. data/facts/2.3/ubuntu-12.04-i386.facts +107 -107
  278. data/facts/2.3/ubuntu-12.04-x86_64.facts +107 -107
  279. data/facts/2.3/ubuntu-14.04-i386.facts +10 -10
  280. data/facts/2.3/ubuntu-14.04-x86_64.facts +10 -10
  281. data/facts/2.4/archlinux-3-i386.facts +127 -0
  282. data/facts/2.4/archlinux-3-x86_64.facts +127 -0
  283. data/facts/2.4/centos-5-i386.facts +127 -0
  284. data/facts/2.4/centos-5-x86_64.facts +127 -0
  285. data/facts/2.4/centos-6-i386.facts +112 -0
  286. data/facts/2.4/centos-6-x86_64.facts +112 -0
  287. data/facts/2.4/centos-7-i386.facts +116 -0
  288. data/facts/2.4/centos-7-x86_64.facts +116 -0
  289. data/facts/2.4/debian-6-i386.facts +135 -0
  290. data/facts/2.4/debian-6-x86_64.facts +135 -0
  291. data/facts/2.4/debian-7-i386.facts +131 -0
  292. data/facts/2.4/debian-7-x86_64.facts +131 -0
  293. data/facts/2.4/debian-8-i386.facts +138 -0
  294. data/facts/2.4/debian-8-x86_64.facts +138 -0
  295. data/facts/2.4/fedora-19-i386.facts +107 -0
  296. data/facts/2.4/fedora-19-x86_64.facts +107 -0
  297. data/facts/2.4/opensuse-12-i386.facts +106 -0
  298. data/facts/2.4/opensuse-12-x86_64.facts +106 -0
  299. data/facts/2.4/opensuse-13-i386.facts +110 -0
  300. data/facts/2.4/opensuse-13-x86_64.facts +110 -0
  301. data/facts/2.4/oraclelinux-5-i386.facts +127 -0
  302. data/facts/2.4/oraclelinux-5-x86_64.facts +127 -0
  303. data/facts/2.4/oraclelinux-6-i386.facts +112 -0
  304. data/facts/2.4/oraclelinux-6-x86_64.facts +112 -0
  305. data/facts/2.4/oraclelinux-7-i386.facts +116 -0
  306. data/facts/2.4/oraclelinux-7-x86_64.facts +116 -0
  307. data/facts/2.4/redhat-5-i386.facts +127 -0
  308. data/facts/2.4/redhat-5-x86_64.facts +127 -0
  309. data/facts/2.4/redhat-6-i386.facts +112 -0
  310. data/facts/2.4/redhat-6-x86_64.facts +112 -0
  311. data/facts/2.4/redhat-7-i386.facts +116 -0
  312. data/facts/2.4/redhat-7-x86_64.facts +116 -0
  313. data/facts/2.4/scientific-5-i386.facts +127 -0
  314. data/facts/2.4/scientific-5-x86_64.facts +127 -0
  315. data/facts/2.4/scientific-6-i386.facts +112 -0
  316. data/facts/2.4/scientific-6-x86_64.facts +112 -0
  317. data/facts/2.4/scientific-7-i386.facts +116 -0
  318. data/facts/2.4/scientific-7-x86_64.facts +116 -0
  319. data/facts/2.4/sles-11-i386.facts +119 -0
  320. data/facts/2.4/sles-11-x86_64.facts +119 -0
  321. data/facts/2.4/ubuntu-10.04-i386.facts +132 -0
  322. data/facts/2.4/ubuntu-10.04-x86_64.facts +132 -0
  323. data/facts/2.4/ubuntu-12.04-i386.facts +134 -0
  324. data/facts/2.4/ubuntu-12.04-x86_64.facts +134 -0
  325. data/facts/2.4/ubuntu-14.04-i386.facts +130 -0
  326. data/facts/2.4/ubuntu-14.04-x86_64.facts +130 -0
  327. data/facts/get_facts.sh +2 -2
  328. data/lib/rspec-puppet-facts.rb +3 -6
  329. data/lib/rspec-puppet-facts/version.rb +1 -1
  330. data/rspec-puppet-facts.gemspec +5 -5
  331. data/spec/fixtures/metadata.json_with_missing_operatingsystem_support +25 -0
  332. data/spec/rspec_puppet_facts_spec.rb +34 -17
  333. metadata +69 -22
@@ -0,0 +1,130 @@
1
+ {
2
+ "gem_version": "~> 2.4.0",
3
+ "rubysitedir": "/usr/local/lib/site_ruby/1.9.1",
4
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBALFptHN+L721PVywyMQQnLrQUlzVaPI2NEwGrG+Ryp09X7CdvzqQDv86ciAFLjX857VS4CeQz5+ZTLMurhg7y3leRqUJQNvgmIf5cJ532N5dCBlizE//uyi8RDZB9kuU7KNFkATTVB8RLySztnvRwdlUq2FAbCmzvy2p5jJesSszAAAAFQDFCVus+srYxAzd6TMRhuaVgd4grwAAAIBJQuILffek4A1aYKSkAfzcci93xG+Mx2PU5aXYAp1H7sAnEHbnc4tBrMnsVi96pa7n7G1NdhnGnQNMdxuVNMHLu3oFfIP6PZTubLJ0SpR9Lrm/ZgXy1DXOgenUKkgB63SBcsmxvfn0BLh2h6ybbQYn5pJVqwBgGcKK333W3MqSbQAAAIBYmaZBJsFsKWLtLkNZcOTkg8Ys96dfX30eFxNVtZuuBWZOUHnzh8DkDLT1ohS4IStsE9p9PBzGHKd6hDN8KnhrIGs+dXORoWO5zuxMhULe5BpT2k8BdQltrslQjK1eB4JbnTDYzHjT4guwDDjOFgJjq3FJmHogL4wZxOimJPqmJw==",
5
+ "sshfp_dsa": "SSHFP 2 1 e633e488b5832c0a2f8e8f6bff202cfd0b2f7d49\nSSHFP 2 2 51f094a4dcfeb97527b4f5fd30eee90064271dad8a6060aa4518d8e5acd19981",
6
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDBuEx+Bnr59qmRnh1KGNr0LpY/7Me1kUzM/+pTCjUoDbNs3chvykyTrbSbXlhnc/YH5qUnO3khm6Tkv26bgTHOyTyGBg8QAYAgNIRMjzYXqxhpmAR4lxj7ERf32Ki5M8c2lGu4q4R4EYVw6pHhOypEfenb4YaH07nbYz4On2xByNwAA/amDNam1Iky5HhWwTUVZAIvbCUvBQR8PvV4fCdY2MsqJAtpbDTuKC9EFoVeV70yHR/RG935JF3TU+ZaoIsc9eqPLiMqiVjgP3ai17AL5BPzCz9j4r6I2gI/rEDSl+jx/6s8nXtFUoR5lzLYGyZs9rYkfxMVmuJhXau+8zTt",
7
+ "sshfp_rsa": "SSHFP 1 1 22644176402c19b282c82eaeb69c969cbc87121b\nSSHFP 1 2 7d745ebdddf3130f9da75c439f5c7eb64f941f72f23672cde294738a4a8cc78a",
8
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMeYJYKYKUhj/5lQYEnGuDACe0SvMsW9uyEtoKWQPJdIhA/t+SCt7C6fitYF1uuzwWGigfuHJMXm7H3sKw2FDPE=",
9
+ "sshfp_ecdsa": "SSHFP 3 1 88e498e213876c1b17a85787b9078b3aef0db457\nSSHFP 3 2 207f03c308d25d2133a10289774799dac4d59d4e0091f1813a91e0fa3b990448",
10
+ "sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIPnF2cIeBPz5c5VWM8/ohSv6UXsl315ji33r6meWKzjm",
11
+ "sshfp_ed25519": "SSHFP 4 1 c98e347c3b9306af58c6be37f5c15517be983c4a\nSSHFP 4 2 0d418efb856e08a61b8a55ac03ba962f9de411a2ffa7785718ed8e2775b572f6",
12
+ "memorysize": "490.07 MB",
13
+ "memoryfree": "419.26 MB",
14
+ "swapsize": "512.00 MB",
15
+ "swapfree": "512.00 MB",
16
+ "swapsize_mb": "512.00",
17
+ "swapfree_mb": "512.00",
18
+ "memorysize_mb": "490.07",
19
+ "memoryfree_mb": "419.26",
20
+ "kernel": "Linux",
21
+ "rubyversion": "1.9.3",
22
+ "hostname": "foo",
23
+ "operatingsystem": "Ubuntu",
24
+ "interfaces": "eth0,lo",
25
+ "ipaddress_eth0": "10.0.2.15",
26
+ "macaddress_eth0": "08:00:27:d9:ef:9a",
27
+ "netmask_eth0": "255.255.255.0",
28
+ "mtu_eth0": 1500,
29
+ "ipaddress_lo": "127.0.0.1",
30
+ "netmask_lo": "255.0.0.0",
31
+ "mtu_lo": 65536,
32
+ "processors": {
33
+ "models": [
34
+ "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz"
35
+ ],
36
+ "count": 1,
37
+ "physicalcount": 1
38
+ },
39
+ "rubyplatform": "x86_64-linux",
40
+ "lsbdistid": "Ubuntu",
41
+ "domain": "example.com",
42
+ "netmask": "255.255.255.0",
43
+ "uniqueid": "007f0100",
44
+ "ps": "ps -ef",
45
+ "selinux": false,
46
+ "fqdn": "foo.example.com",
47
+ "id": "root",
48
+ "architecture": "amd64",
49
+ "path": "/home/vagrant/vendor/bundler/ruby/1.9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/gems/1.8/bin/:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.11/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.11/bin",
50
+ "lsbdistdescription": "Ubuntu 14.04 LTS",
51
+ "macaddress": "08:00:27:d9:ef:9a",
52
+ "blockdevice_sda_size": 21474836480,
53
+ "blockdevice_sda_vendor": "ATA",
54
+ "blockdevice_sda_model": "VBOX HARDDISK",
55
+ "blockdevices": "sda",
56
+ "partitions": {
57
+ "sda1": {
58
+ "uuid": "6f990ed8-a6ea-40a4-ae50-e6f4688d24aa",
59
+ "size": "497664",
60
+ "mount": "/boot",
61
+ "filesystem": "ext2"
62
+ },
63
+ "sda2": {
64
+ "size": "2"
65
+ },
66
+ "sda5": {
67
+ "size": "41439232",
68
+ "filesystem": "LVM2_member"
69
+ }
70
+ },
71
+ "hardwaremodel": "x86_64",
72
+ "os": {
73
+ "name": "Ubuntu",
74
+ "family": "Debian",
75
+ "release": {
76
+ "major": "14.04",
77
+ "full": "14.04"
78
+ },
79
+ "lsb": {
80
+ "distcodename": "trusty",
81
+ "distid": "Ubuntu",
82
+ "distdescription": "Ubuntu 14.04 LTS",
83
+ "distrelease": "14.04",
84
+ "majdistrelease": "14.04"
85
+ }
86
+ },
87
+ "processor0": "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz",
88
+ "processorcount": 1,
89
+ "lsbdistrelease": "14.04",
90
+ "network_eth0": "10.0.2.0",
91
+ "network_lo": "127.0.0.0",
92
+ "virtual": "virtualbox",
93
+ "is_virtual": true,
94
+ "uptime_days": 0,
95
+ "kernelmajversion": "3.13",
96
+ "filesystems": "ext2,ext3,ext4,vfat",
97
+ "boardmanufacturer": "Oracle Corporation",
98
+ "boardproductname": "VirtualBox",
99
+ "boardserialnumber": "0",
100
+ "bios_vendor": "innotek GmbH",
101
+ "bios_version": "VirtualBox",
102
+ "bios_release_date": "12/01/2006",
103
+ "manufacturer": "innotek GmbH",
104
+ "productname": "VirtualBox",
105
+ "serialnumber": "0",
106
+ "uuid": "A45FCC7D-4885-47F6-ACC0-E5E50D6BAD18",
107
+ "type": "Other",
108
+ "operatingsystemmajrelease": "14.04",
109
+ "lsbdistcodename": "trusty",
110
+ "lsbmajdistrelease": "14.04",
111
+ "facterversion": "2.4.0",
112
+ "operatingsystemrelease": "14.04",
113
+ "uptime_seconds": 149,
114
+ "uptime": "0:02 hours",
115
+ "ipaddress": "10.0.2.15",
116
+ "system_uptime": {
117
+ "seconds": 149,
118
+ "hours": 0,
119
+ "days": 0,
120
+ "uptime": "0:02 hours"
121
+ },
122
+ "gid": "root",
123
+ "timezone": "PST",
124
+ "kernelversion": "3.13.0",
125
+ "physicalprocessorcount": 1,
126
+ "osfamily": "Debian",
127
+ "uptime_hours": 0,
128
+ "hardwareisa": "x86_64",
129
+ "kernelrelease": "3.13.0-24-generic"
130
+ }
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  # Fix for squeeze, el7, arch, opensuse12 and opensuse13
4
- export PATH=$PATH:/var/lib/gems/1.8/bin/:/usr/local/bin:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.11/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.11/bin
4
+ export PATH=$PATH:/var/lib/gems/1.8/bin/:/usr/local/bin:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.12/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.12/bin
5
5
 
6
6
  # Install latest version of facter
7
7
  gem install bundler --no-ri --no-rdoc
@@ -10,7 +10,7 @@ operatingsystem=$(bundle exec facter operatingsystem | tr '[:upper:]' '[:lower:]
10
10
  operatingsystemmajrelease=$(bundle exec facter operatingsystemmajrelease)
11
11
  hardwaremodel=$(bundle exec facter hardwaremodel)
12
12
 
13
- for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0; do
13
+ for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0; do
14
14
  FACTER_GEM_VERSION="~> ${version}" bundle update
15
15
  minor_version=$(echo $version | cut -c1-3)
16
16
  output_dir="/vagrant/${minor_version}"
@@ -17,7 +17,8 @@ module RspecPuppetFacts
17
17
  # TODO: use SemVer here
18
18
  facter_minor_version = Facter.version[0..2]
19
19
  file = File.expand_path(File.join(File.dirname(__FILE__), "../facts/#{facter_minor_version}/#{os}.facts"))
20
- if ! File.file?(file)
20
+ # Use File.exists? instead of File.file? here so that we can stub File.file?
21
+ if ! File.exists?(file)
21
22
  warn "Can't find facts for '#{os}' for facter #{facter_minor_version}, skipping..."
22
23
  else
23
24
  h[os] = JSON.parse(IO.read(file), :symbolize_names => true)
@@ -48,10 +49,6 @@ module RspecPuppetFacts
48
49
  if ! File.file?('metadata.json')
49
50
  fail StandardError, "Can't find metadata.json... dunno why"
50
51
  end
51
- metadata = JSON.parse(File.read('metadata.json'))
52
- if metadata.nil?
53
- fail StandardError, "Metadata is empty"
54
- end
55
- metadata
52
+ JSON.parse(File.read('metadata.json'))
56
53
  end
57
54
  end
@@ -1,5 +1,5 @@
1
1
  module RspecPuppetFacts
2
2
  module Version
3
- STRING = '0.3.3'
3
+ STRING = '0.4.0'
4
4
  end
5
5
  end
@@ -16,11 +16,11 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
 
19
- s.add_development_dependency 'mime-types', '~> 1.0' # 2.x dropped Ruby 1.8 support
20
- s.add_development_dependency 'coveralls', '~> 0.7'
21
- s.add_development_dependency 'rake', '~> 10.4'
22
- s.add_development_dependency 'rspec', '~> 3.1'
19
+ s.add_development_dependency 'mime-types'
20
+ s.add_development_dependency 'coveralls'
21
+ s.add_development_dependency 'rake'
22
+ s.add_development_dependency 'rspec'
23
23
  s.add_development_dependency 'mocha'
24
- s.add_runtime_dependency 'json', '~> 1.8'
24
+ s.add_runtime_dependency 'json'
25
25
  s.add_runtime_dependency 'facter'
26
26
  end
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "mcanevet-mymodule",
3
+ "version": "1.0.0",
4
+ "author": "Mickaël Canévet",
5
+ "summary": "My puppet modules",
6
+ "license": "Apache-2.0",
7
+ "source": "https://github.com/mcanevet/puppet-mymodule",
8
+ "project_page": "https://github.com/mcanevet/puppet-mymodule",
9
+ "issues_url": "https://github.com/mcanevet/puppet-mymodule/issues",
10
+ "dependencies": [
11
+ ],
12
+ "requirements": [
13
+ ],
14
+ "puppet_version": [
15
+ "2.7",
16
+ "3.0",
17
+ "3.1",
18
+ "3.2",
19
+ "3.3",
20
+ "3.4",
21
+ "3.5",
22
+ "3.6",
23
+ "3.7"
24
+ ]
25
+ }
@@ -12,25 +12,42 @@ describe 'RspecPuppetFacts' do
12
12
  end
13
13
 
14
14
  context 'With a metadata.json' do
15
- before :all do
16
- fixture = File.read('spec/fixtures/metadata.json')
17
- RspecPuppetFacts.expects(:get_metadata).returns JSON.parse(fixture)
18
- end
19
15
 
20
- it 'should return a hash' do
21
- expect( on_supported_os().class ).to eq Hash
22
- end
23
- it 'should have 5 elements' do
24
- expect(subject.size).to eq 5
16
+ context 'With a broken metadata.json' do
17
+
18
+ context 'With missing operatingsystem_support section' do
19
+ before :all do
20
+ fixture = File.read('spec/fixtures/metadata.json_with_missing_operatingsystem_support')
21
+ File.expects(:file?).with('metadata.json').returns true
22
+ File.expects(:read).with('metadata.json').returns fixture
23
+ end
24
+
25
+ it { expect { subject }.to raise_error(StandardError, /Unknown operatingsystem support/) }
26
+ end
25
27
  end
26
- it 'should return supported OS' do
27
- expect(subject.keys.sort).to eq [
28
- 'debian-6-x86_64',
29
- 'debian-7-x86_64',
30
- 'redhat-5-x86_64',
31
- 'redhat-6-x86_64',
32
- 'redhat-7-x86_64',
33
- ]
28
+
29
+ context 'With a valid metadata.json' do
30
+ before :all do
31
+ fixture = File.read('spec/fixtures/metadata.json')
32
+ File.expects(:file?).with('metadata.json').returns true
33
+ File.expects(:read).with('metadata.json').returns fixture
34
+ end
35
+
36
+ it 'should return a hash' do
37
+ expect( on_supported_os().class ).to eq Hash
38
+ end
39
+ it 'should have 5 elements' do
40
+ expect(subject.size).to eq 5
41
+ end
42
+ it 'should return supported OS' do
43
+ expect(subject.keys.sort).to eq [
44
+ 'debian-6-x86_64',
45
+ 'debian-7-x86_64',
46
+ 'redhat-5-x86_64',
47
+ 'redhat-6-x86_64',
48
+ 'redhat-7-x86_64',
49
+ ]
50
+ end
34
51
  end
35
52
  end
36
53
  end
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet-facts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickaël Canévet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-05 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.7'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.7'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '10.4'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '10.4'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.1'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '3.1'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: json
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '1.8'
89
+ version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '1.8'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: facter
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -399,6 +399,52 @@ files:
399
399
  - facts/2.3/ubuntu-12.04-x86_64.facts
400
400
  - facts/2.3/ubuntu-14.04-i386.facts
401
401
  - facts/2.3/ubuntu-14.04-x86_64.facts
402
+ - facts/2.4/archlinux-3-i386.facts
403
+ - facts/2.4/archlinux-3-x86_64.facts
404
+ - facts/2.4/centos-5-i386.facts
405
+ - facts/2.4/centos-5-x86_64.facts
406
+ - facts/2.4/centos-6-i386.facts
407
+ - facts/2.4/centos-6-x86_64.facts
408
+ - facts/2.4/centos-7-i386.facts
409
+ - facts/2.4/centos-7-x86_64.facts
410
+ - facts/2.4/debian-6-i386.facts
411
+ - facts/2.4/debian-6-x86_64.facts
412
+ - facts/2.4/debian-7-i386.facts
413
+ - facts/2.4/debian-7-x86_64.facts
414
+ - facts/2.4/debian-8-i386.facts
415
+ - facts/2.4/debian-8-x86_64.facts
416
+ - facts/2.4/fedora-19-i386.facts
417
+ - facts/2.4/fedora-19-x86_64.facts
418
+ - facts/2.4/opensuse-12-i386.facts
419
+ - facts/2.4/opensuse-12-x86_64.facts
420
+ - facts/2.4/opensuse-13-i386.facts
421
+ - facts/2.4/opensuse-13-x86_64.facts
422
+ - facts/2.4/oraclelinux-5-i386.facts
423
+ - facts/2.4/oraclelinux-5-x86_64.facts
424
+ - facts/2.4/oraclelinux-6-i386.facts
425
+ - facts/2.4/oraclelinux-6-x86_64.facts
426
+ - facts/2.4/oraclelinux-7-i386.facts
427
+ - facts/2.4/oraclelinux-7-x86_64.facts
428
+ - facts/2.4/redhat-5-i386.facts
429
+ - facts/2.4/redhat-5-x86_64.facts
430
+ - facts/2.4/redhat-6-i386.facts
431
+ - facts/2.4/redhat-6-x86_64.facts
432
+ - facts/2.4/redhat-7-i386.facts
433
+ - facts/2.4/redhat-7-x86_64.facts
434
+ - facts/2.4/scientific-5-i386.facts
435
+ - facts/2.4/scientific-5-x86_64.facts
436
+ - facts/2.4/scientific-6-i386.facts
437
+ - facts/2.4/scientific-6-x86_64.facts
438
+ - facts/2.4/scientific-7-i386.facts
439
+ - facts/2.4/scientific-7-x86_64.facts
440
+ - facts/2.4/sles-11-i386.facts
441
+ - facts/2.4/sles-11-x86_64.facts
442
+ - facts/2.4/ubuntu-10.04-i386.facts
443
+ - facts/2.4/ubuntu-10.04-x86_64.facts
444
+ - facts/2.4/ubuntu-12.04-i386.facts
445
+ - facts/2.4/ubuntu-12.04-x86_64.facts
446
+ - facts/2.4/ubuntu-14.04-i386.facts
447
+ - facts/2.4/ubuntu-14.04-x86_64.facts
402
448
  - facts/Gemfile
403
449
  - facts/Vagrantfile
404
450
  - facts/get_facts.sh
@@ -406,6 +452,7 @@ files:
406
452
  - lib/rspec-puppet-facts/version.rb
407
453
  - rspec-puppet-facts.gemspec
408
454
  - spec/fixtures/metadata.json
455
+ - spec/fixtures/metadata.json_with_missing_operatingsystem_support
409
456
  - spec/rspec_puppet_facts_spec.rb
410
457
  - spec/spec_helper.rb
411
458
  homepage: http://github.com/mcanevet/rspec-puppet-facts