serverspec-runner 0.2.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -0
- data/README.md +3 -1
- data/lib/serverspec-runner/version.rb +1 -1
- data/spec/example/default.rb +16 -18
- data/spec/spec_helper.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c72fe021abcd65f7eeaf2c3e7358f60996e1b7
|
4
|
+
data.tar.gz: b3a279120364765ac90986cd45a9dc4ced4b1e73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 765d25546b3ec15d885f52e8b26c9305062ef902f85bdc7fdfbf55181b8163162535c80cd6306bc4f26ba6341424f0932c97820c99339137d7acb5ea3046f8df
|
7
|
+
data.tar.gz: b464acd5ee5f29570c3cc672efb436c5b67e9e66f9004afd2e9eb44e15f6bc0eaba8ab7bec0102609a6202a3b8ae405e28f55210bfde4e1e04a94d22516f2bec
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
serverspec-runner
|
1
|
+
serverspec-runner [![Gem Version](https://badge.fury.io/rb/serverspec-runner.svg)](http://badge.fury.io/rb/serverspec-runner) [![BuildStatus](https://secure.travis-ci.org/hiracy/serverspec-runner.png)](http://travis-ci.org/hiracy/serverspec-runner)
|
2
2
|
======================
|
3
3
|
|
4
4
|
Simple execution framework for [serverspec](http://serverspec.org/).
|
@@ -58,6 +58,8 @@ You can also specify [ssh_options.yml](http://net-ssh.github.io/net-ssh/classes/
|
|
58
58
|
For example. You write serverspec code like this.
|
59
59
|
|
60
60
|
```
|
61
|
+
require 'spec_helper'
|
62
|
+
|
61
63
|
describe "nginx" do
|
62
64
|
|
63
65
|
describe "check running" do
|
data/spec/example/default.rb
CHANGED
@@ -1,28 +1,26 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
4
|
-
it { should
|
3
|
+
describe user('root') do
|
4
|
+
it { should exist }
|
5
|
+
it { should have_uid 0 }
|
6
|
+
it { should have_home_directory '/root' }
|
5
7
|
end
|
6
8
|
|
7
|
-
describe
|
8
|
-
it { should
|
9
|
+
describe group('root') do
|
10
|
+
it { should have_gid 0 }
|
9
11
|
end
|
10
12
|
|
11
|
-
describe
|
12
|
-
|
13
|
-
|
13
|
+
describe 'Filesystem' do
|
14
|
+
describe file('/') do
|
15
|
+
it { should be_mounted }
|
16
|
+
end
|
14
17
|
end
|
15
18
|
|
16
|
-
describe
|
17
|
-
it { should
|
18
|
-
it { should
|
19
|
+
describe host('www.google.com') do
|
20
|
+
it { should be_resolvable }
|
21
|
+
it { should be_reachable }
|
19
22
|
end
|
20
23
|
|
21
|
-
describe
|
22
|
-
|
23
|
-
it { should be_running }
|
24
|
-
end
|
25
|
-
|
26
|
-
describe port(80) do
|
27
|
-
it { should be_listening }
|
24
|
+
describe command('dmesg | grep "FAIL\|Fail\|fail\|ERROR\|Error\|error"') do
|
25
|
+
its(:exit_status){ should_not eq 0 }
|
28
26
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hiracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverspec
|
@@ -90,6 +90,7 @@ extra_rdoc_files: []
|
|
90
90
|
files:
|
91
91
|
- ".gitignore"
|
92
92
|
- ".rspec"
|
93
|
+
- ".travis.yml"
|
93
94
|
- Gemfile
|
94
95
|
- LICENSE
|
95
96
|
- README.md
|
@@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
124
|
version: '0'
|
124
125
|
requirements: []
|
125
126
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.4.2
|
127
128
|
signing_key:
|
128
129
|
specification_version: 4
|
129
130
|
summary: simple execution framework for serverspec
|