receptor_controller-client 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e823afbcd50c71fe25cbcc19a828b3e7824128fde0399f4baf6723abba8f1914
|
4
|
+
data.tar.gz: 92b63586cb4af841dc414a88ef3402cc1755b80dbbba153432d401f244eef6cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e39101cf83fa1eedb41283089272d0b2eda3513caa6de909b20955b573c46879f04a7fbc3e6d66482a61310650590752c6ea79dd1b0eab988cfa6ff1ac74d63a
|
7
|
+
data.tar.gz: 7ab770c3b989a310002baee1895b6fb05303c462fd3fd39ba6edfb5fea2fec84d44163e1038ac0a171a96e0503e0a129f6652dd6f1f665ded24b129bc4f5834e
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ 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
7
|
## [Unreleased]
|
8
|
+
## [0.0.9]
|
9
|
+
- Fix rubocop yaml #39
|
10
|
+
- Configurable Receptor Client ID header #38
|
11
|
+
|
8
12
|
## [0.0.8]
|
9
13
|
- Fix LOG_ALL_RECEPTOR_MESSAGES check #34
|
10
14
|
- Fix Directives with PSK header #33
|
@@ -34,11 +38,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
34
38
|
### Added
|
35
39
|
- Added extra logging for messages
|
36
40
|
|
37
|
-
[Unreleased]: https://github.com/RedHatInsights/receptor_controller-client-ruby/compare/v0.0.
|
38
|
-
[0.0.
|
39
|
-
[0.0.
|
40
|
-
[0.0.
|
41
|
-
[0.0.
|
42
|
-
[0.0.
|
43
|
-
[0.0.
|
44
|
-
[0.0.
|
41
|
+
[Unreleased]: https://github.com/RedHatInsights/receptor_controller-client-ruby/compare/v0.0.9.freeze...HEAD
|
42
|
+
[0.0.9]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.9.freeze
|
43
|
+
[0.0.8]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.8.freeze
|
44
|
+
[0.0.7]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.7.freeze
|
45
|
+
[0.0.6]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.6.freeze
|
46
|
+
[0.0.5]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.5.freeze
|
47
|
+
[0.0.4]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.4.freeze
|
48
|
+
[0.0.3]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.3.freeze
|
49
|
+
[0.0.2]: https://github.com/RedHatInsights/receptor_controller-client-ruby/releases/tag/v0.0.2.freeze
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ReceptorController::Client
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.
|
3
|
+
[![Build Status](https://travis-ci.com/RedHatInsights/receptor_controller-client-ruby.svg?branch=master)](https://travis-ci.com/RedHatInsights/receptor_controller-client-ruby)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/cb9e7859bcda536345f8/maintainability)](https://codeclimate.com/github/RedHatInsights/receptor_controller-client-ruby/maintainability)
|
5
5
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/cb9e7859bcda536345f8/test_coverage)](https://codeclimate.com/github/RedHatInsights/receptor_controller-client-ruby/test_coverage)
|
6
6
|
[![security](https://hakiri.io/github/RedHatInsights/receptor_controller-client-ruby/master.svg)](https://hakiri.io/github/RedHatInsights/receptor_controller-client-ruby/master)
|
@@ -83,7 +83,7 @@ module ReceptorController
|
|
83
83
|
if config.pre_shared_key.present? && account.present?
|
84
84
|
{
|
85
85
|
'x-rh-receptor-controller-psk' => config.pre_shared_key,
|
86
|
-
'x-rh-receptor-controller-client-id' =>
|
86
|
+
'x-rh-receptor-controller-client-id' => config.client_id_header,
|
87
87
|
'x-rh-receptor-controller-account' => account
|
88
88
|
}
|
89
89
|
else
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module ReceptorController
|
2
2
|
class Client::Configuration
|
3
|
+
|
4
|
+
# x-rh-receptor-controller-client-id header for authentication with receptor controller (replaces x-rh-identity)
|
5
|
+
attr_reader :client_id_header
|
3
6
|
# Scheme of cloud receptor controller
|
4
7
|
attr_reader :controller_scheme
|
5
8
|
# Host name of cloud receptor controller
|
@@ -10,7 +13,7 @@ module ReceptorController
|
|
10
13
|
# Path to sending directive requests
|
11
14
|
attr_accessor :job_path
|
12
15
|
|
13
|
-
# x-rh-
|
16
|
+
# x-rh-receptor-controller-psk header for authentication with receptor controller (replaces x-rh-identity)
|
14
17
|
attr_accessor :pre_shared_key
|
15
18
|
|
16
19
|
# Kafka message auto-ack (default false)
|
@@ -38,6 +41,7 @@ module ReceptorController
|
|
38
41
|
@connection_status_path = '/connection/status'
|
39
42
|
@job_path = '/job'
|
40
43
|
@pre_shared_key = nil
|
44
|
+
@client_id_header = 'topological-inventory'
|
41
45
|
|
42
46
|
@queue_auto_ack = true
|
43
47
|
@queue_host = nil
|
@@ -19,11 +19,11 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.license = "Apache-2.0"
|
20
20
|
s.required_ruby_version = ">= 2.5"
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'activesupport', '~> 5.2
|
22
|
+
s.add_runtime_dependency 'activesupport', '~> 5.2'
|
23
23
|
s.add_runtime_dependency 'concurrent-ruby', '~> 1.1', '>= 1.1.6'
|
24
24
|
s.add_runtime_dependency 'faraday', '~> 1.0'
|
25
25
|
s.add_runtime_dependency 'json', '~> 2.3', '>= 2.3.0'
|
26
|
-
s.add_runtime_dependency 'manageiq-loggers', '~> 0.5
|
26
|
+
s.add_runtime_dependency 'manageiq-loggers', '~> 0.5'
|
27
27
|
s.add_runtime_dependency 'manageiq-messaging', '~> 1.0.0'
|
28
28
|
|
29
29
|
s.add_development_dependency 'bundler', '~> 2.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: receptor_controller-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Slemr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2
|
19
|
+
version: '5.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.2
|
26
|
+
version: '5.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: concurrent-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 0.5
|
87
|
+
version: '0.5'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.5
|
94
|
+
version: '0.5'
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: manageiq-messaging
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -257,13 +257,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
257
|
- !ruby/object:Gem::Version
|
258
258
|
version: '0'
|
259
259
|
requirements: []
|
260
|
-
rubygems_version: 3.0.3
|
260
|
+
rubygems_version: 3.0.3.1
|
261
261
|
signing_key:
|
262
262
|
specification_version: 4
|
263
263
|
summary: Client for communication with Platform Receptor Controller - Gem
|
264
264
|
test_files:
|
265
|
-
- spec/receptor_controller/directive_blocking_spec.rb
|
266
265
|
- spec/receptor_controller/directive_non_blocking_spec.rb
|
267
|
-
- spec/receptor_controller/
|
266
|
+
- spec/receptor_controller/directive_blocking_spec.rb
|
268
267
|
- spec/receptor_controller/response_worker_spec.rb
|
268
|
+
- spec/receptor_controller/client_spec.rb
|
269
269
|
- spec/spec_helper.rb
|