serverspec 2.0.0.beta9 → 2.0.0.beta10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec.rb +4 -8
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/spec/type/base/file_spec.rb +1 -1
- data/spec/type/solaris10/file_spec.rb +0 -10
- data/wercker.yml +24 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2255417730cf4c48dfb89e8f01fe44da49481cd7
|
4
|
+
data.tar.gz: 7986406330d3a62cafce615b7d8dbedf855189d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d2bf5e4cff1c49b37ba3840bf4eea20ffba32cd92fa72e3b8468b7e087009d5c633b6f9e40644b0d4a74153b1fc1b1562b0b9bab5936f4b75b5cc26647f6dc4
|
7
|
+
data.tar.gz: 7750404e08fe787eb0c88391df8a744183dcc9989166405f740dd63457ba7cd3995904c281dfffb59957706e264bc260024015880208d02c5a7c0210d117fb07
|
data/lib/serverspec.rb
CHANGED
@@ -12,23 +12,19 @@ require 'rspec/core/formatters/base_formatter'
|
|
12
12
|
|
13
13
|
module RSpec::Core::Notifications
|
14
14
|
class FailedExampleNotification < ExampleNotification
|
15
|
-
def
|
16
|
-
@
|
15
|
+
def failure_lines
|
16
|
+
@failure_lines ||=
|
17
17
|
begin
|
18
18
|
lines = ["Failure/Error: #{read_failed_line.strip}"]
|
19
19
|
lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
|
20
20
|
exception.message.to_s.split("\n").each do |line|
|
21
21
|
lines << " #{line}" if exception.message
|
22
|
+
end
|
22
23
|
lines << " #{example.metadata[:command]}"
|
23
24
|
lines << " #{example.metadata[:stdout]}" if example.metadata[:stdout]
|
24
25
|
lines << " #{example.metadata[:stderr]}" if example.metadata[:stderr]
|
26
|
+
lines
|
25
27
|
end
|
26
|
-
if shared_group
|
27
|
-
lines << "Shared Example Group: \"#{shared_group.metadata[:shared_group_name]}\"" +
|
28
|
-
" called from #{backtrace_formatter.backtrace_line(shared_group.location)}"
|
29
|
-
end
|
30
|
-
lines
|
31
|
-
end
|
32
28
|
end
|
33
29
|
end
|
34
30
|
end
|
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "rspec", "~> 3.0.0"
|
22
22
|
spec.add_runtime_dependency "rspec-its"
|
23
|
-
spec.add_runtime_dependency "specinfra", "~> 2.0.0.
|
23
|
+
spec.add_runtime_dependency "specinfra", "~> 2.0.0.beta8"
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
26
26
|
end
|
data/spec/type/base/file_spec.rb
CHANGED
@@ -372,16 +372,6 @@ EOF
|
|
372
372
|
its(:content) { should match /root:x:0:0/ }
|
373
373
|
end
|
374
374
|
|
375
|
-
describe file('/etc/passwd') do
|
376
|
-
let(:stdout) { Time.now.to_i.to_s }
|
377
|
-
its(:mtime) { should > DateTime.now.prev_day(1) }
|
378
|
-
end
|
379
|
-
|
380
|
-
describe file('/etc/passwod') do
|
381
|
-
let(:stdout) { 100.to_s }
|
382
|
-
its(:size) { should > 0 }
|
383
|
-
end
|
384
|
-
|
385
375
|
describe file('/etc/passwd') do
|
386
376
|
it 'be_immutable is not implemented in base class' do
|
387
377
|
expect {
|
data/wercker.yml
CHANGED
@@ -35,16 +35,28 @@ build:
|
|
35
35
|
code: rake spec:centos65
|
36
36
|
cwd: $WORKING_DIR
|
37
37
|
- script:
|
38
|
-
name: Run vagrant up
|
39
|
-
code: vagrant up
|
38
|
+
name: Run vagrant up centos70
|
39
|
+
code: vagrant up centos70 --provider=digital_ocean
|
40
40
|
cwd: $WORKING_DIR
|
41
41
|
- script:
|
42
|
-
name: Run vagrant reload
|
43
|
-
code: vagrant reload
|
42
|
+
name: Run vagrant reload centos70
|
43
|
+
code: vagrant reload centos70
|
44
44
|
cwd: $WORKING_DIR
|
45
45
|
- script:
|
46
|
-
name: Run rake spec:
|
47
|
-
code: rake spec:
|
46
|
+
name: Run rake spec:centos70
|
47
|
+
code: rake spec:centos70
|
48
|
+
cwd: $WORKING_DIR
|
49
|
+
- script:
|
50
|
+
name: Run vagrant up ubuntu1404
|
51
|
+
code: vagrant up ubuntu1404 --provider=digital_ocean
|
52
|
+
cwd: $WORKING_DIR
|
53
|
+
- script:
|
54
|
+
name: Run vagrant reload ubuntu1404
|
55
|
+
code: vagrant reload ubuntu1404
|
56
|
+
cwd: $WORKING_DIR
|
57
|
+
- script:
|
58
|
+
name: Run rake spec:ubuntu1404
|
59
|
+
code: rake spec:ubuntu1404
|
48
60
|
cwd: $WORKING_DIR
|
49
61
|
|
50
62
|
after-steps:
|
@@ -53,8 +65,12 @@ build:
|
|
53
65
|
code: vagrant destroy centos65 --force
|
54
66
|
cwd: $WORKING_DIR
|
55
67
|
- script:
|
56
|
-
name: Run vagrant destroy
|
57
|
-
code: vagrant destroy
|
68
|
+
name: Run vagrant destroy centos70
|
69
|
+
code: vagrant destroy centos70 --force
|
70
|
+
cwd: $WORKING_DIR
|
71
|
+
- script:
|
72
|
+
name: Run vagrant destroy ubuntu1404
|
73
|
+
code: vagrant destroy ubuntu1404 --force
|
58
74
|
cwd: $WORKING_DIR
|
59
75
|
- 1syo/idobata-notify@0.1.1:
|
60
76
|
token: $IDOBATA_TOKEN
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.beta10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.0.0.
|
47
|
+
version: 2.0.0.beta8
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.0.0.
|
54
|
+
version: 2.0.0.beta8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|