lopata 0.1.18 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lopata/condition.rb +7 -1
- data/lib/lopata/observers/web_logger.rb +4 -0
- data/lib/lopata/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e55390905dd755e2f414e1164e0164ede72e4a11acd368ed6ff6971a7b69e34
|
4
|
+
data.tar.gz: d4aa229e3bba5a2ac1875546b7ffe75b684a89ed4e1e08e1769f501a81989ce1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea02b4920bc2534dc361aff03a6d277526f5aa53a51d15ba219e3ca6ee8877771b9fb185146172c67c9744afa18414baa6565e55ac5b213db00eb1fdf8884db
|
7
|
+
data.tar.gz: 6c546d9eed8857a1e852e00b64d6a99c65b744862d914bc51fe8bdd14b81b2f7abe80f2c23217d38b83748068731f7eabaacc5ae2eb4b29354845904772e1177
|
data/lib/lopata/condition.rb
CHANGED
@@ -17,7 +17,13 @@ module Lopata
|
|
17
17
|
metadata = scenario.metadata
|
18
18
|
case condition
|
19
19
|
when Hash
|
20
|
-
condition.keys.all?
|
20
|
+
condition.keys.all? do |k|
|
21
|
+
if condition[k].is_a? Array
|
22
|
+
condition[k].include?(metadata[k])
|
23
|
+
else
|
24
|
+
metadata[k] == condition[k]
|
25
|
+
end
|
26
|
+
end
|
21
27
|
when Array
|
22
28
|
condition.map { |key| metadata[key] }.all?
|
23
29
|
when TrueClass, FalseClass
|
@@ -52,6 +52,10 @@ module Lopata
|
|
52
52
|
request = { status: status, steps: steps, launch: { id: @launch_id, finished: finished } }
|
53
53
|
test = test_id(scenario)
|
54
54
|
post("/tests/#{test}/attempts.json", body: request)
|
55
|
+
rescue SocketError => e
|
56
|
+
# Ignore network problems. Continue with next scenario when cannot log results.
|
57
|
+
puts e.message
|
58
|
+
puts e.backtrace
|
55
59
|
end
|
56
60
|
|
57
61
|
def step_hash(step)
|
data/lib/lopata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lopata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Volochnev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -138,5 +138,5 @@ requirements: []
|
|
138
138
|
rubygems_version: 3.2.15
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
|
-
summary: lopata-0.1.
|
141
|
+
summary: lopata-0.1.20
|
142
142
|
test_files: []
|