foreman_ansible 7.1.7 → 7.1.8
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
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e7ff6676073d880f0e1104159ece7cf319117e0137add3d039165d0050c7841
|
4
|
+
data.tar.gz: 548ccdf064118379d4de2dd463ee4596fa2cc95bab13349ae3a0dcb733d611fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d820c8d1184bf52c7acde87d2b0cc64d06b61330ec562b181949deb69b861e3bcc32295d6319d6f8c77d2226b82cd2370d078fa7a9820f7a75dafefd022b5fa
|
7
|
+
data.tar.gz: d7d1b851ee5c4f72f331cfcb4af9430c8c0ba126572d8076ca7d16041ece7d241551b68fd1ad7f96a9c0fd8fbafc353c3d71b61e96f6327de3fe748a77b4705c
|
@@ -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(
|
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: 7.1.
|
4
|
+
version: 7.1.8
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|