kitchen-vagrant 0.17.0.beta.4 → 0.17.0.rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d52273cf0a7bb77124d8e8ca51b9f96355cfeb4
4
- data.tar.gz: 4444fc53d2b3d18529742fa8d298d94abf9b83eb
3
+ metadata.gz: 1856594a0bcba7597b09a38010397748e2fe570c
4
+ data.tar.gz: e0841b1cb73b4c6276f642a5f7fb52a26bb3a79e
5
5
  SHA512:
6
- metadata.gz: 32daf604ce65340eef8167677a574fbb07b9ddd2b875ac422994a67a8b5edf304aaf70e793f21d54d01c3481ba4f732e12f1dd5c38ec576b93f7c0237ed69fdb
7
- data.tar.gz: 1f6f22b60fd7cc265a0d2610765de163d3fd5550138909fc4eb88279e7bfc5202229ca2c3aaf75aa148d4fc8eac7a1d05fa5f3b71fe61198ae478dd0ff61d484
6
+ metadata.gz: c19853bcc9031db0a38ea7b8db0bb448e419b9182ec34bff34d0a70964743e9b416215ce46ec4e7438d0e8f246119853bc154b7dd581bec1a177c95c35a2f337
7
+ data.tar.gz: 96b82b51d0f62074a8293a301e97440215e445a77ea8af574b2229cfa0d659060b76a807096c778d6813f2b3e06ce0d9ae853e44ac6de70bed69dc5ec0e0797b
@@ -1,3 +1,11 @@
1
+ ## 0.17.0.rc.1 / 2015-03-29
2
+
3
+ ### Improvements
4
+
5
+ * Pull request [#157][]: Close Transport connection in #destroy. ([@fnichol][])
6
+ * Pull request [#158][]: Add plugin metadata to the Driver. ([@fnichol][])
7
+
8
+
1
9
  ## 0.17.0.beta.4 / 2015-03-26
2
10
 
3
11
  ### Bug fixes
@@ -273,6 +281,8 @@ The initial release.
273
281
  [#154]: https://github.com/test-kitchen/kitchen-vagrant/issues/154
274
282
  [#155]: https://github.com/test-kitchen/kitchen-vagrant/issues/155
275
283
  [#156]: https://github.com/test-kitchen/kitchen-vagrant/issues/156
284
+ [#157]: https://github.com/test-kitchen/kitchen-vagrant/issues/157
285
+ [#158]: https://github.com/test-kitchen/kitchen-vagrant/issues/158
276
286
  [@Annih]: https://github.com/Annih
277
287
  [@Igorshp]: https://github.com/Igorshp
278
288
  [@RobertRehberg]: https://github.com/RobertRehberg
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
20
20
  gem.require_paths = ["lib"]
21
21
 
22
- gem.add_dependency "test-kitchen", "~> 1.4.0.beta.1"
22
+ gem.add_dependency "test-kitchen", "~> 1.4.0.rc.1"
23
23
 
24
24
  gem.add_development_dependency "countloc", "~> 0.4"
25
25
  gem.add_development_dependency "rake"
@@ -21,6 +21,7 @@ require "fileutils"
21
21
  require "rubygems/version"
22
22
 
23
23
  require "kitchen"
24
+ require "kitchen/driver/vagrant_version"
24
25
 
25
26
  module Kitchen
26
27
 
@@ -33,6 +34,10 @@ module Kitchen
33
34
 
34
35
  include ShellOut
35
36
 
37
+ kitchen_driver_api_version 2
38
+
39
+ plugin_version Kitchen::Driver::VAGRANT_VERSION
40
+
36
41
  default_config(:box) { |driver| driver.default_box }
37
42
  required_config :box
38
43
 
@@ -117,6 +122,7 @@ module Kitchen
117
122
 
118
123
  create_vagrantfile
119
124
  @vagrantfile_created = false
125
+ instance.transport.connection(state).close
120
126
  run("vagrant destroy -f")
121
127
  FileUtils.rm_rf(vagrant_root)
122
128
  info("Vagrant instance #{instance.to_str} destroyed.")
@@ -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.4"
24
+ VAGRANT_VERSION = "0.17.0.rc.1"
25
25
  end
26
26
  end
@@ -68,6 +68,15 @@ describe Kitchen::Driver::Vagrant do
68
68
  driver_object.class.send(:vagrant_version=, nil)
69
69
  end
70
70
 
71
+ it "driver api_version is 2" do
72
+ expect(driver.diagnose_plugin[:api_version]).to eq(2)
73
+ end
74
+
75
+ it "plugin_version is set to Kitchen::Vagrant::VERSION" do
76
+ expect(driver.diagnose_plugin[:version]).to eq(
77
+ Kitchen::Driver::VAGRANT_VERSION)
78
+ end
79
+
71
80
  describe "configuration" do
72
81
 
73
82
  context "for known bento platform names" do
@@ -710,6 +719,14 @@ describe Kitchen::Driver::Vagrant do
710
719
  cmd
711
720
  end
712
721
 
722
+ it "closes the transport connection" do
723
+ connection = double(Kitchen::Transport::Base::Connection)
724
+ allow(transport).to receive(:connection).with(state) { connection }
725
+ expect(connection).to receive(:close)
726
+
727
+ cmd
728
+ end
729
+
713
730
  it "runs vagrant destroy" do
714
731
  expect(driver).to receive(:run_command).
715
732
  with("vagrant destroy -f", any_args)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0.beta.4
4
+ version: 0.17.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Nichol
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.0.beta.1
19
+ version: 1.4.0.rc.1
20
20
  type: :runtime
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.4.0.beta.1
26
+ version: 1.4.0.rc.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: countloc
29
29
  requirement: !ruby/object:Gem::Requirement