foreman_remote_execution 7.2.1 → 7.2.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
  SHA256:
3
- metadata.gz: 893050d86f8ab746da3173f25cc9a062454bf9262316f0a6fbb5f89a6282c15f
4
- data.tar.gz: 02e623b7202ec926f0d744cbfadbbe5f86a7950cd3665c91a3b7ec74a2b02cd2
3
+ metadata.gz: d7d32320885b2dc2343cf6efc7c1f7b0f4ac1e0668ea3d0c2dc817c691f1e7d2
4
+ data.tar.gz: 0655a041907bc30339ac53479220adb5434b20f7e6f38d5ce843dfb675f375cd
5
5
  SHA512:
6
- metadata.gz: c488b0d6edc98ce77e66edefc2c0f298c323bfd0aa6f0d46a3dbbc4b4642bbe9ac8f2112c237460095f47c5494d5ad7112482475fc886d596e9698fe0cac128f
7
- data.tar.gz: eb73a3df7acbfa047699d349fcb03393850b5ddded2ed31b3cd30e38b15d3a516e608a17e33f29237271e012c9de69bb7929801de4f8605d8a4b3b59590b73e8
6
+ metadata.gz: 307bb3022d6fca4c61897443448638d84069ce943abb08d63b4e7de99cebdcf4f9956b9aed33c6e3effe2dad9a897c8981e80c775866ea5f32081ddf8950606d
7
+ data.tar.gz: b32a13df6917c8d41832b66dce88ecdc55383e296e250cbdecfb935f162b5e6e42fb694d57a7338ef6c5c102be9c6a6d2c2e95e1b04df9ac7bfa115b469364c1
@@ -9,7 +9,7 @@ class RemoteExecutionProvider
9
9
 
10
10
  def registered_name
11
11
  klass = self
12
- providers.key(klass)
12
+ ::RemoteExecutionProvider.providers.key(klass)
13
13
  end
14
14
 
15
15
  def proxy_feature
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '7.2.1'.freeze
2
+ VERSION = '7.2.2'.freeze
3
3
  end
@@ -56,6 +56,28 @@ class RemoteExecutionProviderTest < ActiveSupport::TestCase
56
56
  end
57
57
  end
58
58
 
59
+ describe '.proxy_feature' do
60
+ # rubocop:disable Naming/ConstantName
61
+ it 'handles provider subclasses properly' do
62
+ old = ::RemoteExecutionProvider
63
+
64
+ class P2 < old
65
+ end
66
+ ::RemoteExecutionProvider = P2
67
+
68
+ class CustomProvider < ::RemoteExecutionProvider
69
+ end
70
+
71
+ ::RemoteExecutionProvider.register('custom', CustomProvider)
72
+
73
+ feature = CustomProvider.proxy_feature
74
+ _(feature).must_equal 'custom'
75
+ ensure
76
+ ::RemoteExecutionProvider = old
77
+ end
78
+ # rubocop:enable Naming/ConstantName
79
+ end
80
+
59
81
  describe '.provider_proxy_features' do
60
82
  it 'returns correct values' do
61
83
  RemoteExecutionProvider.stubs(:providers).returns(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.1
4
+ version: 7.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface