kitchen-vagrant 1.0.1 → 1.0.2
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/kitchen/driver/vagrant.rb +7 -4
- data/lib/kitchen/driver/vagrant_version.rb +1 -1
- data/spec/kitchen/driver/vagrant_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05ed2e3e9d5d34674af87a20b09ac774d3981d8e
|
|
4
|
+
data.tar.gz: 993f6bb3134feaeec34c4f24eebf315a6c79f93b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e460544290ba5a7f7487f7dcf3269d18a0c64703d551b0ec0e14b5392cc23343d6839914cd46d703dd17e4dd122eb199b497368b4144a50a5319ecc581f808e8
|
|
7
|
+
data.tar.gz: d0579858e6613e6141f327eb774dc4aecf738bde8bf375f6cc21b2241f5c59a3211eabbc825c299111fadfbc6f598b0b6d78ab08df22b655f604ca6a468f3a6d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## [v1.0.2](https://github.com/test-kitchen/kitchen-vagrant/tree/v1.0.2) (2017-02-13)
|
|
4
|
+
[Full Changelog](https://github.com/test-kitchen/kitchen-vagrant/compare/v1.0.1...v1.0.2)
|
|
5
|
+
|
|
6
|
+
**Fixed bugs:**
|
|
7
|
+
|
|
8
|
+
- Fixed a bug that can occur when `instance` returns `nil` [\#285](https://github.com/test-kitchen/kitchen-vagrant/pull/285) ([Kuniwak](https://github.com/Kuniwak))
|
|
9
|
+
|
|
1
10
|
## [v1.0.1](https://github.com/test-kitchen/kitchen-vagrant/tree/v1.0.1) (2017-02-10)
|
|
2
11
|
[Full Changelog](https://github.com/test-kitchen/kitchen-vagrant/compare/v1.0.0...v1.0.1)
|
|
3
12
|
|
|
@@ -469,10 +469,13 @@ module Kitchen
|
|
|
469
469
|
# instance's Vagrantfile
|
|
470
470
|
# @api private
|
|
471
471
|
def vagrant_root
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
472
|
+
if !@vagrant_root && !instance.nil?
|
|
473
|
+
@vagrant_root = File.join(
|
|
474
|
+
config[:kitchen_root], %w{.kitchen kitchen-vagrant},
|
|
475
|
+
"kitchen-#{File.basename(config[:kitchen_root])}-#{instance.name}"
|
|
476
|
+
)
|
|
477
|
+
end
|
|
478
|
+
@vagrant_root
|
|
476
479
|
end
|
|
477
480
|
|
|
478
481
|
# @param type [Symbol] either `:ssh` or `:winrm`
|
|
@@ -48,6 +48,10 @@ describe Kitchen::Driver::Vagrant do
|
|
|
48
48
|
d
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
let(:driver_with_no_instance) do
|
|
52
|
+
driver_object
|
|
53
|
+
end
|
|
54
|
+
|
|
51
55
|
let(:instance) do
|
|
52
56
|
Kitchen::Instance.new(
|
|
53
57
|
:verifier => verifier,
|
|
@@ -540,6 +544,12 @@ describe Kitchen::Driver::Vagrant do
|
|
|
540
544
|
driver.verify_dependencies
|
|
541
545
|
end
|
|
542
546
|
|
|
547
|
+
it "passes for supported versions of Vagrant when it has no instances" do
|
|
548
|
+
with_modern_vagrant
|
|
549
|
+
|
|
550
|
+
driver_with_no_instance.verify_dependencies
|
|
551
|
+
end
|
|
552
|
+
|
|
543
553
|
it "raises a UserError for unsupported versions of Vagrant" do
|
|
544
554
|
with_unsupported_vagrant
|
|
545
555
|
|
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: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fletcher Nichol
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|