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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae628d7746868cc1744869f3f646a24e2059649e57427c7fcad010e91fb95b99
4
- data.tar.gz: d3f7718a85ed604932f735200f9c4977c982dbb25dee3d4b7128ab8677d0ec4a
3
+ metadata.gz: 75eb8cb91582930aa38769e63d48875a956602705c61735ff1d8e24bf61c04c5
4
+ data.tar.gz: 7b37bd55a37a4433c041fa0528bc1704d06d159f278a42d82706d8e3ee1a68ec
5
5
  SHA512:
6
- metadata.gz: cf2938fb35f9e7e77a313f41c98452c4ffdc51a34e853f7d7e7332593065bcdc25ce6032d80364a3ed568de1e86199738f2a3e9fe6e38899c2ad247fc7263abb
7
- data.tar.gz: 81d80102f67e789691690651c4db071eb020677089514034e81223803f2da115fd79a8d82b7b5244c95c9c1855950a01194d853bdf7662f7917cc5232e8075b8
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
- if URI(http_proxy_url).scheme == 'https' && http_proxy.cacert.present?
77
- proxy_cert = "#{@dir}/.git/foreman_templates_proxy_cert_#{SecureRandom.hex(8)}.crt"
78
- File.write(proxy_cert, http_proxy.cacert)
79
- git_repo.config('http.proxySSLCAInfo', proxy_cert)
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?
@@ -1,3 +1,3 @@
1
1
  module ForemanTemplates
2
- VERSION = "11.0.2".freeze
2
+ VERSION = "11.0.3".freeze
3
3
  end
@@ -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.2
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/testSetup.js
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.10
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 };