foreman_rh_cloud 5.0.41 → 5.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud/async/connector_playbook_execution_reporter_task.rb +0 -1
- data/lib/insights_cloud/async/insights_full_sync.rb +2 -1
- data/package.json +1 -1
- data/test/jobs/connector_playbook_execution_reporter_task_test.rb +1 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21744025612c50afc1aa1c943e33a0c2dd6e76e8a2ee778ae74068d57c8d971f
|
4
|
+
data.tar.gz: 491d74b6e3ad554de98c2ce45c5b95806547855ab8794aa9a51e3e08bc6e3bca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e8097f9923909d623e445a0b0ca604e737409ee6ce06962e0ae9122f9d8a95d568a41b8e5b2061d2629e6290605f72209f861a9dd7c709661703a927bb5cdf
|
7
|
+
data.tar.gz: 6c62744629566595c8f2ddb4e6b649ac6131efe177666455c97d9dc7353c1f7e2102f90938c2828f95ddfc57fa65a11244cf0a7cc2641595df429948ce01117e
|
@@ -67,7 +67,6 @@ module InsightsCloud
|
|
67
67
|
private
|
68
68
|
|
69
69
|
def connector_playbook_job?(job_invocation)
|
70
|
-
puts "Job invocation id: #{job_invocation&.remote_execution_feature_id}, feature id: #{connector_feature_id}"
|
71
70
|
job_invocation&.remote_execution_feature_id == connector_feature_id
|
72
71
|
end
|
73
72
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'cgi'
|
1
2
|
require 'rest-client'
|
2
3
|
|
3
4
|
module InsightsCloud
|
@@ -122,7 +123,7 @@ module InsightsCloud
|
|
122
123
|
end
|
123
124
|
|
124
125
|
def to_rule_id(results_url)
|
125
|
-
|
126
|
+
CGI.unescape(safe_results_match(results_url)[:id] || '')
|
126
127
|
end
|
127
128
|
|
128
129
|
def safe_results_match(results_url)
|
data/package.json
CHANGED
@@ -14,7 +14,7 @@ class ConnectorPlaybookExecutionReporterTaskTest < ActiveSupport::TestCase
|
|
14
14
|
end
|
15
15
|
|
16
16
|
setup do
|
17
|
-
|
17
|
+
RemoteExecutionFeature.register(
|
18
18
|
:rh_cloud_connector_run_playbook,
|
19
19
|
N_('Run RH Cloud playbook'),
|
20
20
|
description: N_('Run playbook genrated by Red Hat remediations app'),
|
@@ -22,14 +22,10 @@ class ConnectorPlaybookExecutionReporterTaskTest < ActiveSupport::TestCase
|
|
22
22
|
provided_inputs: ['playbook_url', 'report_url', 'correlation_id', 'report_interval']
|
23
23
|
)
|
24
24
|
|
25
|
-
puts "REX Register: #{feature.id}"
|
26
|
-
|
27
25
|
@job_invocation = generate_job_invocation
|
28
26
|
|
29
27
|
# reset connector feature ID cache
|
30
28
|
TestConnectorPlaybookExecutionReporterTask.instance_variable_set(:@connector_feature_id, nil)
|
31
|
-
|
32
|
-
puts RemoteExecutionFeature.all.to_a
|
33
29
|
end
|
34
30
|
|
35
31
|
test 'It reports finish playbook messages' do
|
@@ -115,8 +111,6 @@ class ConnectorPlaybookExecutionReporterTaskTest < ActiveSupport::TestCase
|
|
115
111
|
)
|
116
112
|
feature = RemoteExecutionFeature.feature!(:rh_cloud_connector_run_playbook).id
|
117
113
|
|
118
|
-
puts "Generated feature: #{feature}"
|
119
|
-
|
120
114
|
job_invocation = FactoryBot.create(
|
121
115
|
:job_invocation,
|
122
116
|
remote_execution_feature_id: feature,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_rh_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Red Hat Cloud team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|