foreman_ansible 17.0.5 → 17.0.7
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/lib/foreman_ansible/version.rb +1 -1
- data/webpack/components/AnsibleRolesSwitcher/components/AnsiblePermissionDenied.js +0 -1
- data/webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js +3 -3
- data/webpack/components/AnsibleRolesSwitcher/components/AnsibleRoleActionButton.js +18 -6
- data/webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.js +2 -2
- data/webpack/components/AnsibleRolesSwitcher/components/AvailableRolesList.js +1 -1
- data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AnsiblePermissionDenied.test.js.snap +1 -1
- data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AnsibleRole.test.js.snap +2 -2
- data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AssignedRolesList.test.js.snap +2 -2
- data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AvailableRolesList.test.js.snap +2 -2
- metadata +2 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd645b6ec753e8ce92665fe3066bf1dd0e75958b469ee59bef46a1cd5849fb13
|
|
4
|
+
data.tar.gz: 9214229a5415d6053ee2cd6c67b89c86313bfec3003ae0c90cd9bd9063625d2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf7b0ba966b2d6b5112d974562b8a9e738ed969aa7dc615dc89c96f8a4b7772d3618b5b6fa4e6567570bac5f066fce34d27f684cd2d5730326289015f8887c54
|
|
7
|
+
data.tar.gz: 0f34a19864d03600031014666d6edc8f5f151abdbb1e4046eccc32935eeac7a1daa6f81b54837793f832daf96adb747228364237259b09c5ddfe3be02d8f4208
|
|
@@ -7,19 +7,19 @@ const noop = () => {};
|
|
|
7
7
|
const fixtures = {
|
|
8
8
|
'should render a role to add': {
|
|
9
9
|
role: { name: 'test.role', id: 5 },
|
|
10
|
-
icon: '
|
|
10
|
+
icon: 'plus-circle',
|
|
11
11
|
onClick: noop,
|
|
12
12
|
index: 0,
|
|
13
13
|
},
|
|
14
14
|
'should render a role to remove': {
|
|
15
15
|
role: { name: 'test.role', id: 5 },
|
|
16
|
-
icon: '
|
|
16
|
+
icon: 'minus-circle',
|
|
17
17
|
onClick: noop,
|
|
18
18
|
index: 0,
|
|
19
19
|
},
|
|
20
20
|
'should render inherited role to remove': {
|
|
21
21
|
role: { name: 'test.role', id: 5, inherited: true },
|
|
22
|
-
icon: '
|
|
22
|
+
icon: 'minus-circle',
|
|
23
23
|
onClick: noop,
|
|
24
24
|
index: 0,
|
|
25
25
|
},
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
|
|
4
|
-
import { Icon } from 'patternfly-
|
|
4
|
+
import { Icon } from '@patternfly/react-core';
|
|
5
|
+
import { PlusCircleIcon, MinusCircleIcon } from '@patternfly/react-icons';
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const iconMap = {
|
|
8
|
+
'plus-circle': PlusCircleIcon,
|
|
9
|
+
'minus-circle': MinusCircleIcon,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const AnsibleRoleActionButton = ({ icon }) => {
|
|
13
|
+
const IconComponent = iconMap[icon] || PlusCircleIcon;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<button href="#" className="role-add-remove-btn">
|
|
17
|
+
<Icon size="2xl">
|
|
18
|
+
<IconComponent />
|
|
19
|
+
</Icon>
|
|
20
|
+
</button>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
11
23
|
|
|
12
24
|
AnsibleRoleActionButton.propTypes = {
|
|
13
25
|
icon: PropTypes.string.isRequired,
|
|
@@ -42,7 +42,7 @@ const AssignedRolesList = ({
|
|
|
42
42
|
key={role.id}
|
|
43
43
|
role={role}
|
|
44
44
|
index={idx}
|
|
45
|
-
icon="
|
|
45
|
+
icon="minus-circle"
|
|
46
46
|
onClick={onRemoveRole}
|
|
47
47
|
resourceName={resourceName}
|
|
48
48
|
/>
|
|
@@ -54,7 +54,7 @@ const AssignedRolesList = ({
|
|
|
54
54
|
role={role}
|
|
55
55
|
index={idx}
|
|
56
56
|
moveValue={moveValue}
|
|
57
|
-
icon="
|
|
57
|
+
icon="minus-circle"
|
|
58
58
|
onClick={onRemoveRole}
|
|
59
59
|
resourceName={resourceName}
|
|
60
60
|
/>
|
data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AnsibleRole.test.js.snap
CHANGED
|
@@ -4,7 +4,7 @@ exports[`AnsibleRole should render a role to add 1`] = `
|
|
|
4
4
|
<ListViewItem
|
|
5
5
|
actions={
|
|
6
6
|
<AnsibleRoleActionButton
|
|
7
|
-
icon="
|
|
7
|
+
icon="plus-circle"
|
|
8
8
|
role={
|
|
9
9
|
Object {
|
|
10
10
|
"id": 5,
|
|
@@ -36,7 +36,7 @@ exports[`AnsibleRole should render a role to remove 1`] = `
|
|
|
36
36
|
<ListViewItem
|
|
37
37
|
actions={
|
|
38
38
|
<AnsibleRoleActionButton
|
|
39
|
-
icon="
|
|
39
|
+
icon="minus-circle"
|
|
40
40
|
role={
|
|
41
41
|
Object {
|
|
42
42
|
"id": 5,
|
data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AssignedRolesList.test.js.snap
CHANGED
|
@@ -8,7 +8,7 @@ exports[`AssignedRolesList should render 1`] = `
|
|
|
8
8
|
className=""
|
|
9
9
|
>
|
|
10
10
|
<DropTarget(DragSource(Orderable(AnsibleRole)))
|
|
11
|
-
icon="
|
|
11
|
+
icon="minus-circle"
|
|
12
12
|
index={0}
|
|
13
13
|
key="1"
|
|
14
14
|
moveValue={[Function]}
|
|
@@ -22,7 +22,7 @@ exports[`AssignedRolesList should render 1`] = `
|
|
|
22
22
|
}
|
|
23
23
|
/>
|
|
24
24
|
<DropTarget(DragSource(Orderable(AnsibleRole)))
|
|
25
|
-
icon="
|
|
25
|
+
icon="minus-circle"
|
|
26
26
|
index={1}
|
|
27
27
|
key="2"
|
|
28
28
|
moveValue={[Function]}
|
|
@@ -28,7 +28,7 @@ exports[`AvailableRolesList should render 1`] = `
|
|
|
28
28
|
timeout={300}
|
|
29
29
|
>
|
|
30
30
|
<AnsibleRole
|
|
31
|
-
icon="
|
|
31
|
+
icon="plus-circle"
|
|
32
32
|
index={0}
|
|
33
33
|
key="1"
|
|
34
34
|
onClick={[Function]}
|
|
@@ -41,7 +41,7 @@ exports[`AvailableRolesList should render 1`] = `
|
|
|
41
41
|
}
|
|
42
42
|
/>
|
|
43
43
|
<AnsibleRole
|
|
44
|
-
icon="
|
|
44
|
+
icon="plus-circle"
|
|
45
45
|
index={1}
|
|
46
46
|
key="2"
|
|
47
47
|
onClick={[Function]}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_ansible
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 17.0.
|
|
4
|
+
version: 17.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Lobato Garcia
|
|
@@ -77,20 +77,6 @@ dependencies:
|
|
|
77
77
|
- - "<"
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
79
|
version: '13'
|
|
80
|
-
- !ruby/object:Gem::Dependency
|
|
81
|
-
name: theforeman-rubocop
|
|
82
|
-
requirement: !ruby/object:Gem::Requirement
|
|
83
|
-
requirements:
|
|
84
|
-
- - "~>"
|
|
85
|
-
- !ruby/object:Gem::Version
|
|
86
|
-
version: 0.1.0
|
|
87
|
-
type: :development
|
|
88
|
-
prerelease: false
|
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
90
|
-
requirements:
|
|
91
|
-
- - "~>"
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
version: 0.1.0
|
|
94
80
|
description: Ansible integration with Foreman
|
|
95
81
|
email:
|
|
96
82
|
- elobatocs@gmail.com
|
|
@@ -504,7 +490,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
504
490
|
- !ruby/object:Gem::Version
|
|
505
491
|
version: '0'
|
|
506
492
|
requirements: []
|
|
507
|
-
rubygems_version: 4.0.
|
|
493
|
+
rubygems_version: 4.0.10
|
|
508
494
|
specification_version: 4
|
|
509
495
|
summary: Ansible integration with Foreman (theforeman.org)
|
|
510
496
|
test_files:
|