foreman_templates 11.0.1 → 11.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +0 -15
- data/app/services/foreman_templates/action.rb +7 -7
- data/lib/foreman_templates/version.rb +1 -1
- data/webpack/components/NewTemplateSync/components/NewTemplateSyncForm/__tests__/NewTemplateSyncForm.test.js +2 -0
- data/webpack/test_setup.js +1 -0
- metadata +3 -45
- data/webpack/testSetup.js +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75eb8cb91582930aa38769e63d48875a956602705c61735ff1d8e24bf61c04c5
|
|
4
|
+
data.tar.gz: 7b37bd55a37a4433c041fa0528bc1704d06d159f278a42d82706d8e3ee1a68ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7326f2fa478d2c3aa3b87d03d6acf94ac8c72d7f74934c9db51025da09acd48befa323532e4319f7d68b1cf82df50d057f1b34eaa14e24e46f15f3612c710d6
|
|
7
|
+
data.tar.gz: ce2ff6b226016fd2bb09bbf96f32aa6f6e424a6efc8634f07b59dd8101ae541f725a96d42c1e1973870179280f62b7659ecaf58da0ac96292af0bd0e60715d9f
|
data/Rakefile
CHANGED
|
@@ -4,21 +4,6 @@ begin
|
|
|
4
4
|
rescue LoadError
|
|
5
5
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
6
6
|
end
|
|
7
|
-
begin
|
|
8
|
-
require 'rdoc/task'
|
|
9
|
-
rescue LoadError
|
|
10
|
-
require 'rdoc/rdoc'
|
|
11
|
-
require 'rake/rdoctask'
|
|
12
|
-
RDoc::Task = Rake::RDocTask
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
17
|
-
rdoc.title = 'ForemanTemplates'
|
|
18
|
-
rdoc.options << '--line-numbers'
|
|
19
|
-
rdoc.rdoc_files.include('README.md')
|
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
21
|
-
end
|
|
22
7
|
|
|
23
8
|
Bundler::GemHelper.install_tasks
|
|
24
9
|
task :default => :test
|
|
@@ -64,20 +64,20 @@ module ForemanTemplates
|
|
|
64
64
|
protected
|
|
65
65
|
|
|
66
66
|
def init_git_repo
|
|
67
|
-
git_repo = Git.init(@dir)
|
|
68
|
-
|
|
69
67
|
case @http_proxy_policy
|
|
70
68
|
when 'global'
|
|
71
69
|
http_proxy_url = Setting[:http_proxy]
|
|
72
70
|
when 'selected'
|
|
73
71
|
http_proxy = HttpProxy.authorized(:view_http_proxies).with_taxonomy_scope.find(@http_proxy_id)
|
|
74
72
|
http_proxy_url = http_proxy.full_url
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
git_repo = Git.init(@dir)
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
end
|
|
77
|
+
if @http_proxy_policy == 'selected' && URI(http_proxy_url).scheme == 'https' && http_proxy.cacert.present?
|
|
78
|
+
proxy_cert = "#{@dir}/.git/foreman_templates_proxy_cert_#{SecureRandom.hex(8)}.crt"
|
|
79
|
+
File.write(proxy_cert, http_proxy.cacert)
|
|
80
|
+
git_repo.config('http.proxySSLCAInfo', proxy_cert)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
if http_proxy_url.present?
|
|
@@ -101,7 +101,9 @@ describe('NewTemplateSyncForm', () => {
|
|
|
101
101
|
url: '/ui_template_syncs/import',
|
|
102
102
|
params: {
|
|
103
103
|
associate: 'new',
|
|
104
|
+
location_ids: [2],
|
|
104
105
|
negate: false,
|
|
106
|
+
organization_ids: [1],
|
|
105
107
|
repo: 'https://github.com/theforeman/community-templates.git',
|
|
106
108
|
},
|
|
107
109
|
handleSuccess: expect.any(Function),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'foremanJSTestSetup';
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_templates
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 11.0.
|
|
4
|
+
version: 11.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Greg Sutcliffe
|
|
@@ -37,48 +37,6 @@ dependencies:
|
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '0'
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: rake
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - ">="
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '0'
|
|
47
|
-
type: :development
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - ">="
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '0'
|
|
54
|
-
- !ruby/object:Gem::Dependency
|
|
55
|
-
name: rdoc
|
|
56
|
-
requirement: !ruby/object:Gem::Requirement
|
|
57
|
-
requirements:
|
|
58
|
-
- - ">="
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '0'
|
|
61
|
-
type: :development
|
|
62
|
-
prerelease: false
|
|
63
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
-
requirements:
|
|
65
|
-
- - ">="
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version: '0'
|
|
68
|
-
- !ruby/object:Gem::Dependency
|
|
69
|
-
name: theforeman-rubocop
|
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - ">="
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: '0'
|
|
75
|
-
type: :development
|
|
76
|
-
prerelease: false
|
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - ">="
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '0'
|
|
82
40
|
description: Engine to synchronise provisioning templates from GitHub
|
|
83
41
|
email: gsutclif@redhat.com
|
|
84
42
|
executables: []
|
|
@@ -197,7 +155,7 @@ files:
|
|
|
197
155
|
- webpack/consts.js
|
|
198
156
|
- webpack/global_index.js
|
|
199
157
|
- webpack/index.js
|
|
200
|
-
- webpack/
|
|
158
|
+
- webpack/test_setup.js
|
|
201
159
|
homepage: https://github.com/theforeman/foreman_templates
|
|
202
160
|
licenses:
|
|
203
161
|
- GPL-3.0
|
|
@@ -216,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
216
174
|
- !ruby/object:Gem::Version
|
|
217
175
|
version: '0'
|
|
218
176
|
requirements: []
|
|
219
|
-
rubygems_version: 4.0.
|
|
177
|
+
rubygems_version: 4.0.16
|
|
220
178
|
specification_version: 4
|
|
221
179
|
summary: Template-syncing engine for Foreman
|
|
222
180
|
test_files: []
|
data/webpack/testSetup.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import 'core-js/shim';
|
|
2
|
-
import 'regenerator-runtime/runtime';
|
|
3
|
-
|
|
4
|
-
import { configure } from '@theforeman/test';
|
|
5
|
-
import Adapter from 'enzyme-adapter-react-16';
|
|
6
|
-
|
|
7
|
-
configure({ adapter: new Adapter() });
|
|
8
|
-
|
|
9
|
-
// Mocking translation function
|
|
10
|
-
global.__ = str => str;
|
|
11
|
-
global.n__ = str => str;
|
|
12
|
-
global.Jed = { sprintf: str => str };
|