hawkular-client 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.rdoc +3 -0
- data/lib/hawkularclient.rb +1 -0
- data/lib/metrics/version.rb +1 -1
- data/spec/integration/metric_spec.rb +18 -0
- 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: c23ea869e11663cc37756be45e49485350ecc024
|
4
|
+
data.tar.gz: 1e236ca10f3b38f3c564bd1578dffa86dfe7b707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a285669dc4d93f4960c5ffddc54b8636a792022c191b571723442acd905300288807342accd267fbaab701461942e070365fd2a4611dae52165a377c52a44e0e
|
7
|
+
data.tar.gz: ab8cec50610495c531c5e99c987a88df56cc36b71c1b02eb4922b533c347de364343e97faf410e1c56895d3f778e9a8a8e547eae05892f243d979a7418e50b6d
|
data/CHANGES.rdoc
CHANGED
data/lib/hawkularclient.rb
CHANGED
data/lib/metrics/version.rb
CHANGED
@@ -77,6 +77,24 @@ describe 'Tenants', vcr: { match_requests_on: [:uri, :method], record: :none } d
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
+
describe 'No_Tenant' do
|
81
|
+
it 'Should fail' do
|
82
|
+
id = SecureRandom.uuid
|
83
|
+
|
84
|
+
VCR.use_cassette('No_Tenant/Should fail', erb: { id: id }, record: :none) do
|
85
|
+
setup_client
|
86
|
+
|
87
|
+
begin
|
88
|
+
@client.counters.push_data(id, value: 4)
|
89
|
+
rescue # rubocop:disable Lint/HandleExceptions
|
90
|
+
# This is good
|
91
|
+
else
|
92
|
+
fail 'The call should have failed due to missing tenant'
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
80
98
|
describe 'Mixed metrics' do
|
81
99
|
before(:all) do
|
82
100
|
setup_client_new_tenant
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hawkular-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Libor Zoubek
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-11-
|
13
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|