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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b21f0f14d7546fe626efb1cb3209c1085d22124
4
- data.tar.gz: 9b92719c7441a05ce9cfa81a0d0f9b0cfae55553
3
+ metadata.gz: c23ea869e11663cc37756be45e49485350ecc024
4
+ data.tar.gz: 1e236ca10f3b38f3c564bd1578dffa86dfe7b707
5
5
  SHA512:
6
- metadata.gz: edd53f956611e6df5bba5bafccbbcdbebf2d0228e054216eaf838fd5876566550fb463c4717206121bc90803a1b10ae7b663fbfb3ef66e8ff25c36cc899c060f
7
- data.tar.gz: 603b389c5e1712544c3511ba1f07b27b2a44860fb6cdf9972fc4763254c1b0d0f1cde6b769ce3fb2109cd6b140a31bf797e4bcffe690dbaf552466d99f91b52a
6
+ metadata.gz: a285669dc4d93f4960c5ffddc54b8636a792022c191b571723442acd905300288807342accd267fbaab701461942e070365fd2a4611dae52165a377c52a44e0e
7
+ data.tar.gz: ab8cec50610495c531c5e99c987a88df56cc36b71c1b02eb4922b533c347de364343e97faf410e1c56895d3f778e9a8a8e547eae05892f243d979a7418e50b6d
data/CHANGES.rdoc CHANGED
@@ -3,6 +3,9 @@
3
3
  This document describes the relevant changes beween releases of the
4
4
  _hawkular-client_ project.
5
5
 
6
+ === V 0.1.2
7
+
8
+ * Fix exception handling - this was missing `require 'English'`
6
9
 
7
10
  === V 0.1.1
8
11
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'json'
4
4
  require 'rest-client'
5
+ require 'English'
5
6
 
6
7
  module Hawkular
7
8
  # Metrics module provides access to Hawkular Metrics REST API
@@ -1,5 +1,5 @@
1
1
  module Hawkular
2
2
  module Metrics
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
@@ -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.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-02 00:00:00.000000000 Z
13
+ date: 2015-11-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client