foreman_templates 11.0.2 → 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/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 -3
- 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
|
|
@@ -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
|
|
@@ -155,7 +155,7 @@ files:
|
|
|
155
155
|
- webpack/consts.js
|
|
156
156
|
- webpack/global_index.js
|
|
157
157
|
- webpack/index.js
|
|
158
|
-
- webpack/
|
|
158
|
+
- webpack/test_setup.js
|
|
159
159
|
homepage: https://github.com/theforeman/foreman_templates
|
|
160
160
|
licenses:
|
|
161
161
|
- GPL-3.0
|
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
174
174
|
- !ruby/object:Gem::Version
|
|
175
175
|
version: '0'
|
|
176
176
|
requirements: []
|
|
177
|
-
rubygems_version: 4.0.
|
|
177
|
+
rubygems_version: 4.0.16
|
|
178
178
|
specification_version: 4
|
|
179
179
|
summary: Template-syncing engine for Foreman
|
|
180
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 };
|