foreman_snapshot_management 4.3.0 → 4.4.0
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_snapshot_management/version.rb +1 -1
- data/webpack/components/SnapshotManagement/SnapshotManagementReducer.js +0 -7
- data/webpack/components/SnapshotManagement/SnapshotManagementSelectors.js +0 -1
- data/webpack/components/SnapshotManagement/__tests__/SnapshotManagement.test.js +35 -0
- data/webpack/components/SnapshotManagement/__tests__/__snapshots__/SnapshotManagementReducer.test.js.snap +0 -3
- data/webpack/components/SnapshotManagement/components/SnapshotForm/SnapshotForm.js +33 -67
- data/webpack/components/SnapshotManagement/components/SnapshotForm/SnapshotFormField.js +62 -0
- data/webpack/components/SnapshotManagement/components/SnapshotForm/SnapshotFormHelper.js +64 -0
- data/webpack/components/SnapshotManagement/components/SnapshotForm/__tests__/SnapshotForm.test.js +72 -24
- data/webpack/components/SnapshotManagement/components/SnapshotFormModal/SnapshotFormModal.js +1 -0
- data/webpack/components/SnapshotManagement/components/SnapshotFormModal/__tests__/SnapshotFormModal.test.js +36 -9
- data/webpack/components/SnapshotManagement/components/SnapshotList/SnapshotList.js +185 -229
- data/webpack/components/SnapshotManagement/components/SnapshotList/SnapshotListHelper.js +55 -22
- data/webpack/components/SnapshotManagement/components/SnapshotList/__tests__/SnapshotList.test.js +73 -54
- data/webpack/components/SnapshotManagement/components/SnapshotList/snapshotList.scss +6 -0
- data/webpack/components/SnapshotManagement/index.js +0 -1
- data/webpack/components/SnapshotManagementCard/__tests__/SnapshotManagementCard.test.js +28 -17
- data/webpack/test_setup.js +0 -5
- metadata +6 -7
- data/webpack/components/SnapshotManagement/components/SnapshotForm/__tests__/__snapshots__/SnapshotForm.test.js.snap +0 -571
- data/webpack/components/SnapshotManagement/components/SnapshotFormModal/__tests__/__snapshots__/SnapshotFormModal.test.js.snap +0 -57
- data/webpack/components/SnapshotManagement/components/SnapshotList/__tests__/__snapshots__/SnapshotList.test.js.snap +0 -1081
- data/webpack/components/SnapshotManagementCard/__tests__/__snapshots__/SnapshotManagementCard.test.js.snap +0 -122
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`SnapshotManagementCard renders with NotSupported CR capabilities 1`] = `""`;
|
|
4
|
-
|
|
5
|
-
exports[`SnapshotManagementCard renders with Props 1`] = `
|
|
6
|
-
<CardTemplate
|
|
7
|
-
expandable={false}
|
|
8
|
-
header="Snapshots"
|
|
9
|
-
masonryLayout={false}
|
|
10
|
-
overrideDropdownProps={Object {}}
|
|
11
|
-
overrideGridProps={
|
|
12
|
-
Object {
|
|
13
|
-
"lg": 8,
|
|
14
|
-
"md": 12,
|
|
15
|
-
"xl": 8,
|
|
16
|
-
"xl2": 6,
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
>
|
|
20
|
-
<Connect(SnapshotManagement)
|
|
21
|
-
canCreate={true}
|
|
22
|
-
canDelete={false}
|
|
23
|
-
canRevert={true}
|
|
24
|
-
canUpdate={false}
|
|
25
|
-
host={
|
|
26
|
-
Object {
|
|
27
|
-
"id": 42,
|
|
28
|
-
"name": "deep.thought",
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
hostCapabilities={
|
|
32
|
-
Object {
|
|
33
|
-
"editableSnapshotName": false,
|
|
34
|
-
"limitSnapshotNameFormat": false,
|
|
35
|
-
"quiesceOption": false,
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
key="SnapshotManagement"
|
|
39
|
-
onSubmit={[MockFunction]}
|
|
40
|
-
/>
|
|
41
|
-
</CardTemplate>
|
|
42
|
-
`;
|
|
43
|
-
|
|
44
|
-
exports[`SnapshotManagementCard renders with Proxmox capabilities 1`] = `
|
|
45
|
-
<CardTemplate
|
|
46
|
-
expandable={false}
|
|
47
|
-
header="Snapshots"
|
|
48
|
-
masonryLayout={false}
|
|
49
|
-
overrideDropdownProps={Object {}}
|
|
50
|
-
overrideGridProps={
|
|
51
|
-
Object {
|
|
52
|
-
"lg": 8,
|
|
53
|
-
"md": 12,
|
|
54
|
-
"xl": 8,
|
|
55
|
-
"xl2": 6,
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
>
|
|
59
|
-
<Connect(SnapshotManagement)
|
|
60
|
-
canCreate={true}
|
|
61
|
-
canDelete={false}
|
|
62
|
-
canRevert={true}
|
|
63
|
-
canUpdate={false}
|
|
64
|
-
host={
|
|
65
|
-
Object {
|
|
66
|
-
"id": 42,
|
|
67
|
-
"name": "deep.thought",
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
hostCapabilities={
|
|
71
|
-
Object {
|
|
72
|
-
"editableSnapshotName": false,
|
|
73
|
-
"limitSnapshotNameFormat": true,
|
|
74
|
-
"quiesceOption": false,
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
key="SnapshotManagement"
|
|
78
|
-
onSubmit={[MockFunction]}
|
|
79
|
-
/>
|
|
80
|
-
</CardTemplate>
|
|
81
|
-
`;
|
|
82
|
-
|
|
83
|
-
exports[`SnapshotManagementCard renders with VMWare capabilities 1`] = `
|
|
84
|
-
<CardTemplate
|
|
85
|
-
expandable={false}
|
|
86
|
-
header="Snapshots"
|
|
87
|
-
masonryLayout={false}
|
|
88
|
-
overrideDropdownProps={Object {}}
|
|
89
|
-
overrideGridProps={
|
|
90
|
-
Object {
|
|
91
|
-
"lg": 8,
|
|
92
|
-
"md": 12,
|
|
93
|
-
"xl": 8,
|
|
94
|
-
"xl2": 6,
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
>
|
|
98
|
-
<Connect(SnapshotManagement)
|
|
99
|
-
canCreate={true}
|
|
100
|
-
canDelete={false}
|
|
101
|
-
canRevert={true}
|
|
102
|
-
canUpdate={false}
|
|
103
|
-
host={
|
|
104
|
-
Object {
|
|
105
|
-
"id": 42,
|
|
106
|
-
"name": "deep.thought",
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
hostCapabilities={
|
|
110
|
-
Object {
|
|
111
|
-
"editableSnapshotName": true,
|
|
112
|
-
"limitSnapshotNameFormat": false,
|
|
113
|
-
"quiesceOption": true,
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
key="SnapshotManagement"
|
|
117
|
-
onSubmit={[MockFunction]}
|
|
118
|
-
/>
|
|
119
|
-
</CardTemplate>
|
|
120
|
-
`;
|
|
121
|
-
|
|
122
|
-
exports[`SnapshotManagementCard renders without optional Props 1`] = `""`;
|