vagrant-skytap 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (327) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/vagrant-skytap/action/add_vm_to_environment.rb +4 -4
  4. data/lib/vagrant-skytap/action/compose_environment.rb +131 -0
  5. data/lib/vagrant-skytap/action/create_environment.rb +3 -1
  6. data/lib/vagrant-skytap/action/initialize_api_client.rb +6 -5
  7. data/lib/vagrant-skytap/action/set_up_vm.rb +3 -1
  8. data/lib/vagrant-skytap/action/store_extra_data.rb +4 -2
  9. data/lib/vagrant-skytap/action.rb +4 -17
  10. data/lib/vagrant-skytap/api/environment.rb +53 -25
  11. data/lib/vagrant-skytap/api/vm.rb +9 -3
  12. data/lib/vagrant-skytap/command/up.rb +46 -30
  13. data/lib/vagrant-skytap/errors.rb +4 -0
  14. data/lib/vagrant-skytap/version.rb +1 -1
  15. data/locales/en.yml +5 -1
  16. data/spec/unit/actions/compose_environment_spec.rb +101 -0
  17. data/spec/unit/environment_spec.rb +26 -45
  18. data/spec/unit/support/shared/skytap_context.rb +5 -0
  19. data/vagrant-skytap.gemspec +3 -3
  20. metadata +9 -311
  21. data/.byebug_history +0 -256
  22. data/.project +0 -11
  23. data/_patches-20160112/0 +0 -388
  24. data/_patches-20160112/1 +0 -82
  25. data/_patches-20160112/2 +0 -239
  26. data/_patches-20160112/COMPLETED-ABOVE-THIS-LINE +0 -4
  27. data/_patches-20160112/COMPLETED-BELOW-THIS-LINE +0 -4
  28. data/_patches-20160112/CR-ABOVE-THIS-LINE +0 -4
  29. data/_patches-20160112/CR-BELOW-THIS-LINE +0 -4
  30. data/_patches-20160112/WIP-ABOVE-THIS-LINE +0 -4
  31. data/_patches-20160112/WIP-BELOW-THIS-LINE +0 -4
  32. data/_patches-20160112/acceptance-test-runner +0 -29
  33. data/_patches-20160112/ansible-1 +0 -92
  34. data/_patches-20160112/cache-api-client-in-up +0 -40
  35. data/_patches-20160112/dead-code-in-actions +0 -44
  36. data/_patches-20160112/debug-changes +0 -42
  37. data/_patches-20160112/demo-rails-app +0 -1276
  38. data/_patches-20160112/eng-10166-halt-spec +0 -40
  39. data/_patches-20160112/eng-10256 +0 -527
  40. data/_patches-20160112/eng-10256-2 +0 -162
  41. data/_patches-20160112/eng-10256-ubuntu-testing +0 -88
  42. data/_patches-20160112/eng-10269-test-stuff +0 -87
  43. data/_patches-20160112/eng-10269-wtf +0 -119
  44. data/_patches-20160112/eng-10369 +0 -143
  45. data/_patches-20160112/eng-10369-tmp +0 -60
  46. data/_patches-20160112/eng-10919 +0 -56
  47. data/_patches-20160112/eng-11177-fix-actions-requires +0 -44
  48. data/_patches-20160112/eng-11442 +0 -4
  49. data/_patches-20160112/eng-11616 +0 -403
  50. data/_patches-20160112/eng-11616-2 +0 -67
  51. data/_patches-20160112/eng-11616-actual +0 -184
  52. data/_patches-20160112/eng-11625a +0 -4
  53. data/_patches-20160112/eng-11711 +0 -85
  54. data/_patches-20160112/eng-12232-command-spec +0 -236
  55. data/_patches-20160112/eng-12235 +0 -83
  56. data/_patches-20160112/eng-12235-override-refactor +0 -140
  57. data/_patches-20160112/eng-12240 +0 -103
  58. data/_patches-20160112/eng-12249 +0 -40
  59. data/_patches-20160112/eng-12301 +0 -50
  60. data/_patches-20160112/eng-12843 +0 -95
  61. data/_patches-20160112/env-source +0 -112
  62. data/_patches-20160112/frickin-vagrant-spec +0 -163
  63. data/_patches-20160112/gem-pre-version +0 -14
  64. data/_patches-20160112/gems-old +0 -9
  65. data/_patches-20160112/googles-specs +0 -713
  66. data/_patches-20160112/local-configs-ignore +0 -61
  67. data/_patches-20160112/misc +0 -79
  68. data/_patches-20160112/network-unreachable +0 -31
  69. data/_patches-20160112/new-boxfile +0 -288
  70. data/_patches-20160112/parallelization-maybe +0 -198
  71. data/_patches-20160112/read-state +0 -23
  72. data/_patches-20160112/refactor-to-use-public_address-cap +0 -25
  73. data/_patches-20160112/series +0 -60
  74. data/_patches-20160112/status +0 -12
  75. data/_patches-20160112/test-move-env-data +0 -231
  76. data/_patches-20160112/test-vagrantfile-vm1 +0 -167
  77. data/_patches-20160112/the_version_in_0.1.13.pre1 +0 -598
  78. data/_patches-20160112/vagrant-spec-mock-api +0 -137
  79. data/_patches-20160112/vagrant-vmware-plugin +0 -233
  80. data/_patches-20160112/vagrantfile +0 -403
  81. data/_patches-20160112/vagrantfile-for-acceptance-tests +0 -29
  82. data/_patches-20160112/vagrantfile-for-nick +0 -95
  83. data/_patches-20160112/vagrantfiles-to-forget-what-they-are-for +0 -134
  84. data/_patches-20160112/vm-vanished +0 -42
  85. data/_patches-20160112a/01 +0 -148
  86. data/_patches-20160112a/2 +0 -239
  87. data/_patches-20160112a/COMPLETED-ABOVE-THIS-LINE +0 -4
  88. data/_patches-20160112a/COMPLETED-BELOW-THIS-LINE +0 -4
  89. data/_patches-20160112a/CR-ABOVE-THIS-LINE +0 -4
  90. data/_patches-20160112a/CR-BELOW-THIS-LINE +0 -4
  91. data/_patches-20160112a/WIP-ABOVE-THIS-LINE +0 -4
  92. data/_patches-20160112a/WIP-BELOW-THIS-LINE +0 -4
  93. data/_patches-20160112a/acceptance-test-runner +0 -29
  94. data/_patches-20160112a/ansible-1 +0 -92
  95. data/_patches-20160112a/cache-api-client-in-up +0 -40
  96. data/_patches-20160112a/dead-code-in-actions +0 -44
  97. data/_patches-20160112a/debug-changes +0 -42
  98. data/_patches-20160112a/demo-rails-app +0 -1276
  99. data/_patches-20160112a/eng-10166-halt-spec +0 -40
  100. data/_patches-20160112a/eng-10256-ubuntu-testing +0 -88
  101. data/_patches-20160112a/eng-10269-test-stuff +0 -87
  102. data/_patches-20160112a/eng-10269-wtf +0 -119
  103. data/_patches-20160112a/eng-10369 +0 -143
  104. data/_patches-20160112a/eng-10369-tmp +0 -60
  105. data/_patches-20160112a/eng-10919 +0 -56
  106. data/_patches-20160112a/eng-11177-fix-actions-requires +0 -44
  107. data/_patches-20160112a/eng-11442 +0 -4
  108. data/_patches-20160112a/eng-11616 +0 -403
  109. data/_patches-20160112a/eng-11616-2 +0 -67
  110. data/_patches-20160112a/eng-11616-actual +0 -184
  111. data/_patches-20160112a/eng-11625a +0 -4
  112. data/_patches-20160112a/eng-11711 +0 -85
  113. data/_patches-20160112a/eng-12232-command-spec +0 -236
  114. data/_patches-20160112a/eng-12235 +0 -83
  115. data/_patches-20160112a/eng-12235-override-refactor +0 -140
  116. data/_patches-20160112a/eng-12240 +0 -103
  117. data/_patches-20160112a/eng-12249 +0 -40
  118. data/_patches-20160112a/eng-12301 +0 -50
  119. data/_patches-20160112a/eng-12843 +0 -95
  120. data/_patches-20160112a/env-source +0 -112
  121. data/_patches-20160112a/frickin-vagrant-spec +0 -163
  122. data/_patches-20160112a/gem-pre-version +0 -14
  123. data/_patches-20160112a/gems-old +0 -9
  124. data/_patches-20160112a/googles-specs +0 -713
  125. data/_patches-20160112a/local-configs-ignore +0 -61
  126. data/_patches-20160112a/misc +0 -79
  127. data/_patches-20160112a/network-unreachable +0 -31
  128. data/_patches-20160112a/new-boxfile +0 -288
  129. data/_patches-20160112a/parallelization-maybe +0 -198
  130. data/_patches-20160112a/read-state +0 -23
  131. data/_patches-20160112a/refactor-to-use-public_address-cap +0 -25
  132. data/_patches-20160112a/series +0 -58
  133. data/_patches-20160112a/status +0 -14
  134. data/_patches-20160112a/test-move-env-data +0 -231
  135. data/_patches-20160112a/test-vagrantfile-vm1 +0 -167
  136. data/_patches-20160112a/the_version_in_0.1.13.pre1 +0 -612
  137. data/_patches-20160112a/then-copy-the-newer-files +0 -632
  138. data/_patches-20160112a/vagrant-spec-mock-api +0 -137
  139. data/_patches-20160112a/vagrant-vmware-plugin +0 -233
  140. data/_patches-20160112a/vagrantfile +0 -403
  141. data/_patches-20160112a/vagrantfile-for-acceptance-tests +0 -29
  142. data/_patches-20160112a/vagrantfile-for-nick +0 -95
  143. data/_patches-20160112a/vagrantfiles-to-forget-what-they-are-for +0 -134
  144. data/_patches-20160112a/vm-vanished +0 -42
  145. data/_patches-20160113/COMPLETED-ABOVE-THIS-LINE +0 -4
  146. data/_patches-20160113/COMPLETED-BELOW-THIS-LINE +0 -4
  147. data/_patches-20160113/CR-ABOVE-THIS-LINE +0 -4
  148. data/_patches-20160113/CR-BELOW-THIS-LINE +0 -4
  149. data/_patches-20160113/WIP-ABOVE-THIS-LINE +0 -4
  150. data/_patches-20160113/WIP-BELOW-THIS-LINE +0 -4
  151. data/_patches-20160113/acceptance-test-runner +0 -29
  152. data/_patches-20160113/ansible-1 +0 -92
  153. data/_patches-20160113/cache-api-client-in-up +0 -40
  154. data/_patches-20160113/dead-code-in-actions +0 -44
  155. data/_patches-20160113/debug-changes +0 -55
  156. data/_patches-20160113/demo-rails-app +0 -1276
  157. data/_patches-20160113/eng-10166-halt-spec +0 -40
  158. data/_patches-20160113/eng-10256 +0 -543
  159. data/_patches-20160113/eng-10256-ubuntu-testing +0 -88
  160. data/_patches-20160113/eng-10269-test-stuff +0 -87
  161. data/_patches-20160113/eng-10269-wtf +0 -119
  162. data/_patches-20160113/eng-10369 +0 -143
  163. data/_patches-20160113/eng-10369-tmp +0 -60
  164. data/_patches-20160113/eng-10919 +0 -56
  165. data/_patches-20160113/eng-11177-fix-actions-requires +0 -44
  166. data/_patches-20160113/eng-11442 +0 -4
  167. data/_patches-20160113/eng-11616 +0 -403
  168. data/_patches-20160113/eng-11616-2 +0 -67
  169. data/_patches-20160113/eng-11616-actual +0 -184
  170. data/_patches-20160113/eng-11625a +0 -4
  171. data/_patches-20160113/eng-11711 +0 -85
  172. data/_patches-20160113/eng-12232-command-spec +0 -236
  173. data/_patches-20160113/eng-12235 +0 -83
  174. data/_patches-20160113/eng-12235-override-refactor +0 -140
  175. data/_patches-20160113/eng-12240 +0 -103
  176. data/_patches-20160113/eng-12249 +0 -40
  177. data/_patches-20160113/eng-12301 +0 -50
  178. data/_patches-20160113/eng-12720 +0 -47
  179. data/_patches-20160113/eng-12843 +0 -95
  180. data/_patches-20160113/env-source +0 -112
  181. data/_patches-20160113/frickin-vagrant-spec +0 -163
  182. data/_patches-20160113/gem-pre-version +0 -14
  183. data/_patches-20160113/gems-old +0 -9
  184. data/_patches-20160113/googles-specs +0 -713
  185. data/_patches-20160113/local-configs-ignore +0 -61
  186. data/_patches-20160113/misc +0 -79
  187. data/_patches-20160113/network-unreachable +0 -31
  188. data/_patches-20160113/new-boxfile +0 -288
  189. data/_patches-20160113/parallelization-maybe +0 -198
  190. data/_patches-20160113/read-state +0 -23
  191. data/_patches-20160113/refactor-to-use-public_address-cap +0 -25
  192. data/_patches-20160113/series +0 -56
  193. data/_patches-20160113/status +0 -14
  194. data/_patches-20160113/test-move-env-data +0 -231
  195. data/_patches-20160113/test-vagrantfile-vm1 +0 -167
  196. data/_patches-20160113/vagrant-spec-mock-api +0 -137
  197. data/_patches-20160113/vagrant-vmware-plugin +0 -233
  198. data/_patches-20160113/vagrantfile +0 -403
  199. data/_patches-20160113/vagrantfile-for-acceptance-tests +0 -29
  200. data/_patches-20160113/vagrantfile-for-nick +0 -95
  201. data/_patches-20160113/vagrantfiles-to-forget-what-they-are-for +0 -134
  202. data/_patches-20160113/vm-vanished +0 -42
  203. data/_patches-20160118/COMPLETED-ABOVE-THIS-LINE +0 -4
  204. data/_patches-20160118/COMPLETED-BELOW-THIS-LINE +0 -4
  205. data/_patches-20160118/CR-ABOVE-THIS-LINE +0 -4
  206. data/_patches-20160118/CR-BELOW-THIS-LINE +0 -4
  207. data/_patches-20160118/WIP-ABOVE-THIS-LINE +0 -4
  208. data/_patches-20160118/WIP-BELOW-THIS-LINE +0 -4
  209. data/_patches-20160118/acceptance-test-runner +0 -29
  210. data/_patches-20160118/ansible-1 +0 -92
  211. data/_patches-20160118/cache-api-client-in-up +0 -40
  212. data/_patches-20160118/dead-code-in-actions +0 -44
  213. data/_patches-20160118/debug-changes +0 -55
  214. data/_patches-20160118/demo-rails-app +0 -1276
  215. data/_patches-20160118/eng-10166-halt-spec +0 -40
  216. data/_patches-20160118/eng-10256 +0 -554
  217. data/_patches-20160118/eng-10256-cr +0 -314
  218. data/_patches-20160118/eng-10256-ubuntu-testing +0 -88
  219. data/_patches-20160118/eng-10269-test-stuff +0 -87
  220. data/_patches-20160118/eng-10269-wtf +0 -119
  221. data/_patches-20160118/eng-10369 +0 -143
  222. data/_patches-20160118/eng-10369-tmp +0 -60
  223. data/_patches-20160118/eng-10919 +0 -56
  224. data/_patches-20160118/eng-11177-fix-actions-requires +0 -44
  225. data/_patches-20160118/eng-11442 +0 -4
  226. data/_patches-20160118/eng-11616 +0 -403
  227. data/_patches-20160118/eng-11616-2 +0 -67
  228. data/_patches-20160118/eng-11616-actual +0 -184
  229. data/_patches-20160118/eng-11625a +0 -4
  230. data/_patches-20160118/eng-11711 +0 -85
  231. data/_patches-20160118/eng-12232-command-spec +0 -236
  232. data/_patches-20160118/eng-12235 +0 -83
  233. data/_patches-20160118/eng-12235-override-refactor +0 -140
  234. data/_patches-20160118/eng-12240 +0 -103
  235. data/_patches-20160118/eng-12249 +0 -40
  236. data/_patches-20160118/eng-12301 +0 -50
  237. data/_patches-20160118/eng-12720 +0 -74
  238. data/_patches-20160118/eng-12843 +0 -95
  239. data/_patches-20160118/eng-13040 +0 -291
  240. data/_patches-20160118/env-source +0 -112
  241. data/_patches-20160118/frickin-vagrant-spec +0 -163
  242. data/_patches-20160118/gem-pre-version +0 -14
  243. data/_patches-20160118/gems-old +0 -9
  244. data/_patches-20160118/googles-specs +0 -713
  245. data/_patches-20160118/local-configs-ignore +0 -61
  246. data/_patches-20160118/misc +0 -79
  247. data/_patches-20160118/network-unreachable +0 -31
  248. data/_patches-20160118/new-boxfile +0 -288
  249. data/_patches-20160118/parallelization-maybe +0 -198
  250. data/_patches-20160118/port-forwarding-processes +0 -87
  251. data/_patches-20160118/read-state +0 -23
  252. data/_patches-20160118/refactor-to-use-public_address-cap +0 -25
  253. data/_patches-20160118/series +0 -59
  254. data/_patches-20160118/status +0 -13
  255. data/_patches-20160118/test-move-env-data +0 -231
  256. data/_patches-20160118/test-vagrantfile-vm1 +0 -167
  257. data/_patches-20160118/vagrant-spec-mock-api +0 -137
  258. data/_patches-20160118/vagrant-vmware-plugin +0 -233
  259. data/_patches-20160118/vagrantfile +0 -403
  260. data/_patches-20160118/vagrantfile-for-acceptance-tests +0 -29
  261. data/_patches-20160118/vagrantfile-for-nick +0 -95
  262. data/_patches-20160118/vagrantfiles-to-forget-what-they-are-for +0 -134
  263. data/_patches-20160118/vm-vanished +0 -42
  264. data/_patches-20160118a/COMPLETED-ABOVE-THIS-LINE +0 -4
  265. data/_patches-20160118a/COMPLETED-BELOW-THIS-LINE +0 -4
  266. data/_patches-20160118a/CR-ABOVE-THIS-LINE +0 -4
  267. data/_patches-20160118a/CR-BELOW-THIS-LINE +0 -4
  268. data/_patches-20160118a/WIP-ABOVE-THIS-LINE +0 -4
  269. data/_patches-20160118a/WIP-BELOW-THIS-LINE +0 -4
  270. data/_patches-20160118a/acceptance-test-runner +0 -29
  271. data/_patches-20160118a/ansible-1 +0 -92
  272. data/_patches-20160118a/bar +0 -189
  273. data/_patches-20160118a/cache-api-client-in-up +0 -40
  274. data/_patches-20160118a/dead-code-in-actions +0 -44
  275. data/_patches-20160118a/debug-changes +0 -55
  276. data/_patches-20160118a/demo-rails-app +0 -1276
  277. data/_patches-20160118a/eng-10166-halt-spec +0 -40
  278. data/_patches-20160118a/eng-10256 +0 -554
  279. data/_patches-20160118a/eng-10256-cr +0 -314
  280. data/_patches-20160118a/eng-10256-ubuntu-testing +0 -88
  281. data/_patches-20160118a/eng-10269-test-stuff +0 -87
  282. data/_patches-20160118a/eng-10269-wtf +0 -119
  283. data/_patches-20160118a/eng-10369 +0 -143
  284. data/_patches-20160118a/eng-10369-tmp +0 -60
  285. data/_patches-20160118a/eng-10919 +0 -56
  286. data/_patches-20160118a/eng-11177-fix-actions-requires +0 -44
  287. data/_patches-20160118a/eng-11442 +0 -4
  288. data/_patches-20160118a/eng-11616 +0 -403
  289. data/_patches-20160118a/eng-11616-2 +0 -67
  290. data/_patches-20160118a/eng-11616-actual +0 -184
  291. data/_patches-20160118a/eng-11625a +0 -4
  292. data/_patches-20160118a/eng-11711 +0 -85
  293. data/_patches-20160118a/eng-12232-command-spec +0 -236
  294. data/_patches-20160118a/eng-12235 +0 -83
  295. data/_patches-20160118a/eng-12235-override-refactor +0 -140
  296. data/_patches-20160118a/eng-12240 +0 -103
  297. data/_patches-20160118a/eng-12249 +0 -40
  298. data/_patches-20160118a/eng-12301 +0 -50
  299. data/_patches-20160118a/eng-12720 +0 -74
  300. data/_patches-20160118a/eng-12843 +0 -95
  301. data/_patches-20160118a/eng-13040 +0 -291
  302. data/_patches-20160118a/env-source +0 -112
  303. data/_patches-20160118a/foo +0 -169
  304. data/_patches-20160118a/frickin-vagrant-spec +0 -163
  305. data/_patches-20160118a/gem-pre-version +0 -14
  306. data/_patches-20160118a/gems-old +0 -9
  307. data/_patches-20160118a/googles-specs +0 -713
  308. data/_patches-20160118a/guestport-madness +0 -59
  309. data/_patches-20160118a/local-configs-ignore +0 -61
  310. data/_patches-20160118a/misc +0 -79
  311. data/_patches-20160118a/network-unreachable +0 -31
  312. data/_patches-20160118a/new-boxfile +0 -288
  313. data/_patches-20160118a/parallelization-maybe +0 -198
  314. data/_patches-20160118a/port-forwarding-processes +0 -87
  315. data/_patches-20160118a/read-state +0 -23
  316. data/_patches-20160118a/refactor-to-use-public_address-cap +0 -25
  317. data/_patches-20160118a/series +0 -62
  318. data/_patches-20160118a/status +0 -14
  319. data/_patches-20160118a/test-move-env-data +0 -231
  320. data/_patches-20160118a/test-vagrantfile-vm1 +0 -167
  321. data/_patches-20160118a/vagrant-spec-mock-api +0 -137
  322. data/_patches-20160118a/vagrant-vmware-plugin +0 -233
  323. data/_patches-20160118a/vagrantfile +0 -403
  324. data/_patches-20160118a/vagrantfile-for-acceptance-tests +0 -29
  325. data/_patches-20160118a/vagrantfile-for-nick +0 -95
  326. data/_patches-20160118a/vagrantfiles-to-forget-what-they-are-for +0 -134
  327. data/_patches-20160118a/vm-vanished +0 -42
@@ -1,25 +0,0 @@
1
- # HG changeset patch
2
- # Parent 37bcd8389c3f5d6e1d618b020c7decf7949a2f25
3
- diff -r 37bcd8389c3f -r febe6d83e803 lib/vagrant-skytap/action/prepare_nfs_settings.rb
4
- --- a/lib/vagrant-skytap/action/prepare_nfs_settings.rb Wed Dec 02 17:37:41 2015 -0800
5
- +++ b/lib/vagrant-skytap/action/prepare_nfs_settings.rb Wed Dec 02 17:37:46 2015 -0800
6
- @@ -15,7 +15,7 @@
7
-
8
- if using_nfs?
9
- env[:nfs_host_ip] = read_host_ip
10
- - env[:nfs_machine_ip] = read_machine_ip
11
- + env[:nfs_machine_ip] = machine.provider.capability(:public_address)
12
- end
13
-
14
- @app.call(env)
15
- @@ -35,10 +35,6 @@
16
- @logger.debug "read_host_ip returning #{ret}"
17
- end
18
- end
19
- -
20
- - def read_machine_ip
21
- - machine.ssh_info[:host]
22
- - end
23
- end
24
- end
25
- end
@@ -1,58 +0,0 @@
1
- gem-pre-version
2
- local-configs-ignore
3
- debug-changes
4
- acceptance-test-runner
5
- gems-old
6
- vagrantfile
7
- vagrantfile-for-acceptance-tests
8
- CR-ABOVE-THIS-LINE
9
- CR-BELOW-THIS-LINE
10
- COMPLETED-ABOVE-THIS-LINE
11
- COMPLETED-BELOW-THIS-LINE
12
- WIP-ABOVE-THIS-LINE
13
- the_version_in_0.1.13.pre1
14
- then-copy-the-newer-files
15
- 01
16
- 2
17
- eng-10256-ubuntu-testing
18
- eng-12843
19
- test-vagrantfile-vm1
20
- eng-12235-override-refactor
21
- eng-12232-command-spec
22
- eng-12235
23
- frickin-vagrant-spec
24
- eng-12249
25
- cache-api-client-in-up
26
- eng-12301
27
- vagrantfiles-to-forget-what-they-are-for
28
- eng-12240
29
- vagrantfile-for-nick
30
- refactor-to-use-public_address-cap
31
- eng-10269-test-stuff
32
- demo-rails-app
33
- read-state
34
- eng-11616
35
- eng-11616-2
36
- eng-11616-actual
37
- eng-10269-wtf
38
- parallelization-maybe
39
- eng-10369
40
- vm-vanished
41
- eng-10369-tmp
42
- eng-11625a
43
- eng-11711
44
- network-unreachable
45
- eng-11442
46
- WIP-BELOW-THIS-LINE
47
- new-boxfile
48
- ansible-1
49
- misc
50
- vagrant-spec-mock-api
51
- eng-10919
52
- env-source
53
- eng-11177-fix-actions-requires
54
- dead-code-in-actions
55
- eng-10166-halt-spec
56
- vagrant-vmware-plugin
57
- test-move-env-data
58
- googles-specs
@@ -1,14 +0,0 @@
1
- 813456f18a2d7810c0785efa925e2516a7fa5729:gem-pre-version
2
- b2aa1fa1e5603d434a08013f830ca256a0944559:local-configs-ignore
3
- fa67bcbad9aef7acb31abc4b8d9df85143ec3c27:debug-changes
4
- 3add3957db8489b6c0a870431902e488cda09301:acceptance-test-runner
5
- fb70a607243a0a5da881a0566cdbc635103709c9:gems-old
6
- b40132932e136370996c05ae53a72af33f87f551:vagrantfile
7
- 97fb3026a3c0045459c82305f023aa164b1a2974:vagrantfile-for-acceptance-tests
8
- 186b84dd908694650a88634d2b521ebd79da9d14:CR-ABOVE-THIS-LINE
9
- a6333befa609c230c955f35feed18100d1a54d24:CR-BELOW-THIS-LINE
10
- cd4c55eba0c0e6454498b678eef5541fcd014db4:COMPLETED-ABOVE-THIS-LINE
11
- 0fd7b03573f95a7f81fe3d668b7b6ef03aeafd4d:COMPLETED-BELOW-THIS-LINE
12
- 9277259db23ef4e33b90e83fbd16f6624145b338:WIP-ABOVE-THIS-LINE
13
- 444a060a037d79990b65d796632a91bbed6f6918:the_version_in_0.1.13.pre1
14
- a25408cb5c0fa1d9728d672a28e0ad281f12857b:then-copy-the-newer-files
@@ -1,231 +0,0 @@
1
- # HG changeset patch
2
- # Parent b53e5fb4613bca1379e20e6d91ee14addfca153a
3
- tests for separating environment data
4
-
5
- diff --git a/lib/vagrant-skytap/action/create_environment.rb b/lib/vagrant-skytap/action/create_environment.rb
6
- --- a/lib/vagrant-skytap/action/create_environment.rb
7
- +++ b/lib/vagrant-skytap/action/create_environment.rb
8
- @@ -28,7 +28,8 @@
9
- def call(env)
10
- environment = API::Environment.create!(env, template_url)
11
- env[:environment] = environment
12
- - environment.global_properties.write('url' => environment.url)
13
- + write_environment_url(environment.url)
14
- + #environment.global_properties.write('url' => environment.url)
15
- environment.wait_until_ready
16
-
17
- #TODO:NLA What's the right way to get this set? And where? Does it need to be set at all?
18
- @@ -42,6 +43,10 @@
19
- def template_url
20
- env[:machine].provider_config.template_url
21
- end
22
- +
23
- + def write_environment_url(url)
24
- + env[:environment].global_properties.write('url' => url)
25
- + end
26
- end
27
- end
28
- end
29
- diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
30
- --- a/spec/spec_helper.rb
31
- +++ b/spec/spec_helper.rb
32
- @@ -1,1 +1,7 @@
33
- -
34
- +require "unit/support/dummy_communicator"
35
- +require "unit/support/dummy_provider"
36
- +require "unit/support/shared/base_context"
37
- +require "unit/support/shared/action_synced_folders_context"
38
- +require "unit/support/shared/capability_helpers_context"
39
- +require "unit/support/shared/plugin_command_context"
40
- +require "unit/support/shared/virtualbox_context"
41
- diff --git a/spec/support/isolated_environment.rb b/spec/support/isolated_environment.rb
42
- new file mode 100644
43
- --- /dev/null
44
- +++ b/spec/support/isolated_environment.rb
45
- @@ -0,0 +1,45 @@
46
- +require "fileutils"
47
- +require "pathname"
48
- +require "tmpdir"
49
- +
50
- +require "log4r"
51
- +
52
- +# This class manages an isolated environment for Vagrant to
53
- +# run in. It creates a temporary directory to act as the
54
- +# working directory as well as sets a custom home directory.
55
- +#
56
- +# This class also provides various helpers to create Vagrantfiles,
57
- +# boxes, etc.
58
- +class IsolatedEnvironment
59
- + attr_reader :homedir
60
- + attr_reader :workdir
61
- +
62
- + # Initializes an isolated environment. You can pass in some
63
- + # options here to configure runing custom applications in place
64
- + # of others as well as specifying environmental variables.
65
- + #
66
- + # @param [Hash] apps A mapping of application name (such as "vagrant")
67
- + # to an alternate full path to the binary to run.
68
- + # @param [Hash] env Additional environmental variables to inject
69
- + # into the execution environments.
70
- + def initialize
71
- + @logger = Log4r::Logger.new("test::isolated_environment")
72
- +
73
- + # Create a temporary directory for our work
74
- + @tempdir = Dir.mktmpdir("vagrant")
75
- + @logger.info("Initialize isolated environment: #{@tempdir}")
76
- +
77
- + # Setup the home and working directories
78
- + @homedir = Pathname.new(File.join(@tempdir, "home"))
79
- + @workdir = Pathname.new(File.join(@tempdir, "work"))
80
- +
81
- + @homedir.mkdir
82
- + @workdir.mkdir
83
- + end
84
- +
85
- + # This closes the environment by cleaning it up.
86
- + def close
87
- + @logger.info("Removing isolated environment: #{@tempdir}")
88
- + FileUtils.rm_rf(@tempdir)
89
- + end
90
- +end
91
- diff --git a/spec/vagrant-skytap/config_spec.rb b/spec/unit/config_spec.rb
92
- rename from spec/vagrant-skytap/config_spec.rb
93
- rename to spec/unit/config_spec.rb
94
- diff --git a/spec/unit/create_environment_spec.rb b/spec/unit/create_environment_spec.rb
95
- new file mode 100644
96
- --- /dev/null
97
- +++ b/spec/unit/create_environment_spec.rb
98
- @@ -0,0 +1,81 @@
99
- +require 'spec_helper'
100
- +require 'vagrant-skytap/action/create_environment'
101
- +
102
- +describe VagrantPlugins::Skytap::Action::CreateEnvironment do
103
- + include_context "unit"
104
- +
105
- + let(:iso_env) do
106
- + # We have to create a Vagrantfile so there is a root path
107
- + env = isolated_environment
108
- + env.vagrantfile("")
109
- + env.create_vagrant_env
110
- + end
111
- +
112
- + #let(:machine) { iso_env.machine(iso_env.machine_names[0], :dummy) }
113
- + let(:machine) do
114
- + iso_env.machine(iso_env.machine_names[0], :dummy).tap do |m|
115
- + m.provider.stub(driver: driver)
116
- + end
117
- + end
118
- +
119
- + # let(:app) { nil }
120
- + # let(:env) { {} }
121
- + # subject(:action) { described_class.new(app, env) }
122
- + let(:env) {{ machine: machine }}
123
- + let(:app) { lambda { |*args| }}
124
- + let(:driver) { double("driver") }
125
- + let(:host) { double("host") }
126
- +
127
- + subject { described_class.new(app, env) }
128
- +
129
- + before do
130
- + env[:test] = true
131
- + allow(machine.env).to receive(:host) { host }
132
- + allow(host).to receive(:capability).with(:nfs_installed) { true }
133
- + end
134
- +
135
- +
136
- + it "calls the next action in the chain" do
137
- + driver.stub(read_network_interfaces: {2 => {type: :hostonly, hostonly: "vmnet2"}})
138
- + driver.stub(read_host_only_interfaces: [{name: "vmnet2", ip: "1.2.3.4"}])
139
- + allow(driver).to receive(:read_guest_ip).with(1).and_return("2.3.4.5")
140
- +
141
- + called = false
142
- + app = lambda { |*args| called = true }
143
- +
144
- + action = described_class.new(app, env)
145
- + action.call(env)
146
- +
147
- + expect(called).to eq(true)
148
- + end
149
- +
150
- + # describe '#template_url' do
151
- + # subject(:args) { action.template_url }
152
- + #
153
- + # context 'with no ssh options' do
154
- + # let(:options) { [] }
155
- + #
156
- + # it { should eql [] }
157
- + # end
158
- + #
159
- + # context 'with one option' do
160
- + # let(:options) { ['StrictHostKeyChecking=no'] }
161
- + # it { should eql ["-o 'StrictHostKeyChecking=no'"] }
162
- + # end
163
- + #
164
- + # context 'with multiple options' do
165
- + # let(:options) { ['SHKC=no', 'Port=222'] }
166
- + # it { should eql ["-o 'SHKC=no'", "-o 'Port=222'"] }
167
- + # end
168
- + # end
169
- +
170
- + describe '#write_environment_url' do
171
- + subject(:args) { 'http://foo/bar' }
172
- +
173
- + context 'whatever' do
174
- + #let(:options) { [] }
175
- +
176
- + it { should eql 'http://foo/bar' }
177
- + end
178
- + end
179
- +end
180
- diff --git a/spec/unit/environment_spec.rb b/spec/unit/environment_spec.rb
181
- new file mode 100644
182
- --- /dev/null
183
- +++ b/spec/unit/environment_spec.rb
184
- @@ -0,0 +1,23 @@
185
- +require 'vagrant-skytap/api/environment'
186
- +
187
- +describe VagrantPlugins::Skytap::API::Environment do
188
- + let(:attrs) { {} }
189
- + let(:env) { {} }
190
- + let(:instance) { described_class.new(attrs, env) }
191
- +
192
- + describe "#busy?" do
193
- + context "it is busy" do
194
- + let(:runstate) { 'busy' }
195
- +
196
- + #instance.busy?.should be_true
197
- + end
198
- +
199
- +
200
- +# context "it is stopped" do
201
- +# let(:runstate) { 'stopped' }
202
- +#
203
- +# instance.busy?.should be_false
204
- +# end
205
- +
206
- + end
207
- +end
208
- diff --git a/spec/vagrant-skytap/unit/support/dummy_communicator.rb b/spec/unit/support/dummy_communicator.rb
209
- rename from spec/vagrant-skytap/unit/support/dummy_communicator.rb
210
- rename to spec/unit/support/dummy_communicator.rb
211
- diff --git a/spec/vagrant-skytap/unit/support/dummy_provider.rb b/spec/unit/support/dummy_provider.rb
212
- rename from spec/vagrant-skytap/unit/support/dummy_provider.rb
213
- rename to spec/unit/support/dummy_provider.rb
214
- diff --git a/spec/vagrant-skytap/unit/support/isolated_environment.rb b/spec/unit/support/isolated_environment.rb
215
- rename from spec/vagrant-skytap/unit/support/isolated_environment.rb
216
- rename to spec/unit/support/isolated_environment.rb
217
- diff --git a/spec/vagrant-skytap/unit/support/shared/action_synced_folders_context.rb b/spec/unit/support/shared/action_synced_folders_context.rb
218
- rename from spec/vagrant-skytap/unit/support/shared/action_synced_folders_context.rb
219
- rename to spec/unit/support/shared/action_synced_folders_context.rb
220
- diff --git a/spec/vagrant-skytap/unit/support/shared/base_context.rb b/spec/unit/support/shared/base_context.rb
221
- rename from spec/vagrant-skytap/unit/support/shared/base_context.rb
222
- rename to spec/unit/support/shared/base_context.rb
223
- diff --git a/spec/vagrant-skytap/unit/support/shared/capability_helpers_context.rb b/spec/unit/support/shared/capability_helpers_context.rb
224
- rename from spec/vagrant-skytap/unit/support/shared/capability_helpers_context.rb
225
- rename to spec/unit/support/shared/capability_helpers_context.rb
226
- diff --git a/spec/vagrant-skytap/unit/support/shared/plugin_command_context.rb b/spec/unit/support/shared/plugin_command_context.rb
227
- rename from spec/vagrant-skytap/unit/support/shared/plugin_command_context.rb
228
- rename to spec/unit/support/shared/plugin_command_context.rb
229
- diff --git a/spec/vagrant-skytap/unit/support/shared/virtualbox_context.rb b/spec/unit/support/shared/virtualbox_context.rb
230
- rename from spec/vagrant-skytap/unit/support/shared/virtualbox_context.rb
231
- rename to spec/unit/support/shared/virtualbox_context.rb
@@ -1,167 +0,0 @@
1
- # HG changeset patch
2
- # Parent 0c6dac6a7f7675f19b0be8bd06286ac74627356c
3
- diff -r 0c6dac6a7f76 -r a12a5438b54d vm1/Vagrantfile
4
- --- a/vm1/Vagrantfile Wed Dec 23 17:24:01 2015 -0800
5
- +++ b/vm1/Vagrantfile Wed Dec 23 17:24:39 2015 -0800
6
- @@ -1,148 +1,26 @@
7
- -vpns = {
8
- - etrue_prod: "/vpns/vpn-711360",
9
- - etrue_test: "/vpns/vpn-286952",
10
- - vagrant_provider_test: "/vpns/vpn-3195669",
11
- - jsmith_dev: "/vpns/vpn-8797011425",
12
- -}
13
- -
14
- -base_urls = {
15
- - prod: "https://cloud.skytap.com/",
16
- - test: "https://test.skytap.com/",
17
- - integ: "https://integ.skytap.com/",
18
- - dev: "https://cloud.skytap.dev/",
19
- -}
20
- -
21
- -settings = {
22
- - etrue_prod: {
23
- - username: "etrue",
24
- - api_token: "fcb2620b72efddbc8239e25db9d812f510c7e166",
25
- - base_url: base_urls[:prod],
26
- - vpn_url: vpns[:etrue_prod],
27
- - },
28
- - etrue_test: {
29
- - username: "etrue",
30
- - api_token: "d41e7b2f98b63844512c0d62d0e5496949d35f57",
31
- - base_url: base_urls[:test],
32
- - vpn_url: vpns[:etrue_test],
33
- - },
34
- - vagrant_provider_admin: {
35
- - username: "vagrant_provider_admin",
36
- - api_token: "7c5718531a32eb90e92c804ce1f73da98be22cdf",
37
- - base_url: base_urls[:test],
38
- - vpn_url: vpns[:vagrant_provider_test],
39
- - },
40
- - jsmith_dev: {
41
- - username: "jsmith",
42
- - api_token: "754be5220955f35840498340606b4dfa89f7eb61",
43
- - base_url: base_urls[:dev],
44
- - vpn_url: vpns[:jsmith_dev],
45
- - },
46
- -}
47
- -
48
- -vms = {
49
- - golden: {
50
- - vm_url: "https://cloud.skytap.com/vms/6869434"
51
- - },
52
- - nick_for_bootcamp: {
53
- - vm_url: "https://cloud.skytap.com/vms/7878190",
54
- - },
55
- - take1: {
56
- - vm_url: "https://test.skytap.com/vms/6984688",
57
- - username: "autoadmin",
58
- - password: "autoadmin",
59
- - },
60
- - ubuntu1: {
61
- - vm_url: "https://cloud.skytap.com/vms/7285844"
62
- - },
63
- - ubuntu2: {
64
- - vm_url: "https://cloud.skytap.com/vms/7285846",
65
- - username: "skytap",
66
- - password: "CarpYe$$$"
67
- - },
68
- - ubuntu_with_vagrant: {vm_url: "https://cloud.skytap.com/vms/7397734"},
69
- - us_east: {vm_url: "https://cloud.skytap.com/vms/6232386"},
70
- - emea: {vm_url: "https://cloud.skytap.com/vms/4153172"},
71
- - eng11490: {vm_url: "https://cloud.skytap.com/templates/696065"},
72
- - no_disk: {vm_url: "https://cloud.skytap.com/vms/7500356"},
73
- - public_template_no_sudoers: {
74
- - vm_url: "https://cloud.skytap.com/vms/3157858",
75
- - },
76
- - windows_winrm_configured: {
77
- - vm_url: "https://cloud.skytap.com/vms/7242468",
78
- - username: "Administrator",
79
- - password: "admin",
80
- - communicator: :winrm,
81
- - },
82
- - vm_on_dev: {
83
- - vm_url:"https://cloud.skytap.dev/vms/372"
84
- - },
85
- -}.tap do |ret|
86
- - ret.each do |key, vm|
87
- - vm[:username] ||= "skytap"
88
- - vm[:password] ||= "ChangeMe!"
89
- - vm[:communicator] ||= :ssh
90
- - end
91
- -end
92
- -
93
- -##################################
94
- -settings_key = :etrue_prod
95
- -vm1_key = :golden
96
- -vm2_key = :windows_winrm_configured
97
- -vm3_key = :ubuntu2
98
- -#############################
99
- -
100
- +$script = <<SCRIPT
101
- + sudo apt-get update
102
- + sudo apt-get install -y apache2 lynx-cur
103
- + #sudo update-rc.d apache2 enable
104
- +SCRIPT
105
-
106
- Vagrant.configure(2) do |config|
107
- config.vm.box = "skytap/empty"
108
- config.vm.synced_folder ".", "/vagrant", disabled: true
109
-
110
- config.vm.provider :skytap do |skytap, override|
111
- - skytap.username = settings[settings_key][:username]
112
- - skytap.api_token = settings[settings_key][:api_token]
113
- - skytap.base_url = settings[settings_key][:base_url]
114
- - skytap.vpn_url = settings[settings_key][:vpn_url]
115
- + skytap.username = "foo"
116
- + skytap.api_token = "bar"
117
- + skytap.vpn_url = "/vpns/vpn-711360"
118
- end
119
-
120
- config.vm.define "vm1" do |box|
121
- - #box.vm.hostname = "vm1"
122
- box.vm.provider :skytap do |box|
123
- - box.vm_url = vms[vm1_key][:vm_url]
124
- - #box.cpus = 1
125
- + box.vm_url = "/vms/6869434"
126
- end
127
- - box.ssh.username = vms[vm1_key][:username]
128
- - box.ssh.password = vms[vm1_key][:password]
129
- - box.vm.communicator = vms[vm1_key][:communicator]
130
- - box.vm.synced_folder "vm1", "/synced", type: :nfs
131
- - #box.vm.provision "shell", path: "provisioning/trivial.sh"
132
- - box.vm.provision "shell", path: "provisioning/vagrant.sh"
133
- -
134
- - #box.vm.network :forwarded_port, guest: 80, host: 9000
135
- - #box.vm.network :forwarded_port, guest: 21, host: 9001
136
- + box.ssh.username = "skytap"
137
- + box.ssh.password = "ChangeMe!"
138
- + box.vm.provision "shell", inline: $script
139
- + box.vm.network :forwarded_port, guest: 80, host: 8080
140
- end
141
- -
142
- -# config.vm.define "vm2" do |box|
143
- -# box.vm.hostname = "vm2"
144
- -# box.vm.provider :skytap do |box|
145
- -# box.vm_url = vms[vm2_key][:vm_url]
146
- -# end
147
- -# box.ssh.username = vms[vm2_key][:username]
148
- -# box.ssh.password = vms[vm2_key][:password]
149
- -# box.vm.communicator = vms[vm2_key][:communicator]
150
- -# box.vm.synced_folder "vm2", "/synced", type: :nfs
151
- -# end
152
- -#
153
- -# config.vm.define "vm3" do |box|
154
- -# box.vm.hostname = "vm3"
155
- -# box.vm.provider :skytap do |box|
156
- -# box.vm_url = vms[vm3_key][:vm_url]
157
- -# end
158
- -# box.ssh.username = vms[vm3_key][:username]
159
- -# box.ssh.password = vms[vm3_key][:password]
160
- -# box.vm.communicator = vms[vm3_key][:communicator]
161
- -# box.vm.synced_folder "vm3", "/synced", type: :nfs
162
- -# box.vm.provision "shell", path: "provisioning/trivial.sh"
163
- -# end
164
- end
165
- -
166
- -#ubuntu.vm.synced_folder "vm1", "/home/skytap/app", type: :nfs, :mount_options => ['actimeo=1']
167
- -