drntest 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/drntest/engine.rb +22 -3
- data/lib/drntest/response-normalizer.rb +1 -0
- data/lib/drntest/tester.rb +0 -9
- data/lib/drntest/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f726abaf99e69946e00326d0c793453418bab22
|
4
|
+
data.tar.gz: 06482427d09d7a13fc941195c563dcb53b1f0e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 275fd9a91d5049eee3c5b3c7008b7a81e12dd1f9cb7336dc10dc991ecb262e43782c43aefb3daf5e9a2bf5c7d2ac29180a159b2fc4bbcd3e4f88f2cb72940f0f
|
7
|
+
data.tar.gz: 54f655562fb16f1ecfad673864ab9c04dc833664100dee4e12d9825c4dbcc1741ab318ed4db1a7c0c26852e468a2e27fb0400e45b40f1f77d554305e5f98dbf1
|
data/lib/drntest/engine.rb
CHANGED
@@ -43,13 +43,32 @@ module Drntest
|
|
43
43
|
|
44
44
|
private
|
45
45
|
def prepare
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
return unless catalog_file.exist?
|
47
|
+
|
48
|
+
catalog_json = JSON.parse(catalog_file.read)
|
49
|
+
case catalog_json["version"]
|
50
|
+
when 1
|
51
|
+
zone = catalog_json["zones"].first
|
49
52
|
/\A([^:]+):(\d+)\/(.+)\z/ =~ zone
|
50
53
|
@config.host = "localhost" # $1
|
51
54
|
@config.port = $2.to_i
|
52
55
|
@config.tag = $3
|
56
|
+
when 2
|
57
|
+
catch do |tag|
|
58
|
+
datasets = catalog_json["datasets"]
|
59
|
+
datasets.each do |name, dataset|
|
60
|
+
dataset["replicas"].each do |replica|
|
61
|
+
replica["slices"].each do |slice|
|
62
|
+
if /\A([^:]+):(\d+)\/([^.]+)/ =~ slice["volume"]["address"]
|
63
|
+
@config.host = "localhost" # $1
|
64
|
+
@config.port = $2.to_i
|
65
|
+
@config.tag = $3
|
66
|
+
throw(tag)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
53
72
|
end
|
54
73
|
end
|
55
74
|
|
data/lib/drntest/tester.rb
CHANGED
@@ -52,15 +52,6 @@ module Drntest
|
|
52
52
|
test_suites_result.test_results << test_runner.run
|
53
53
|
end
|
54
54
|
|
55
|
-
puts
|
56
|
-
puts "==== Test Results ===="
|
57
|
-
test_suites_result.test_results.each do |result|
|
58
|
-
puts "%s: %s" % [
|
59
|
-
result.name,
|
60
|
-
result.status
|
61
|
-
]
|
62
|
-
end
|
63
|
-
|
64
55
|
puts
|
65
56
|
puts "==== Summary ===="
|
66
57
|
p test_suites_result.summary
|
data/lib/drntest/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2013 Droonga Project
|
1
|
+
# Copyright (C) 2013-2014 Droonga Project
|
2
2
|
#
|
3
3
|
# This program is free software: you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -14,5 +14,5 @@
|
|
14
14
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
15
15
|
|
16
16
|
module Drntest
|
17
|
-
VERSION = "1.1.
|
17
|
+
VERSION = "1.1.2"
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drntest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Droonga Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|