pdqtest 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pdqtest/core.rb +1 -0
- data/lib/pdqtest/instance.rb +3 -3
- data/lib/pdqtest/puppet.rb +6 -15
- data/lib/pdqtest/version.rb +1 -1
- data/pdqtest.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b8722143994aa68d8e6a2747820f0521e1f746c
|
4
|
+
data.tar.gz: fa7de04fd3f9f52cfdf86be60f7467d449155d75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e6f49f353b7d98b8537cce2e9628b8deb4068d2797ec0482c5c347d77cfa61fd27d630cbc8ad0392c7d29f146f69687473dc5cfce33a93e037080639f6f641b
|
7
|
+
data.tar.gz: 22a57375ea54a370a362f8f90996342e5dffd64184966858f17bc1dba0e2890dd1cec6eb73b478bb3eca4cde95cfe40c5ef5a179d582a01d8a72ac4e09a01917
|
data/lib/pdqtest/core.rb
CHANGED
data/lib/pdqtest/instance.rb
CHANGED
@@ -23,8 +23,8 @@ module PDQTest
|
|
23
23
|
|
24
24
|
def self.run(example=nil)
|
25
25
|
# needed to prevent timeouts from container.exec()
|
26
|
-
Excon.defaults[:write_timeout] =
|
27
|
-
Excon.defaults[:read_timeout] =
|
26
|
+
Excon.defaults[:write_timeout] = 10000
|
27
|
+
Excon.defaults[:read_timeout] = 10000
|
28
28
|
|
29
29
|
@@active_container = PDQTest::Docker::new_container(TEST_DIR)
|
30
30
|
Escort::Logger.output.puts "alive, running tests"
|
@@ -37,7 +37,7 @@ module PDQTest
|
|
37
37
|
PDQTest::Docker.cleanup_container(@@active_container)
|
38
38
|
@@active_container = nil
|
39
39
|
end
|
40
|
-
|
40
|
+
Escort::Logger.output.puts "...finished status=#{status}"
|
41
41
|
status
|
42
42
|
end
|
43
43
|
|
data/lib/pdqtest/puppet.rb
CHANGED
@@ -161,21 +161,12 @@ module PDQTest
|
|
161
161
|
status &= run_example(container, example)
|
162
162
|
else
|
163
163
|
find_examples.each { |e|
|
164
|
-
status
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
# status &= bats_test(container, e, BEFORE_SUFFIX)
|
171
|
-
#
|
172
|
-
# # run puppet apply
|
173
|
-
# res = PDQTest::Docker.exec(container, puppet_apply(e))
|
174
|
-
# status &= PDQTest::Docker.exec_status(res, true)
|
175
|
-
# Escort::Logger.output.puts res
|
176
|
-
#
|
177
|
-
# # see if we should run a bats test after running puppet
|
178
|
-
# status &= bats_test(container, e, AFTER_SUFFIX)
|
164
|
+
if status
|
165
|
+
status &= run_example(container, e)
|
166
|
+
if ! status
|
167
|
+
Escort::Logger.error.error "Example #{e} failed! - skipping rest of tests"
|
168
|
+
end
|
169
|
+
end
|
179
170
|
}
|
180
171
|
end
|
181
172
|
status
|
data/lib/pdqtest/version.rb
CHANGED
data/pdqtest.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_development_dependency "bundler", "1.14.3"
|
25
|
+
spec.add_development_dependency "bundler", ">= 1.14.3"
|
26
26
|
spec.add_development_dependency "rake", "12.0.0"
|
27
27
|
spec.add_development_dependency "rspec", "3.5.0"
|
28
28
|
spec.add_development_dependency "simplecov", "0.12.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdqtest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoff Williams
|
@@ -14,14 +14,14 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.14.3
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.14.3
|
27
27
|
- !ruby/object:Gem::Dependency
|