foreman_snapshot_management 2.0.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/Rakefile +1 -1
- data/app/assets/javascripts/foreman_snapshot_management/locale/cs_CZ/foreman_snapshot_management.js +203 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/de/foreman_snapshot_management.js +201 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/el/foreman_snapshot_management.js +201 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/en/foreman_snapshot_management.js +198 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/fr/foreman_snapshot_management.js +203 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/ja/foreman_snapshot_management.js +199 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/ka/foreman_snapshot_management.js +201 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/zh_CN/foreman_snapshot_management.js +199 -0
- data/app/controllers/api/v2/snapshots_controller.rb +7 -3
- data/app/controllers/concerns/foreman/controller/parameters/snapshot.rb +1 -1
- data/app/controllers/foreman_snapshot_management/snapshots_controller.rb +20 -4
- data/app/helpers/foreman_snapshot_management/hosts_helper.rb +16 -0
- data/app/models/concerns/fog_extensions/proxmox/snapshots/mock.rb +1 -1
- data/app/models/concerns/fog_extensions/vsphere/snapshots/mock.rb +2 -2
- data/app/models/concerns/fog_extensions/vsphere/snapshots/real.rb +1 -1
- data/app/models/foreman_snapshot_management/proxmox_extensions.rb +5 -4
- data/app/models/foreman_snapshot_management/snapshot.rb +10 -9
- 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/config/routes.rb +1 -1
- data/lib/foreman_snapshot_management/engine.rb +24 -29
- data/lib/foreman_snapshot_management/version.rb +1 -1
- data/lib/tasks/foreman_snapshot_management_tasks.rake +1 -1
- data/locale/Makefile +8 -5
- data/locale/cs_CZ/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/cs_CZ/foreman_snapshot_management.po +203 -0
- data/locale/de/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/de/foreman_snapshot_management.po +22 -14
- data/locale/el/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/el/foreman_snapshot_management.po +198 -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 +204 -0
- data/locale/ja/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/ja/foreman_snapshot_management.po +197 -0
- data/locale/ka/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/ka/foreman_snapshot_management.po +198 -0
- data/locale/zh_CN/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/zh_CN/foreman_snapshot_management.po +199 -0
- data/package.json +4 -3
- data/test/controllers/api/v2/snapshots_test.rb +1 -1
- data/test/controllers/foreman_snapshot_management/snapshots_controller_test.rb +18 -3
- data/webpack/components/SnapshotManagement/SnapshotManagement.js +2 -0
- data/webpack/components/SnapshotManagement/components/SnapshotForm/SnapshotForm.js +53 -11
- data/webpack/components/SnapshotManagement/components/SnapshotForm/__tests__/__snapshots__/SnapshotForm.test.js.snap +262 -24
- data/webpack/components/SnapshotManagementCard/SnapshotManagementCard.js +64 -0
- data/webpack/components/SnapshotManagementCard/__tests__/SnapshotManagementCard.test.js +54 -0
- data/webpack/components/SnapshotManagementCard/__tests__/__snapshots__/SnapshotManagementCard.test.js.snap +117 -0
- data/webpack/components/SnapshotManagementCard/index.js +1 -0
- data/webpack/global_index.js +13 -0
- metadata +33 -10
- data/app/helpers/concerns/foreman_snapshot_management/hosts_helper_extension.rb +0 -9
@@ -0,0 +1,117 @@
|
|
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`] = `""`;
|
@@ -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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ATIX AG
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Foreman-plugin to manage snapshots in a virtual-hardware environments.
|
14
14
|
email:
|
@@ -20,10 +20,18 @@ files:
|
|
20
20
|
- LICENSE
|
21
21
|
- README.md
|
22
22
|
- Rakefile
|
23
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/cs_CZ/foreman_snapshot_management.js
|
24
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/de/foreman_snapshot_management.js
|
25
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/el/foreman_snapshot_management.js
|
26
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/en/foreman_snapshot_management.js
|
27
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/fr/foreman_snapshot_management.js
|
28
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/ja/foreman_snapshot_management.js
|
29
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/ka/foreman_snapshot_management.js
|
30
|
+
- app/assets/javascripts/foreman_snapshot_management/locale/zh_CN/foreman_snapshot_management.js
|
23
31
|
- app/controllers/api/v2/snapshots_controller.rb
|
24
32
|
- app/controllers/concerns/foreman/controller/parameters/snapshot.rb
|
25
33
|
- app/controllers/foreman_snapshot_management/snapshots_controller.rb
|
26
|
-
- app/helpers/
|
34
|
+
- app/helpers/foreman_snapshot_management/hosts_helper.rb
|
27
35
|
- app/helpers/foreman_snapshot_management/snapshot_helper.rb
|
28
36
|
- app/models/concerns/fog_extensions/proxmox/snapshots/mock.rb
|
29
37
|
- app/models/concerns/fog_extensions/vsphere/snapshots/mock.rb
|
@@ -48,12 +56,24 @@ files:
|
|
48
56
|
- lib/foreman_snapshot_management/version.rb
|
49
57
|
- lib/tasks/foreman_snapshot_management_tasks.rake
|
50
58
|
- locale/Makefile
|
59
|
+
- locale/cs_CZ/LC_MESSAGES/foreman_snapshot_management.mo
|
60
|
+
- locale/cs_CZ/foreman_snapshot_management.po
|
51
61
|
- locale/de/LC_MESSAGES/foreman_snapshot_management.mo
|
52
62
|
- locale/de/foreman_snapshot_management.po
|
63
|
+
- locale/el/LC_MESSAGES/foreman_snapshot_management.mo
|
64
|
+
- locale/el/foreman_snapshot_management.po
|
53
65
|
- locale/en/LC_MESSAGES/foreman_snapshot_management.mo
|
54
66
|
- locale/en/foreman_snapshot_management.po
|
55
67
|
- locale/foreman_snapshot_management.pot
|
68
|
+
- locale/fr/LC_MESSAGES/foreman_snapshot_management.mo
|
69
|
+
- locale/fr/foreman_snapshot_management.po
|
56
70
|
- locale/gemspec.rb
|
71
|
+
- locale/ja/LC_MESSAGES/foreman_snapshot_management.mo
|
72
|
+
- locale/ja/foreman_snapshot_management.po
|
73
|
+
- locale/ka/LC_MESSAGES/foreman_snapshot_management.mo
|
74
|
+
- locale/ka/foreman_snapshot_management.po
|
75
|
+
- locale/zh_CN/LC_MESSAGES/foreman_snapshot_management.mo
|
76
|
+
- locale/zh_CN/foreman_snapshot_management.po
|
57
77
|
- package.json
|
58
78
|
- test/controllers/api/v2/snapshots_test.rb
|
59
79
|
- test/controllers/foreman_snapshot_management/snapshots_controller_test.rb
|
@@ -87,6 +107,10 @@ files:
|
|
87
107
|
- webpack/components/SnapshotManagement/components/SnapshotList/snapshotList.scss
|
88
108
|
- webpack/components/SnapshotManagement/index.js
|
89
109
|
- webpack/components/SnapshotManagement/snapshotManagement.scss
|
110
|
+
- webpack/components/SnapshotManagementCard/SnapshotManagementCard.js
|
111
|
+
- webpack/components/SnapshotManagementCard/__tests__/SnapshotManagementCard.test.js
|
112
|
+
- webpack/components/SnapshotManagementCard/__tests__/__snapshots__/SnapshotManagementCard.test.js.snap
|
113
|
+
- webpack/components/SnapshotManagementCard/index.js
|
90
114
|
- webpack/global_index.js
|
91
115
|
- webpack/global_test_setup.js
|
92
116
|
- webpack/index.js
|
@@ -96,7 +120,7 @@ homepage: https://www.orcharhino.com
|
|
96
120
|
licenses:
|
97
121
|
- GPL-3.0-only
|
98
122
|
metadata: {}
|
99
|
-
post_install_message:
|
123
|
+
post_install_message:
|
100
124
|
rdoc_options: []
|
101
125
|
require_paths:
|
102
126
|
- lib
|
@@ -111,13 +135,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
135
|
- !ruby/object:Gem::Version
|
112
136
|
version: '0'
|
113
137
|
requirements: []
|
114
|
-
|
115
|
-
|
116
|
-
signing_key:
|
138
|
+
rubygems_version: 3.3.15
|
139
|
+
signing_key:
|
117
140
|
specification_version: 4
|
118
141
|
summary: Snapshot Management for machines on virtualization-platforms
|
119
142
|
test_files:
|
143
|
+
- test/controllers/api/v2/snapshots_test.rb
|
144
|
+
- test/controllers/foreman_snapshot_management/snapshots_controller_test.rb
|
120
145
|
- test/factories/proxmox_factory.rb
|
121
146
|
- test/test_plugin_helper.rb
|
122
|
-
- test/controllers/foreman_snapshot_management/snapshots_controller_test.rb
|
123
|
-
- test/controllers/api/v2/snapshots_test.rb
|