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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f0c4f555d0cc11c25391095c1ac87beab6ae874
4
- data.tar.gz: b2749f23776b90b3d89ea59a603279e522717c9d
3
+ metadata.gz: 2b8722143994aa68d8e6a2747820f0521e1f746c
4
+ data.tar.gz: fa7de04fd3f9f52cfdf86be60f7467d449155d75
5
5
  SHA512:
6
- metadata.gz: f36d80f5461079bf2e8758b1a04f3f3f07c2e9f4fbc1fe18cf64fe6a9c16ee299687879b322b6ae4816783175b263794fc5ca7649bb942c89e738dd0c1a1f037
7
- data.tar.gz: 38a5e9d7d174565ac2d2a2e82b73f60a2a00cbff4b3a9a5fc49a7a41927ca01c94c6a6414391998900dc7c94044a06a94f37050dc084a2e07065aab415ed4c6e
6
+ metadata.gz: 5e6f49f353b7d98b8537cce2e9628b8deb4068d2797ec0482c5c347d77cfa61fd27d630cbc8ad0392c7d29f146f69687473dc5cfce33a93e037080639f6f641b
7
+ data.tar.gz: 22a57375ea54a370a362f8f90996342e5dffd64184966858f17bc1dba0e2890dd1cec6eb73b478bb3eca4cde95cfe40c5ef5a179d582a01d8a72ac4e09a01917
data/lib/pdqtest/core.rb CHANGED
@@ -6,6 +6,7 @@ module PDQTest
6
6
  functions = Array(functions)
7
7
  functions.each { |f|
8
8
  if ! f.call
9
+ Escort::Logger.error.error "Error encountered running #{f.to_s}"
9
10
  abort("ABORTED - there are test failures! :(")
10
11
  end
11
12
  }
@@ -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] = 1000
27
- Excon.defaults[:read_timeout] = 1000
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
 
@@ -161,21 +161,12 @@ module PDQTest
161
161
  status &= run_example(container, example)
162
162
  else
163
163
  find_examples.each { |e|
164
- status &= run_example(container, e)
165
- # Escort::Logger.output.puts "testing #{e} #{status}"
166
- #
167
- # status &= setup_test(container, e)
168
- #
169
- # # see if we should run a bats test before running puppet
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
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
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.10
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