rspec-system-serverspec 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.nodeset.yml +31 -0
- data/CHANGEFILE +5 -0
- data/Gemfile +10 -0
- data/Rakefile +6 -0
- data/rspec-system-serverspec.gemspec +2 -2
- data/spec/spec_helper_system.rb +11 -0
- data/spec/system/00_basic_spec.rb +13 -0
- metadata +12 -5
data/.gitignore
ADDED
data/.nodeset.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
default_set: 'centos-64-x64'
|
3
|
+
sets:
|
4
|
+
'centos-59-x64':
|
5
|
+
nodes:
|
6
|
+
"main.foo.vm":
|
7
|
+
prefab: 'centos-59-x64'
|
8
|
+
'centos-64-x64':
|
9
|
+
nodes:
|
10
|
+
"main.foo.vm":
|
11
|
+
prefab: 'centos-64-x64'
|
12
|
+
'fedora-18-x64':
|
13
|
+
nodes:
|
14
|
+
"main.foo.vm":
|
15
|
+
prefab: 'fedora-18-x64'
|
16
|
+
'debian-607-x64':
|
17
|
+
nodes:
|
18
|
+
"main.foo.vm":
|
19
|
+
prefab: 'debian-607-x64'
|
20
|
+
'debian-70rc1-x64':
|
21
|
+
nodes:
|
22
|
+
"main.foo.vm":
|
23
|
+
prefab: 'debian-70rc1-x64'
|
24
|
+
'ubuntu-server-10044-x64':
|
25
|
+
nodes:
|
26
|
+
"main.foo.vm":
|
27
|
+
prefab: 'ubuntu-server-10044-x64'
|
28
|
+
'ubuntu-server-12042-x64':
|
29
|
+
nodes:
|
30
|
+
"main.foo.vm":
|
31
|
+
prefab: 'ubuntu-server-12042-x64'
|
data/CHANGEFILE
ADDED
data/Gemfile
CHANGED
data/Rakefile
ADDED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
# Metadata
|
4
4
|
s.name = 'rspec-system-serverspec'
|
5
|
-
s.version = '1.0.
|
5
|
+
s.version = '1.0.1'
|
6
6
|
s.authors = ['Hunter Haugen']
|
7
7
|
s.email = ['h.haugen@gmail.com']
|
8
8
|
s.summary = 'Serverspec rspec-system plugin'
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
# Dependencies
|
20
20
|
s.required_ruby_version = '>= 1.8.7'
|
21
21
|
s.add_runtime_dependency 'rspec-system', '~> 2.0'
|
22
|
-
s.add_runtime_dependency 'serverspec', '~> 0.
|
22
|
+
s.add_runtime_dependency 'serverspec', '~> 0.0'
|
23
23
|
s.add_development_dependency "bundler", "~> 1.3"
|
24
24
|
s.add_development_dependency "rake"
|
25
25
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'rspec-system/spec_helper'
|
2
|
+
require 'rspec-system-serverspec/helpers'
|
3
|
+
|
4
|
+
include Serverspec::Helper::RSpecSystem
|
5
|
+
include Serverspec::Helper::DetectOS
|
6
|
+
|
7
|
+
RSpec.configure do |c|
|
8
|
+
c.before :suite do
|
9
|
+
shell 'echo foobar > /tmp/setupblock'
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper_system'
|
2
|
+
|
3
|
+
describe "basic tests:" do
|
4
|
+
describe file('/tmp/setupblock'), :node => node do
|
5
|
+
it { should be_file }
|
6
|
+
it { should contain 'foobar' }
|
7
|
+
end
|
8
|
+
|
9
|
+
describe user('root') do
|
10
|
+
it { should exist }
|
11
|
+
it { should have_uid 0 }
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-system-serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-system
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.
|
37
|
+
version: '0.0'
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
45
|
+
version: '0.0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: bundler
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -83,14 +83,20 @@ executables: []
|
|
83
83
|
extensions: []
|
84
84
|
extra_rdoc_files: []
|
85
85
|
files:
|
86
|
+
- .gitignore
|
87
|
+
- .nodeset.yml
|
88
|
+
- CHANGEFILE
|
86
89
|
- Gemfile
|
87
90
|
- LICENSE
|
88
91
|
- README.md
|
92
|
+
- Rakefile
|
89
93
|
- lib/rspec-system-serverspec.rb
|
90
94
|
- lib/rspec-system-serverspec/backend/rspec_system.rb
|
91
95
|
- lib/rspec-system-serverspec/helper/rspec_system.rb
|
92
96
|
- lib/rspec-system-serverspec/helpers.rb
|
93
97
|
- rspec-system-serverspec.gemspec
|
98
|
+
- spec/spec_helper_system.rb
|
99
|
+
- spec/system/00_basic_spec.rb
|
94
100
|
homepage: https://github.com/puppetlabs/rspec-system-serverspec
|
95
101
|
licenses:
|
96
102
|
- Apache2
|
@@ -116,5 +122,6 @@ rubygems_version: 1.8.23
|
|
116
122
|
signing_key:
|
117
123
|
specification_version: 3
|
118
124
|
summary: Serverspec rspec-system plugin
|
119
|
-
test_files:
|
125
|
+
test_files:
|
126
|
+
- spec/system/00_basic_spec.rb
|
120
127
|
has_rdoc:
|