topological_inventory-providers-common 2.1.2 → 2.1.3

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
  SHA256:
3
- metadata.gz: 661072299fccb0117c3dcbe1fba36e4836a82ac1a6d98abbaab1808ea437e6d7
4
- data.tar.gz: a1a45e527dc14cb4b09004d2df98f075818fb35d616d84d954839c289dac5c8a
3
+ metadata.gz: 9848e297a81db270e52355b3caf500b38391f1c35e118ca31cadbec35c3f0c5e
4
+ data.tar.gz: ad23c8d4f9a46b6824b20e2d870611d4b3a9c570da00f00a262513934b2349ab
5
5
  SHA512:
6
- metadata.gz: ba101d97cca75814a073eb70f8528e3debb0f4270fb4cfb98cc9db55f53ff790efcd99380158e8c808b317603a9ce1a7a30d13f791e03741b699e06f0556965e
7
- data.tar.gz: 3e4340ad6743693f104d0c847995bb866860ef2911c57865ce042389cb3872badf05f2b46119664650214285f509495f656dc5cf82f77cec9cf5e2a253a0f2cc
6
+ metadata.gz: b9e92c54114310f529eb78c8faa1ec64fd56350c82086ea2fbe126594afa596757e3a39e6f068929c093b0a607e60cf6ca46f2671dea867a5c87b1f59cae6de7
7
+ data.tar.gz: 567e5f95a9138dbc8ac7dd52e26a7fe923075552c89d24c3c4e6111f072c0b1b0fb61c5a1fd463bec86d87f00e359b9ca55cbe728fff5b4a0a2fc7a07e4853ba
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.1.3] - 2020-12-14
8
+ Update travis URL in README file #67
9
+ Kafka availability_checks fix #68
10
+
7
11
  ## [2.1.2] - 2020-11-24
8
12
  Custom Metrics for AsyncWorker #60
9
13
  Change error metric name to errors_total #64
@@ -75,7 +79,8 @@ manageiq-loggers to >= 0.4.2 #20
75
79
  ## [1.0.0] - 2020-03-19
76
80
  ### Initial release to rubygems.org
77
81
 
78
- [Unreleased]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v2.1.2...HEAD
82
+ [Unreleased]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v2.1.3...HEAD
83
+ [2.1.3]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v2.1.2...v2.1.3
79
84
  [2.1.2]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v2.1.1...v2.1.2
80
85
  [2.1.1]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v2.1.0...v2.1.1
81
86
  [2.1.0]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v2.0.0...v2.1.0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TopologicalInventory::Providers::Common
2
2
 
3
- [![Build Status](https://travis-ci.org/RedHatInsights/topological_inventory-providers-common.svg?branch=master)](https://travis-ci.org/RedHatInsights/topological_inventory-providers-common)
3
+ [![Build Status](https://travis-ci.com/RedHatInsights/topological_inventory-providers-common.svg?branch=master)](https://travis-ci.com/RedHatInsights/topological_inventory-providers-common)
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/df747492b802bfea3c83/maintainability)](https://codeclimate.com/github/RedHatInsights/topological_inventory-providers-common/maintainability)
5
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/df747492b802bfea3c83/test_coverage)](https://codeclimate.com/github/RedHatInsights/topological_inventory-providers-common/test_coverage)
6
6
  [![security](https://hakiri.io/github/RedHatInsights/topological_inventory-providers-common/master.svg)](https://hakiri.io/github/RedHatInsights/topological_inventory-providers-common/master)
@@ -208,9 +208,9 @@ module TopologicalInventory
208
208
  end
209
209
 
210
210
  def availability_status_message(payload)
211
- messaging_client.publish_message(
211
+ messaging_client.publish_topic(
212
212
  :service => SERVICE_NAME,
213
- :message => EVENT_AVAILABILITY_STATUS,
213
+ :event => EVENT_AVAILABILITY_STATUS,
214
214
  :payload => payload.to_json
215
215
  )
216
216
  rescue => err
@@ -1,7 +1,7 @@
1
1
  module TopologicalInventory
2
2
  module Providers
3
3
  module Common
4
- VERSION = "2.1.2".freeze
4
+ VERSION = "2.1.3".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -39,7 +39,7 @@ RSpec.shared_examples "availability_check" do
39
39
  def kafka_message(resource_type, resource_id, status, error_message = nil)
40
40
  res = {
41
41
  :service => described_class::SERVICE_NAME,
42
- :message => described_class::EVENT_AVAILABILITY_STATUS,
42
+ :event => described_class::EVENT_AVAILABILITY_STATUS,
43
43
  :payload => {
44
44
  :resource_type => resource_type,
45
45
  :resource_id => resource_id,
@@ -67,15 +67,15 @@ RSpec.shared_examples "availability_check" do
67
67
 
68
68
  expect(subject).to receive(:connection_status).and_return([status_available, ''])
69
69
 
70
- expect(kafka_client).to receive(:publish_message).with(
70
+ expect(kafka_client).to receive(:publish_topic).with(
71
71
  kafka_message("Source", source_id, status_available)
72
72
  )
73
73
 
74
- expect(kafka_client).to receive(:publish_message).with(
74
+ expect(kafka_client).to receive(:publish_topic).with(
75
75
  kafka_message("Endpoint", endpoint_id, status_available, '')
76
76
  )
77
77
 
78
- expect(kafka_client).to receive(:publish_message).with(
78
+ expect(kafka_client).to receive(:publish_topic).with(
79
79
  kafka_message("Application", application_id, status_available)
80
80
  )
81
81
 
@@ -89,15 +89,15 @@ RSpec.shared_examples "availability_check" do
89
89
 
90
90
  expect(subject).to receive(:connection_status).and_return([status_unavailable, error_message])
91
91
 
92
- expect(kafka_client).to receive(:publish_message).with(
92
+ expect(kafka_client).to receive(:publish_topic).with(
93
93
  kafka_message("Source", source_id, status_unavailable)
94
94
  )
95
95
 
96
- expect(kafka_client).to receive(:publish_message).with(
96
+ expect(kafka_client).to receive(:publish_topic).with(
97
97
  kafka_message("Endpoint", endpoint_id, status_unavailable, error_message)
98
98
  )
99
99
 
100
- expect(kafka_client).to receive(:publish_message).with(
100
+ expect(kafka_client).to receive(:publish_topic).with(
101
101
  kafka_message("Application", application_id, status_unavailable)
102
102
  )
103
103
 
@@ -110,7 +110,7 @@ RSpec.shared_examples "availability_check" do
110
110
 
111
111
  expect(subject).to receive(:connection_status).and_return([status_unavailable, error_message])
112
112
 
113
- expect(kafka_client).to receive(:publish_message).with(
113
+ expect(kafka_client).to receive(:publish_topic).with(
114
114
  kafka_message("Source", source_id, status_unavailable)
115
115
  )
116
116
 
@@ -126,11 +126,11 @@ RSpec.shared_examples "availability_check" do
126
126
 
127
127
  expect(subject).to receive(:connection_status).and_return([status_unavailable, error_message])
128
128
 
129
- expect(kafka_client).to receive(:publish_message).with(
129
+ expect(kafka_client).to receive(:publish_topic).with(
130
130
  kafka_message("Source", source_id, status_unavailable)
131
131
  )
132
132
 
133
- expect(kafka_client).to receive(:publish_message).with(
133
+ expect(kafka_client).to receive(:publish_topic).with(
134
134
  kafka_message("Endpoint", endpoint_id, status_unavailable, error_message)
135
135
  )
136
136
 
@@ -258,11 +258,11 @@ RSpec.shared_examples "availability_check" do
258
258
 
259
259
  expect(subject).to receive(:connection_status).and_return([status_available, ''])
260
260
 
261
- expect(kafka_client).to receive(:publish_message).with(
261
+ expect(kafka_client).to receive(:publish_topic).with(
262
262
  kafka_message("Source", source_id, status_available)
263
263
  )
264
264
 
265
- expect(kafka_client).to receive(:publish_message).with(
265
+ expect(kafka_client).to receive(:publish_topic).with(
266
266
  kafka_message("Application", application_id, status_available)
267
267
  )
268
268
 
@@ -307,11 +307,11 @@ RSpec.shared_examples "availability_check" do
307
307
 
308
308
  expect(subject).to receive(:connection_status).and_return([status_unavailable, error_message])
309
309
 
310
- expect(kafka_client).to receive(:publish_message).with(
310
+ expect(kafka_client).to receive(:publish_topic).with(
311
311
  kafka_message("Source", source_id, status_unavailable)
312
312
  )
313
313
 
314
- expect(kafka_client).to receive(:publish_message).with(
314
+ expect(kafka_client).to receive(:publish_topic).with(
315
315
  kafka_message("Application", application_id, status_unavailable)
316
316
  )
317
317
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: topological_inventory-providers-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Slemr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-24 00:00:00.000000000 Z
11
+ date: 2020-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport