vagrant-serverspec 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- data/lib/vagrant-serverspec/provisioner.rb +13 -0
- data/lib/vagrant-serverspec/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba6180c0b237a150fe5d84c5a406e3942e25873
|
4
|
+
data.tar.gz: a8074fa8d60e2f7802585d5b1a4f6e3d8a30e32e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5053db2589ec5454e372f0c92b4e4efd5b6f30828101de0254f6f4d41881c8a7e8acc79e2ea7fab62bb3599a79fb00d190e4f92db5bff2d65c66c7ae0e3e2b1
|
7
|
+
data.tar.gz: 6ac597a7709d06f7c65faa3318c34934d70960f563e4d5bae85a15604e3bc72918a704e1ddd0a7d4e7a844f156171f2db7c3ee2e032af8105569c64db6b3a114
|
data/README.md
CHANGED
@@ -80,6 +80,28 @@ end
|
|
80
80
|
##Testing Docker Containers on OSX
|
81
81
|
On OSX the Vagrant docker provider runs a Boot2Docker VM, then launches your docker container on that VM. Vagrant does SSH Proxying to send the commands through that VM and have them reach the Docker Container. Vagrant serverspec handles this the same way by getting the container host VM infromation and proxying the commands to the machine through an SSH Proxy. This functionality was introduced in this [PR](https://github.com/jvoorhis/vagrant-serverspec/pull/17)
|
82
82
|
|
83
|
+
## Additional informations
|
84
|
+
|
85
|
+
### SSH connections
|
86
|
+
|
87
|
+
SSH connection is closed before each provision run.
|
88
|
+
This is mandatory if the provision is applied to multiple vms in the same run,
|
89
|
+
else all runs will be applied to the first vm (See #22) due to an SSH
|
90
|
+
connection which already exists.
|
91
|
+
This functionality was introduced in this [PR](https://github.com/jvoorhis/vagrant-serverspec/pull/23)
|
92
|
+
|
93
|
+
### Server spec examples
|
94
|
+
|
95
|
+
RSpec examples are clear before each provision run.
|
96
|
+
This is mandatory if the provision is applied to multiple vms in the same run,
|
97
|
+
else each run replay examples of previous calls also.
|
98
|
+
This functionality was introduced in this [PR](https://github.com/jvoorhis/vagrant-serverspec/pull/23)
|
99
|
+
|
100
|
+
### In case of shared examples
|
101
|
+
|
102
|
+
If you use shared examples into your test suite, you need to use 'load' instead
|
103
|
+
of 'require', else errors can occurs (See #23 comments).
|
104
|
+
|
83
105
|
## Versioning
|
84
106
|
|
85
107
|
vagrant-serverspec aims to adhere to [Semantic Versioning 2.0.0][semver].
|
@@ -25,6 +25,15 @@ module VagrantPlugins
|
|
25
25
|
else
|
26
26
|
set :backend, :ssh
|
27
27
|
|
28
|
+
# Close the existing ssh connection if it exists.
|
29
|
+
# Else, the existing connection will always used between different
|
30
|
+
# serverspec provisions using the same process and can connect to a
|
31
|
+
# previous host
|
32
|
+
if Specinfra::Backend::Ssh.instance.get_config(:ssh)
|
33
|
+
Specinfra::Backend::Ssh.instance.get_config(:ssh).close
|
34
|
+
Specinfra::Backend::Ssh.instance.set_config(:ssh, nil)
|
35
|
+
end
|
36
|
+
|
28
37
|
if ENV['ASK_SUDO_PASSWORD']
|
29
38
|
begin
|
30
39
|
require 'highline/import'
|
@@ -50,6 +59,10 @@ module VagrantPlugins
|
|
50
59
|
set :ssh_options, options
|
51
60
|
end
|
52
61
|
|
62
|
+
# Always clean examples to not have duplicates between runs using the
|
63
|
+
# same process
|
64
|
+
RSpec.clear_examples
|
65
|
+
|
53
66
|
status = RSpec::Core::Runner.run(@spec_files)
|
54
67
|
|
55
68
|
raise Vagrant::Errors::ServerSpecFailed if status != 0
|
metadata
CHANGED
@@ -1,107 +1,107 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Voorhis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.7'
|
20
|
-
- -
|
20
|
+
- - '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.7.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.7'
|
30
|
-
- -
|
30
|
+
- - '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.7.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: winrm
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.1'
|
40
|
-
- -
|
40
|
+
- - '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.1.0
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '1.1'
|
50
|
-
- -
|
50
|
+
- - '>='
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.1.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: os
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - ~>
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: 0.9.6
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ~>
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 0.9.6
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: bundler
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- -
|
71
|
+
- - ~>
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '1.6'
|
74
|
-
- -
|
74
|
+
- - '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.6.2
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '1.6'
|
84
|
-
- -
|
84
|
+
- - '>='
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 1.6.2
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: rake
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '10.3'
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 10.3.2
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '10.3'
|
104
|
-
- -
|
104
|
+
- - '>='
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: 10.3.2
|
107
107
|
description: vagrant-serverspec is a Vagrant plugin that integrates serverspec into
|
@@ -112,7 +112,7 @@ executables: []
|
|
112
112
|
extensions: []
|
113
113
|
extra_rdoc_files: []
|
114
114
|
files:
|
115
|
-
-
|
115
|
+
- .gitignore
|
116
116
|
- Gemfile
|
117
117
|
- LICENSE
|
118
118
|
- README.md
|
@@ -149,17 +149,17 @@ require_paths:
|
|
149
149
|
- lib
|
150
150
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - '>='
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - '>='
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.0.14
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: A Vagrant plugin that executes serverspec
|