foreman_ansible 10.4.3 → 10.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman_ansible/version.rb +1 -1
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/AnsibleVariableOverridesTableHelper.js +7 -2
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverrides.test.js +3 -1
- data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcher.js +0 -1
- data/webpack/components/AnsibleRolesSwitcher/components/AvailableRolesList.js +3 -1
- data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AvailableRolesList.test.js.snap +2 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fafa20eedfebfae90bd8eb981b1879ef7444f4f3a661d2ddb65231df477d6901
|
4
|
+
data.tar.gz: 60f8a8ad775ade5183c9fe3cf4374210e8e6dc93613970fe8c46a6de6ff58ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e4ff37e73336ed4cf530d1050ae75f0c6c4a86736e8ed0ea1b89742727672b43a3b8165fd946f0aa0eb75d2b1a514f43ac77f38cc94c436bf27b86e427a671
|
7
|
+
data.tar.gz: cfb54327ff40818064d3225b77d2d8ce89f6f36880323e76df44cf366acd61b7b5fb03e584c1e3119b447a7d3a07690d2c3218d3945fc28e3e514bc23f6a8aed
|
@@ -4,8 +4,13 @@ import { sprintf, translate as __ } from 'foremanReact/common/I18n';
|
|
4
4
|
|
5
5
|
import { showToast } from '../../../../toastHelper';
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
function formatSourceLink(currentValue) {
|
8
|
+
const element =
|
9
|
+
typeof currentValue.element !== 'string'
|
10
|
+
? currentValue.element.toString()
|
11
|
+
: currentValue.element;
|
12
|
+
return `${__(element)}: ${currentValue.elementName}`;
|
13
|
+
}
|
9
14
|
|
10
15
|
export const formatSourceAttr = variable =>
|
11
16
|
variable.currentValue
|
@@ -19,7 +19,7 @@ import {
|
|
19
19
|
const TestComponent = withRedux(withMockedProvider(AnsibleVariableOverrides));
|
20
20
|
|
21
21
|
describe('AnsibleVariableOverrides', () => {
|
22
|
-
it('should show skeleton when page is loading', () => {
|
22
|
+
it('should show skeleton when page is loading', async () => {
|
23
23
|
const { container } = render(
|
24
24
|
<TestComponent
|
25
25
|
hostId={hostId}
|
@@ -31,6 +31,8 @@ describe('AnsibleVariableOverrides', () => {
|
|
31
31
|
expect(
|
32
32
|
container.getElementsByClassName('react-loading-skeleton')
|
33
33
|
).toHaveLength(5);
|
34
|
+
|
35
|
+
await waitFor(tick);
|
34
36
|
});
|
35
37
|
it('should load', async () => {
|
36
38
|
render(
|
@@ -19,7 +19,9 @@ const AvailableRolesList = ({
|
|
19
19
|
<Pagination
|
20
20
|
viewType="list"
|
21
21
|
itemCount={itemCount}
|
22
|
-
|
22
|
+
updateParamsByUrl={false}
|
23
|
+
page={pagination.page}
|
24
|
+
perPage={pagination.perPage}
|
23
25
|
onChange={onListingChange}
|
24
26
|
dropdownButtonId="available-ansible-roles-pagination-row-dropdown"
|
25
27
|
/>
|
@@ -16,14 +16,8 @@ exports[`AvailableRolesList should render 1`] = `
|
|
16
16
|
onPerPageSelect={null}
|
17
17
|
onSetPage={null}
|
18
18
|
page={1}
|
19
|
-
|
20
|
-
|
21
|
-
"page": 1,
|
22
|
-
"perPage": 25,
|
23
|
-
}
|
24
|
-
}
|
25
|
-
perPage={null}
|
26
|
-
updateParamsByUrl={true}
|
19
|
+
perPage={25}
|
20
|
+
updateParamsByUrl={false}
|
27
21
|
variant="bottom"
|
28
22
|
viewType="list"
|
29
23
|
/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.4.
|
4
|
+
version: 10.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lobato Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|
@@ -499,9 +499,9 @@ test_files:
|
|
499
499
|
- test/test_plugin_helper.rb
|
500
500
|
- test/unit/ansible_role_test.rb
|
501
501
|
- test/unit/ansible_variable_test.rb
|
502
|
+
- test/unit/concerns/config_reports_extensions_test.rb
|
502
503
|
- test/unit/concerns/host_managed_extensions_test.rb
|
503
504
|
- test/unit/concerns/hostgroup_extensions_test.rb
|
504
|
-
- test/unit/concerns/config_reports_extensions_test.rb
|
505
505
|
- test/unit/helpers/ansible_reports_helper_test.rb
|
506
506
|
- test/unit/host_ansible_role_test.rb
|
507
507
|
- test/unit/hostgroup_ansible_role_test.rb
|