foreman_snapshot_management 2.0.1 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/api/v2/snapshots_controller.rb +4 -1
- data/app/controllers/concerns/foreman/controller/parameters/snapshot.rb +1 -1
- data/app/controllers/foreman_snapshot_management/snapshots_controller.rb +16 -2
- data/app/models/foreman_snapshot_management/proxmox_extensions.rb +3 -3
- data/app/models/foreman_snapshot_management/snapshot.rb +4 -4
- data/app/models/foreman_snapshot_management/vmware_extensions.rb +13 -3
- data/app/views/foreman_snapshot_management/snapshots/_index.html.erb +2 -1
- data/app/views/foreman_snapshot_management/snapshots/select_multiple_host.html.erb +5 -3
- data/lib/foreman_snapshot_management/version.rb +1 -1
- data/locale/Makefile +7 -3
- data/locale/cs_CZ/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/cs_CZ/foreman_snapshot_management.po +195 -0
- data/locale/de/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/de/foreman_snapshot_management.po +10 -10
- data/locale/el/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/el/foreman_snapshot_management.po +190 -0
- data/locale/en/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/en/foreman_snapshot_management.po +22 -13
- data/locale/foreman_snapshot_management.pot +56 -35
- data/locale/fr/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/fr/foreman_snapshot_management.po +196 -0
- data/locale/ja/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/ja/foreman_snapshot_management.po +189 -0
- data/locale/ka/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/ka/foreman_snapshot_management.po +190 -0
- data/locale/zh_CN/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/zh_CN/foreman_snapshot_management.po +191 -0
- data/package.json +3 -2
- data/test/controllers/api/v2/snapshots_test.rb +113 -89
- data/test/controllers/foreman_snapshot_management/snapshots_controller_test.rb +72 -41
- data/webpack/components/SnapshotManagement/SnapshotManagement.js +2 -0
- data/webpack/components/SnapshotManagement/SnapshotManagementActions.js +1 -1
- data/webpack/components/SnapshotManagement/__tests__/__snapshots__/SnapshotManagementActions.test.js.snap +12 -12
- data/webpack/components/SnapshotManagement/components/SnapshotForm/SnapshotForm.js +60 -17
- data/webpack/components/SnapshotManagement/components/SnapshotForm/__tests__/__snapshots__/SnapshotForm.test.js.snap +262 -24
- data/webpack/components/SnapshotManagementCard/SnapshotManagementCard.js +61 -0
- data/webpack/components/SnapshotManagementCard/__tests__/SnapshotManagementCard.test.js +53 -0
- data/webpack/components/SnapshotManagementCard/__tests__/__snapshots__/SnapshotManagementCard.test.js.snap +132 -0
- data/webpack/components/SnapshotManagementCard/index.js +1 -0
- data/webpack/global_index.js +13 -0
- metadata +21 -5
@@ -0,0 +1,132 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`SnapshotManagementCard renders with Props 1`] = `
|
4
|
+
<CardTemplate
|
5
|
+
expandable={false}
|
6
|
+
header="Snapshots"
|
7
|
+
masonryLayout={false}
|
8
|
+
overrideDropdownProps={Object {}}
|
9
|
+
overrideGridProps={
|
10
|
+
Object {
|
11
|
+
"lg": 8,
|
12
|
+
"md": 12,
|
13
|
+
"xl": 8,
|
14
|
+
"xl2": 6,
|
15
|
+
}
|
16
|
+
}
|
17
|
+
>
|
18
|
+
<Connect(SnapshotManagement)
|
19
|
+
canCreate={true}
|
20
|
+
canDelete={false}
|
21
|
+
canRevert={true}
|
22
|
+
canUpdate={false}
|
23
|
+
capabilities={
|
24
|
+
Object {
|
25
|
+
"editableSnapshotName": false,
|
26
|
+
"limitSnapshotNameFormat": false,
|
27
|
+
"quiesceOption": false,
|
28
|
+
}
|
29
|
+
}
|
30
|
+
host={
|
31
|
+
Object {
|
32
|
+
"id": 42,
|
33
|
+
"name": "deep.thought",
|
34
|
+
}
|
35
|
+
}
|
36
|
+
key="SnapshotManagement"
|
37
|
+
/>
|
38
|
+
</CardTemplate>
|
39
|
+
`;
|
40
|
+
|
41
|
+
exports[`SnapshotManagementCard renders with Proxmox capabilities 1`] = `
|
42
|
+
<CardTemplate
|
43
|
+
expandable={false}
|
44
|
+
header="Snapshots"
|
45
|
+
masonryLayout={false}
|
46
|
+
overrideDropdownProps={Object {}}
|
47
|
+
overrideGridProps={
|
48
|
+
Object {
|
49
|
+
"lg": 8,
|
50
|
+
"md": 12,
|
51
|
+
"xl": 8,
|
52
|
+
"xl2": 6,
|
53
|
+
}
|
54
|
+
}
|
55
|
+
>
|
56
|
+
<Connect(SnapshotManagement)
|
57
|
+
canCreate={true}
|
58
|
+
canDelete={false}
|
59
|
+
canRevert={true}
|
60
|
+
canUpdate={false}
|
61
|
+
capabilities={
|
62
|
+
Object {
|
63
|
+
"editableSnapshotName": false,
|
64
|
+
"limitSnapshotNameFormat": true,
|
65
|
+
"quiesceOption": false,
|
66
|
+
}
|
67
|
+
}
|
68
|
+
host={
|
69
|
+
Object {
|
70
|
+
"id": 42,
|
71
|
+
"name": "deep.thought",
|
72
|
+
}
|
73
|
+
}
|
74
|
+
key="SnapshotManagement"
|
75
|
+
/>
|
76
|
+
</CardTemplate>
|
77
|
+
`;
|
78
|
+
|
79
|
+
exports[`SnapshotManagementCard renders with VMWare capabilities 1`] = `
|
80
|
+
<CardTemplate
|
81
|
+
expandable={false}
|
82
|
+
header="Snapshots"
|
83
|
+
masonryLayout={false}
|
84
|
+
overrideDropdownProps={Object {}}
|
85
|
+
overrideGridProps={
|
86
|
+
Object {
|
87
|
+
"lg": 8,
|
88
|
+
"md": 12,
|
89
|
+
"xl": 8,
|
90
|
+
"xl2": 6,
|
91
|
+
}
|
92
|
+
}
|
93
|
+
>
|
94
|
+
<Connect(SnapshotManagement)
|
95
|
+
canCreate={true}
|
96
|
+
canDelete={false}
|
97
|
+
canRevert={true}
|
98
|
+
canUpdate={false}
|
99
|
+
capabilities={
|
100
|
+
Object {
|
101
|
+
"editableSnapshotName": true,
|
102
|
+
"limitSnapshotNameFormat": false,
|
103
|
+
"quiesceOption": true,
|
104
|
+
}
|
105
|
+
}
|
106
|
+
host={
|
107
|
+
Object {
|
108
|
+
"id": 42,
|
109
|
+
"name": "deep.thought",
|
110
|
+
}
|
111
|
+
}
|
112
|
+
key="SnapshotManagement"
|
113
|
+
/>
|
114
|
+
</CardTemplate>
|
115
|
+
`;
|
116
|
+
|
117
|
+
exports[`SnapshotManagementCard renders without optional Props 1`] = `
|
118
|
+
<CardTemplate
|
119
|
+
expandable={false}
|
120
|
+
header="Snapshots"
|
121
|
+
masonryLayout={false}
|
122
|
+
overrideDropdownProps={Object {}}
|
123
|
+
overrideGridProps={
|
124
|
+
Object {
|
125
|
+
"lg": 8,
|
126
|
+
"md": 12,
|
127
|
+
"xl": 8,
|
128
|
+
"xl2": 6,
|
129
|
+
}
|
130
|
+
}
|
131
|
+
/>
|
132
|
+
`;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './SnapshotManagementCard';
|
data/webpack/global_index.js
CHANGED
@@ -1,7 +1,20 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
|
1
3
|
import { registerReducer } from 'foremanReact/common/MountingService';
|
4
|
+
import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill';
|
5
|
+
|
2
6
|
import reducers from './reducers';
|
7
|
+
import SnapshotManagementCard from './components/SnapshotManagementCard';
|
3
8
|
|
4
9
|
// register reducers
|
5
10
|
Object.entries(reducers).forEach(([key, reducer]) =>
|
6
11
|
registerReducer(key, reducer)
|
7
12
|
);
|
13
|
+
|
14
|
+
// register HostDetails-Fill
|
15
|
+
addGlobalFill(
|
16
|
+
'host-overview-cards',
|
17
|
+
'foreman_snapshot_management-card',
|
18
|
+
<SnapshotManagementCard key="foreman_snapshot_management-card" />,
|
19
|
+
1000
|
20
|
+
);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_snapshot_management
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ATIX AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Foreman-plugin to manage snapshots in a virtual-hardware environments.
|
14
14
|
email:
|
@@ -48,12 +48,24 @@ files:
|
|
48
48
|
- lib/foreman_snapshot_management/version.rb
|
49
49
|
- lib/tasks/foreman_snapshot_management_tasks.rake
|
50
50
|
- locale/Makefile
|
51
|
+
- locale/cs_CZ/LC_MESSAGES/foreman_snapshot_management.mo
|
52
|
+
- locale/cs_CZ/foreman_snapshot_management.po
|
51
53
|
- locale/de/LC_MESSAGES/foreman_snapshot_management.mo
|
52
54
|
- locale/de/foreman_snapshot_management.po
|
55
|
+
- locale/el/LC_MESSAGES/foreman_snapshot_management.mo
|
56
|
+
- locale/el/foreman_snapshot_management.po
|
53
57
|
- locale/en/LC_MESSAGES/foreman_snapshot_management.mo
|
54
58
|
- locale/en/foreman_snapshot_management.po
|
55
59
|
- locale/foreman_snapshot_management.pot
|
60
|
+
- locale/fr/LC_MESSAGES/foreman_snapshot_management.mo
|
61
|
+
- locale/fr/foreman_snapshot_management.po
|
56
62
|
- locale/gemspec.rb
|
63
|
+
- locale/ja/LC_MESSAGES/foreman_snapshot_management.mo
|
64
|
+
- locale/ja/foreman_snapshot_management.po
|
65
|
+
- locale/ka/LC_MESSAGES/foreman_snapshot_management.mo
|
66
|
+
- locale/ka/foreman_snapshot_management.po
|
67
|
+
- locale/zh_CN/LC_MESSAGES/foreman_snapshot_management.mo
|
68
|
+
- locale/zh_CN/foreman_snapshot_management.po
|
57
69
|
- package.json
|
58
70
|
- test/controllers/api/v2/snapshots_test.rb
|
59
71
|
- test/controllers/foreman_snapshot_management/snapshots_controller_test.rb
|
@@ -87,6 +99,10 @@ files:
|
|
87
99
|
- webpack/components/SnapshotManagement/components/SnapshotList/snapshotList.scss
|
88
100
|
- webpack/components/SnapshotManagement/index.js
|
89
101
|
- webpack/components/SnapshotManagement/snapshotManagement.scss
|
102
|
+
- webpack/components/SnapshotManagementCard/SnapshotManagementCard.js
|
103
|
+
- webpack/components/SnapshotManagementCard/__tests__/SnapshotManagementCard.test.js
|
104
|
+
- webpack/components/SnapshotManagementCard/__tests__/__snapshots__/SnapshotManagementCard.test.js.snap
|
105
|
+
- webpack/components/SnapshotManagementCard/index.js
|
90
106
|
- webpack/global_index.js
|
91
107
|
- webpack/global_test_setup.js
|
92
108
|
- webpack/index.js
|
@@ -111,12 +127,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
127
|
- !ruby/object:Gem::Version
|
112
128
|
version: '0'
|
113
129
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
130
|
+
rubygems_version: 3.2.5
|
115
131
|
signing_key:
|
116
132
|
specification_version: 4
|
117
133
|
summary: Snapshot Management for machines on virtualization-platforms
|
118
134
|
test_files:
|
119
|
-
- test/controllers/api/v2/snapshots_test.rb
|
120
135
|
- test/controllers/foreman_snapshot_management/snapshots_controller_test.rb
|
121
|
-
- test/
|
136
|
+
- test/controllers/api/v2/snapshots_test.rb
|
122
137
|
- test/factories/proxmox_factory.rb
|
138
|
+
- test/test_plugin_helper.rb
|