kitchen-vagrant 0.17.0.beta.3 → 0.17.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ad9a608e086a9198d09b3f11ff112b925c2b1f1
4
- data.tar.gz: 2c72bf47c1513c8e85ca0d96464702134275917e
3
+ metadata.gz: 4d52273cf0a7bb77124d8e8ca51b9f96355cfeb4
4
+ data.tar.gz: 4444fc53d2b3d18529742fa8d298d94abf9b83eb
5
5
  SHA512:
6
- metadata.gz: 9c3e8457a349aa2c1544f3ae4cb423a3f1194f1fa933493b156b964e3eca44349c00c67c76b6e519f838ac271618eca764e243ed759d600165aece74c6fa0a06
7
- data.tar.gz: 43f71f7c083f9d735f38a3c0c064f69b87f665b299d90315e38aaa2ae411b62636d2b46ac79f750bbcbd57421638c63f3d919ae22d49262a35521f3d363ac8e7
6
+ metadata.gz: 32daf604ce65340eef8167677a574fbb07b9ddd2b875ac422994a67a8b5edf304aaf70e793f21d54d01c3481ba4f732e12f1dd5c38ec576b93f7c0237ed69fdb
7
+ data.tar.gz: 1f6f22b60fd7cc265a0d2610765de163d3fd5550138909fc4eb88279e7bfc5202229ca2c3aaf75aa148d4fc8eac7a1d05fa5f3b71fe61198ae478dd0ff61d484
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
+ ## 0.17.0.beta.4 / 2015-03-26
2
+
3
+ ### Bug fixes
4
+
5
+ * Pull request [#156][]: Use RDPPort value from `vagrant winrm-config` for WinRM Transports. ([@fnichol][])
6
+
7
+ ### Improvements
8
+
9
+ * Pull request [#152][]: Translate CPU count for VMWare provider. ([@whiteley][])
10
+
11
+
1
12
  ## 0.17.0.beta.3 / 2015-03-25
2
13
 
14
+ ### Bug fixes
15
+
3
16
  * Pull request [#155][]: Use the vagrant-winrm Vagrant plugin to resolve VM IP address. See PR for details. ([@fnichol][])
4
17
 
5
18
 
@@ -256,8 +269,10 @@ The initial release.
256
269
  [#147]: https://github.com/test-kitchen/kitchen-vagrant/issues/147
257
270
  [#148]: https://github.com/test-kitchen/kitchen-vagrant/issues/148
258
271
  [#151]: https://github.com/test-kitchen/kitchen-vagrant/issues/151
272
+ [#152]: https://github.com/test-kitchen/kitchen-vagrant/issues/152
259
273
  [#154]: https://github.com/test-kitchen/kitchen-vagrant/issues/154
260
274
  [#155]: https://github.com/test-kitchen/kitchen-vagrant/issues/155
275
+ [#156]: https://github.com/test-kitchen/kitchen-vagrant/issues/156
261
276
  [@Annih]: https://github.com/Annih
262
277
  [@Igorshp]: https://github.com/Igorshp
263
278
  [@RobertRehberg]: https://github.com/RobertRehberg
@@ -293,3 +308,4 @@ The initial release.
293
308
  [@tknerr]: https://github.com/tknerr
294
309
  [@tmatilai]: https://github.com/tmatilai
295
310
  [@vinyar]: https://github.com/vinyar
311
+ [@whiteley]: https://github.com/whiteley
@@ -357,6 +357,7 @@ module Kitchen
357
357
  state[:password] = hash["Password"] if hash["Password"]
358
358
  state[:ssh_key] = hash["IdentityFile"] if hash["IdentityFile"]
359
359
  state[:proxy_command] = hash["ProxyCommand"] if hash["ProxyCommand"]
360
+ state[:rdp_port] = hash["RDPPort"] if hash["RDPPort"]
360
361
  end
361
362
 
362
363
  # @return [String] full local path to the directory containing the
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Vagrant Kitchen driver
24
- VAGRANT_VERSION = "0.17.0.beta.3"
24
+ VAGRANT_VERSION = "0.17.0.beta.4"
25
25
  end
26
26
  end
@@ -605,6 +605,7 @@ describe Kitchen::Driver::Vagrant do
605
605
  User vagrant
606
606
  Password yep
607
607
  Port 9999
608
+ RDPPort 5555
608
609
  OUTPUT
609
610
  end
610
611
 
@@ -637,6 +638,12 @@ describe Kitchen::Driver::Vagrant do
637
638
 
638
639
  expect(state).to include(:password => "yep")
639
640
  end
641
+
642
+ it "sets :rdp_port from winrm-config" do
643
+ cmd
644
+
645
+ expect(state).to include(:rdp_port => "5555")
646
+ end
640
647
  end
641
648
  end
642
649
 
@@ -1263,6 +1270,33 @@ describe Kitchen::Driver::Vagrant do
1263
1270
  end
1264
1271
  RUBY
1265
1272
  end
1273
+
1274
+ it "converts :cpus into :numvcpus" do
1275
+ config[:customize] = {
1276
+ :cpus => "2"
1277
+ }
1278
+ cmd
1279
+
1280
+ expect(vagrantfile).to match(regexify(<<-RUBY.gsub(/^ {8}/, "").chomp))
1281
+ c.vm.provider :vmware_desktop do |p|
1282
+ p.vmx["numvcpus"] = "2"
1283
+ end
1284
+ RUBY
1285
+ end
1286
+
1287
+ it "skips :cpus if key :numvcpus exists" do
1288
+ config[:customize] = {
1289
+ :cpus => "2",
1290
+ :numvcpus => "4"
1291
+ }
1292
+ cmd
1293
+
1294
+ expect(vagrantfile).to match(regexify(<<-RUBY.gsub(/^ {8}/, "").chomp))
1295
+ c.vm.provider :vmware_desktop do |p|
1296
+ p.vmx["numvcpus"] = "4"
1297
+ end
1298
+ RUBY
1299
+ end
1266
1300
  end
1267
1301
 
1268
1302
  context "for managed provider" do
@@ -96,6 +96,10 @@ Vagrant.configure("2") do |c|
96
96
  <% unless config[:customize].include?(:memsize) %>
97
97
  p.vmx["memsize"] = "<%= value %>"
98
98
  <% end %>
99
+ <% elsif key == :cpus %>
100
+ <% unless config[:customize].include?(:numvcpus) %>
101
+ p.vmx["numvcpus"] = "<%= value %>"
102
+ <% end %>
99
103
  <% else %>
100
104
  p.vmx["<%= key %>"] = "<%= value %>"
101
105
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0.beta.3
4
+ version: 0.17.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Nichol