serverspec-runner 0.2.4 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d66cd054c5793dc44643d11b0d9468b4d432a36
4
- data.tar.gz: f02858d27f072f9bfe645a70d1e4de3a61209703
3
+ metadata.gz: 68c72fe021abcd65f7eeaf2c3e7358f60996e1b7
4
+ data.tar.gz: b3a279120364765ac90986cd45a9dc4ced4b1e73
5
5
  SHA512:
6
- metadata.gz: e4aaf801fcdc918b5c126e1c5e91480ea69fbfa676063178a84a755460d8678fef14bba19d0efda0bcd7e435c9abfac62d825310112e18d77b46d264218bd96a
7
- data.tar.gz: 96479e8df165d0f9be88c9ea1a50c5390a137ed002f35701155ee027892ca163f18de6f31ab6bb053ff7453042437d5bb8abd698b981d7af7d1858bfb75dc3d2
6
+ metadata.gz: 765d25546b3ec15d885f52e8b26c9305062ef902f85bdc7fdfbf55181b8163162535c80cd6306bc4f26ba6341424f0932c97820c99339137d7acb5ea3046f8df
7
+ data.tar.gz: b464acd5ee5f29570c3cc672efb436c5b67e9e66f9004afd2e9eb44e15f6bc0eaba8ab7bec0102609a6202a3b8ae405e28f55210bfde4e1e04a94d22516f2bec
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.5
7
+ - 2.2.0
8
+
9
+ before_install:
10
+ - gem update bundler
11
+
12
+ script:
13
+ - bundle exec rake spec
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
@@ -1,3 +1,3 @@
1
1
  module ServerspecRunner
2
- VERSION = "0.2.4"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -1,28 +1,26 @@
1
- require "#{File.dirname(__FILE__)}/../spec_helper"
1
+ require 'spec_helper'
2
2
 
3
- describe package('httpd'), :if => os[:family] == 'redhat' do
4
- it { should be_installed }
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 package('apache2'), :if => os[:family] == 'ubuntu' do
8
- it { should be_installed }
9
+ describe group('root') do
10
+ it { should have_gid 0 }
9
11
  end
10
12
 
11
- describe service('httpd'), :if => os[:family] == 'redhat' do
12
- it { should be_enabled }
13
- it { should be_running }
13
+ describe 'Filesystem' do
14
+ describe file('/') do
15
+ it { should be_mounted }
16
+ end
14
17
  end
15
18
 
16
- describe service('apache2'), :if => os[:family] == 'ubuntu' do
17
- it { should be_enabled }
18
- it { should be_running }
19
+ describe host('www.google.com') do
20
+ it { should be_resolvable }
21
+ it { should be_reachable }
19
22
  end
20
23
 
21
- describe service('org.apache.httpd'), :if => os[:family] == 'darwin' do
22
- it { should be_enabled }
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
@@ -35,7 +35,7 @@ RSpec.configure do |c|
35
35
  end
36
36
  end
37
37
  sliced = run_path.slice((speck_i + 1)..(run_path.size - 2))
38
- role_name = sliced.join('-')
38
+ role_name = sliced.join('/')
39
39
 
40
40
  if ENV['ASK_SUDO_PASSWORD']
41
41
  require 'highline/import'
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.2.4
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: 2014-10-21 00:00:00.000000000 Z
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.2.2
127
+ rubygems_version: 2.4.2
127
128
  signing_key:
128
129
  specification_version: 4
129
130
  summary: simple execution framework for serverspec