vagrant-test 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # vagrant-test
2
2
 
3
- **vagrant-test** is a simple Vagrant plugin for running tests on your VMs.
3
+ **vagrant-test** is a simple Vagrant plugin for running integration tests on
4
+ your VMs. There are several similar projects related to testing Chef/Puppet
5
+ configurations, but to my knowledge, none of them provide a simple way to run
6
+ the typical "internal" tests as well as "external" tests (i.e. run from outside
7
+ the VM) in order to verify remote connectivity.
8
+
9
+ This project served as a way for me to learn how to write a Vagrant plugin, and
10
+ due to its extreme simplicity, it is also CM/test framework agnostic (a useful
11
+ feature, in my opinion).
4
12
 
5
13
  ## Installation
6
14
 
@@ -24,17 +32,17 @@ your Vagrantfile:
24
32
  </tr>
25
33
  <tr>
26
34
  <td>test.dir</td>
27
- <td>Directory where tests are located</td>
35
+ <td>Root directory for all tests</td>
28
36
  <td>"spec"</td>
29
37
  </tr>
30
38
  <tr>
31
39
  <td>test.internal_tests</td>
32
- <td>List of tests to be run from inside the VM</td>
40
+ <td>List of tests to be run by the VM</td>
33
41
  <td>[]</td>
34
42
  </tr>
35
43
  <tr>
36
44
  <td>test.external_tests</td>
37
- <td>List of tests to be run from the host against the VM</td>
45
+ <td>List of tests to be run by the host system against the VM</td>
38
46
  <td>[]</td>
39
47
  </tr>
40
48
  </table>
@@ -43,6 +51,38 @@ your Vagrantfile:
43
51
 
44
52
  vagrant test [vm-name]
45
53
 
46
- ## Authors
54
+ ## Change Log
55
+
56
+ ### 0.1.1 (2012-03-02)
57
+
58
+ * Fix bug when multiple test files are specified
59
+
60
+ ### 0.1.0 (2012-02-29)
61
+
62
+ * Initial public release
63
+
64
+ ## License
65
+
66
+ Copyright (C) 2012 Michael Paul Thomas Conigliaro
67
+
68
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
69
+ this software and associated documentation files (the "Software"), to deal in
70
+ the Software without restriction, including without limitation the rights to
71
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
72
+ of the Software, and to permit persons to whom the Software is furnished to do
73
+ so, subject to the following conditions:
74
+
75
+ The above copyright notice and this permission notice shall be included in all
76
+ copies or substantial portions of the Software.
77
+
78
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
84
+ SOFTWARE.
85
+
86
+ ## Credits
47
87
 
48
- * Michael Paul Thomas Conigliaro <mike [at] conigliaro [dot] org>
88
+ * [Michael Paul Thomas Conigliaro](http://conigliaro.org): Original author
@@ -22,9 +22,9 @@ module VagrantTest
22
22
  unless vm.config.test.internal_tests.empty?
23
23
  internal_tests = vm.config.test.internal_tests.map { |obj|
24
24
  File.join(V_ROOT, vm.config.test.dir, obj)
25
- }.join(", ")
26
- vm.ui.info("Running internal test(s): #{internal_tests}")
27
- vm.channel.sudo("#{vm.config.test.command} #{internal_tests}") do |type,data|
25
+ }
26
+ vm.ui.info("Running internal test(s): #{internal_tests.join(", ")}")
27
+ vm.channel.sudo("#{vm.config.test.command} #{internal_tests.join(" ")}") do |type,data|
28
28
  print data if type == :stdout
29
29
  end
30
30
  end
@@ -32,9 +32,9 @@ module VagrantTest
32
32
  unless vm.config.test.external_tests.empty?
33
33
  external_tests = vm.config.test.external_tests.map { |obj|
34
34
  File.join(vm.config.test.dir, obj)
35
- }.join(", ")
36
- vm.ui.info("Running external test(s): #{external_tests}")
37
- system("#{vm.config.test.command} #{external_tests}")
35
+ }
36
+ vm.ui.info("Running external test(s): #{external_tests.join(", ")}")
37
+ system("#{vm.config.test.command} #{external_tests.join(" ")}")
38
38
  end
39
39
  end
40
40
  end
data/lib/vagrant-test.rb CHANGED
@@ -5,7 +5,7 @@ require "vagrant-test/command"
5
5
  module VagrantTest
6
6
 
7
7
  NAME = "vagrant-test"
8
- VERSION = "0.1.0"
8
+ VERSION = "0.1.1"
9
9
  AUTHOR = "Michael Paul Thomas Conigliaro"
10
10
  AUTHOR_EMAIL = "mike [at] conigliaro [dot] org"
11
11
  DESCRIPTION = "vagrant-test is a simple Vagrant plugin for running tests on your VMs."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-29 00:00:00.000000000 Z
12
+ date: 2012-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: vagrant
16
- requirement: &2154978080 !ruby/object:Gem::Requirement
16
+ requirement: &2156110600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154978080
24
+ version_requirements: *2156110600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2154977580 !ruby/object:Gem::Requirement
27
+ requirement: &2156110200 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,15 +32,13 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2154977580
35
+ version_requirements: *2156110200
36
36
  description: vagrant-test is a simple Vagrant plugin for running tests on your VMs.
37
37
  email: mike [at] conigliaro [dot] org
38
38
  executables: []
39
39
  extensions: []
40
40
  extra_rdoc_files: []
41
41
  files:
42
- - CHANGELOG.md
43
- - LICENSE
44
42
  - README.md
45
43
  - lib/vagrant-test/command.rb
46
44
  - lib/vagrant-test/config.rb
@@ -66,9 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
64
  version: '0'
67
65
  requirements: []
68
66
  rubyforge_project: vagrant-test
69
- rubygems_version: 1.8.15
67
+ rubygems_version: 1.8.17
70
68
  signing_key:
71
69
  specification_version: 3
72
70
  summary: vagrant-test is a simple Vagrant plugin for running tests on your VMs.
73
71
  test_files: []
74
- has_rdoc:
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # Change Log
2
-
3
- ## 0.1.0 (2012-02-29)
4
-
5
- * Initial public release
data/LICENSE DELETED
@@ -1,19 +0,0 @@
1
- Copyright (C) 2012 Michael Paul Thomas Conigliaro
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in
5
- the Software without restriction, including without limitation the rights to
6
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
- of the Software, and to permit persons to whom the Software is furnished to do
8
- so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.