bfg-common 1.3.518 → 1.3.520
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.
- package/components/atoms/alert/Alert.vue +1 -1
- package/components/atoms/modal/bySteps/BySteps.vue +1 -1
- package/components/atoms/tooltip/Signpost.vue +1 -0
- package/components/common/details/DetailsItem.vue +1 -1
- package/components/common/details/lib/models/interfaces.ts +7 -6
- package/components/common/select/radio/RadioGroup.vue +1 -0
- package/components/common/wizards/datastore/add/lib/config/stepItems.ts +39 -5
- package/components/common/wizards/datastore/add/local/createName/CreateName.vue +5 -5
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +21 -13
- package/components/common/wizards/datastore/add/nfs/version/lib/config/versionOptions.ts +2 -0
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +13 -5
- package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts +9 -1
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +9 -9
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +12 -8
- package/components/common/wizards/datastore/add/types/Types.vue +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="props.show" class="modal clr-wizard wizard-xl">
|
|
3
|
-
<div class="modal-dialog modal-xl relative">
|
|
3
|
+
<div class="modal-dialog modal-xl relative" :data-id="props.testId">
|
|
4
4
|
<div class="modal-content-wrapper">
|
|
5
5
|
<nav class="modal-nav clr-wizard-stepnav-wrapper">
|
|
6
6
|
<h1 class="clr-wizard-title">
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { UI_I_Button } from '~/components/common/tools/lib/models/interfaces'
|
|
2
2
|
|
|
3
3
|
export interface UI_I_DetailsItem {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
label: string
|
|
5
|
+
value: string
|
|
6
|
+
items: UI_I_DetailsItem[]
|
|
7
|
+
actions?: UI_I_Button[]
|
|
8
|
+
permission?: string[]
|
|
9
|
+
data?: any
|
|
10
|
+
testId?: string
|
|
10
11
|
}
|
|
@@ -11,11 +11,17 @@ const stepFromSharedStorm = (
|
|
|
11
11
|
mode: UI_T_WizardDatastoreMode
|
|
12
12
|
): UI_I_VerticalStepItem[] => {
|
|
13
13
|
const steps = [
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
text: localization.type,
|
|
16
|
+
disabled: false,
|
|
17
|
+
complete: false,
|
|
18
|
+
testId: 'create-datastore-select-type',
|
|
19
|
+
},
|
|
15
20
|
{
|
|
16
21
|
text: localization.nameAndDeviceSelection,
|
|
17
22
|
disabled: true,
|
|
18
23
|
complete: false,
|
|
24
|
+
testId: 'create-datastore-name-and-device-selection',
|
|
19
25
|
},
|
|
20
26
|
// {
|
|
21
27
|
// text: localization.vmfsVersion,
|
|
@@ -34,12 +40,14 @@ const stepFromSharedStorm = (
|
|
|
34
40
|
text: localization.partitionConfiguration,
|
|
35
41
|
disabled: true,
|
|
36
42
|
complete: false,
|
|
43
|
+
testId: 'create-datastore-partition-configuration',
|
|
37
44
|
})
|
|
38
45
|
}
|
|
39
46
|
steps.push({
|
|
40
47
|
text: localization.readyComplete,
|
|
41
48
|
disabled: true,
|
|
42
49
|
complete: false,
|
|
50
|
+
testId: 'create-datastore-ready-complete',
|
|
43
51
|
})
|
|
44
52
|
return steps
|
|
45
53
|
}
|
|
@@ -49,12 +57,23 @@ const stepFromNfs = (
|
|
|
49
57
|
mode: UI_T_WizardDatastoreMode
|
|
50
58
|
): UI_I_VerticalStepItem[] => {
|
|
51
59
|
const steps = [
|
|
52
|
-
{
|
|
53
|
-
|
|
60
|
+
{
|
|
61
|
+
text: localization.type,
|
|
62
|
+
disabled: false,
|
|
63
|
+
complete: false,
|
|
64
|
+
testId: 'create-datastore-select-type',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
text: localization.nfsVersion,
|
|
68
|
+
disabled: true,
|
|
69
|
+
complete: false,
|
|
70
|
+
testId: 'create-datastore-select-nfs-version',
|
|
71
|
+
},
|
|
54
72
|
{
|
|
55
73
|
text: localization.nameAndConfiguration,
|
|
56
74
|
disabled: true,
|
|
57
75
|
complete: false,
|
|
76
|
+
testId: 'create-datastore-name-and-configuration',
|
|
58
77
|
},
|
|
59
78
|
// {
|
|
60
79
|
// text: localization.kerberosAuthentication,
|
|
@@ -71,6 +90,7 @@ const stepFromNfs = (
|
|
|
71
90
|
text: localization.hostsAccessibility,
|
|
72
91
|
disabled: true,
|
|
73
92
|
complete: false,
|
|
93
|
+
testId: 'create-datastore-hosts-accessibility',
|
|
74
94
|
})
|
|
75
95
|
}
|
|
76
96
|
|
|
@@ -78,6 +98,7 @@ const stepFromNfs = (
|
|
|
78
98
|
text: localization.readyComplete,
|
|
79
99
|
disabled: true,
|
|
80
100
|
complete: false,
|
|
101
|
+
testId: 'create-datastore-ready-complete',
|
|
81
102
|
})
|
|
82
103
|
|
|
83
104
|
return steps
|
|
@@ -121,15 +142,28 @@ const stemFromLocal = (
|
|
|
121
142
|
): UI_I_VerticalStepItem[] => {
|
|
122
143
|
const isModeProcurator = mode === 'procurator'
|
|
123
144
|
return [
|
|
124
|
-
{
|
|
145
|
+
{
|
|
146
|
+
text: localization.type,
|
|
147
|
+
disabled: false,
|
|
148
|
+
complete: false,
|
|
149
|
+
testId: 'create-datastore-select-type',
|
|
150
|
+
},
|
|
125
151
|
{
|
|
126
152
|
text: localization[
|
|
127
153
|
isModeProcurator ? 'selectDatastoreName' : 'nameAndDeviceSelection'
|
|
128
154
|
],
|
|
129
155
|
disabled: true,
|
|
130
156
|
complete: false,
|
|
157
|
+
testId: `create-datastore-${
|
|
158
|
+
isModeProcurator ? 'select-datastore-name' : 'name-and-device-selection'
|
|
159
|
+
}`,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
text: localization.readyComplete,
|
|
163
|
+
disabled: true,
|
|
164
|
+
complete: false,
|
|
165
|
+
testId: 'create-datastore-ready-complete',
|
|
131
166
|
},
|
|
132
|
-
{ text: localization.readyComplete, disabled: true, complete: false },
|
|
133
167
|
]
|
|
134
168
|
}
|
|
135
169
|
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
<div class="create-datastore-name">
|
|
3
3
|
<atoms-alert
|
|
4
4
|
v-show="errors.length"
|
|
5
|
-
test-id="
|
|
5
|
+
test-id="creat-storage-name-alert-error"
|
|
6
6
|
status="alert-danger"
|
|
7
7
|
:items="errors"
|
|
8
8
|
@remove="onRemoveValidationErrors"
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
11
|
<div class="clr-form-control clr-row">
|
|
12
|
-
<label for="datastore-name" class="clr-control-label clr-col-md-2">
|
|
13
|
-
localization.datastoreName
|
|
14
|
-
|
|
12
|
+
<label for="datastore-name" class="clr-control-label clr-col-md-2">
|
|
13
|
+
{{ localization.datastoreName }}
|
|
14
|
+
</label>
|
|
15
15
|
|
|
16
16
|
<div class="clr-control-container" :class="nameErrorText && 'clr-error'">
|
|
17
17
|
<div class="flex-align-center">
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<atoms-the-icon class="error-icon" name="info-circle" />
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
|
-
<div class="clr-subtext
|
|
30
|
+
<div class="clr-subtext" data-id="datastore-name-field-require">
|
|
31
31
|
{{ nameErrorText }}
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<atoms-alert
|
|
13
13
|
v-show="alertInfo"
|
|
14
|
-
test-id="
|
|
14
|
+
test-id="configure-information-alert"
|
|
15
15
|
status="alert-info"
|
|
16
16
|
:items="[localization.nameAndConfigurationAlertInfo]"
|
|
17
17
|
@remove="alertInfo = false"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
<h6 class="nd-mt-0">{{ localization.nfsShareDetails }}</h6>
|
|
20
20
|
|
|
21
21
|
<div class="clr-form-control clr-row">
|
|
22
|
-
<label for="" class="clr-control-label clr-col-md-2">
|
|
23
|
-
localization.name
|
|
24
|
-
|
|
22
|
+
<label for="" class="clr-control-label clr-col-md-2">
|
|
23
|
+
{{ localization.name }}
|
|
24
|
+
</label>
|
|
25
25
|
|
|
26
26
|
<div
|
|
27
27
|
class="clr-control-container"
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
<atoms-the-icon class="error-icon" name="info-circle" />
|
|
41
41
|
</div>
|
|
42
42
|
|
|
43
|
-
<div class="clr-subtext
|
|
43
|
+
<div class="clr-subtext" data-id="datastore-name-field-require">
|
|
44
44
|
{{ nameErrorText }}
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
<div class="clr-form-control clr-row">
|
|
50
|
-
<label class="clr-control-label clr-col-md-2">
|
|
51
|
-
localization.folder
|
|
52
|
-
|
|
50
|
+
<label class="clr-control-label clr-col-md-2">
|
|
51
|
+
{{ localization.folder }}
|
|
52
|
+
</label>
|
|
53
53
|
|
|
54
54
|
<div
|
|
55
55
|
class="clr-control-container"
|
|
@@ -68,7 +68,11 @@
|
|
|
68
68
|
<atoms-the-icon class="error-icon" name="info-circle" />
|
|
69
69
|
</div>
|
|
70
70
|
|
|
71
|
-
<div
|
|
71
|
+
<div
|
|
72
|
+
v-if="folderErrorText"
|
|
73
|
+
class="clr-subtext"
|
|
74
|
+
data-id="folder-name-field-require"
|
|
75
|
+
>
|
|
72
76
|
{{ folderErrorText }}
|
|
73
77
|
</div>
|
|
74
78
|
<div v-else class="clr-subtext">E.g: /vols/vol0/datastore-001</div>
|
|
@@ -76,9 +80,9 @@
|
|
|
76
80
|
</div>
|
|
77
81
|
|
|
78
82
|
<div class="nd-mt-0 clr-form-control clr-row">
|
|
79
|
-
<label class="clr-control-label clr-col-md-2">
|
|
80
|
-
localization.server
|
|
81
|
-
|
|
83
|
+
<label class="clr-control-label clr-col-md-2">
|
|
84
|
+
{{ localization.server }}
|
|
85
|
+
</label>
|
|
82
86
|
|
|
83
87
|
<div
|
|
84
88
|
class="clr-control-container"
|
|
@@ -96,7 +100,11 @@
|
|
|
96
100
|
/>
|
|
97
101
|
<atoms-the-icon class="error-icon" name="info-circle" />
|
|
98
102
|
</div>
|
|
99
|
-
<div
|
|
103
|
+
<div
|
|
104
|
+
v-if="serverErrorText"
|
|
105
|
+
class="clr-subtext"
|
|
106
|
+
data-id="server-name-field-require"
|
|
107
|
+
>
|
|
100
108
|
{{ serverErrorText }}
|
|
101
109
|
</div>
|
|
102
110
|
<div v-else class="clr-subtext">
|
|
@@ -9,12 +9,14 @@ export const nfsVersionFunc = (
|
|
|
9
9
|
value: 'nfs-3',
|
|
10
10
|
disabled: false,
|
|
11
11
|
description: localization.nfsVersionDesc1,
|
|
12
|
+
testId: 'datastore-nfs-version-3',
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
15
|
label: 'NFS 4.1',
|
|
15
16
|
value: 'nfs-4.1',
|
|
16
17
|
disabled: false,
|
|
17
18
|
description: localization.nfsVersionDesc2,
|
|
19
|
+
testId: 'datastore-nfs-version-4.1',
|
|
18
20
|
},
|
|
19
21
|
]
|
|
20
22
|
}
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
<common-details-list :items="properties" class="ready-complete__list list">
|
|
6
6
|
<template #default="{ item }">
|
|
7
|
-
<common-details-item
|
|
7
|
+
<common-details-item
|
|
8
|
+
:has-children="true"
|
|
9
|
+
open-by-default
|
|
10
|
+
>
|
|
8
11
|
<template #stackBlockKey>
|
|
9
|
-
<span class="list__labels">
|
|
10
|
-
localization.chosenDatastoreName
|
|
11
|
-
|
|
12
|
+
<span class="list__labels">
|
|
13
|
+
{{ localization.chosenDatastoreName }}
|
|
14
|
+
</span>
|
|
12
15
|
</template>
|
|
13
16
|
|
|
14
17
|
<template #stackChildren>
|
|
@@ -18,6 +21,7 @@
|
|
|
18
21
|
>
|
|
19
22
|
<common-details-item
|
|
20
23
|
:has-children="false"
|
|
24
|
+
:test-id="item2.testId"
|
|
21
25
|
class="list__default-style"
|
|
22
26
|
>
|
|
23
27
|
<template #stackBlockKey>
|
|
@@ -27,7 +31,11 @@
|
|
|
27
31
|
</template>
|
|
28
32
|
<template #stackBlockContent>
|
|
29
33
|
<div v-if="item2.data">
|
|
30
|
-
<div
|
|
34
|
+
<div
|
|
35
|
+
v-for="item3 in item2.data"
|
|
36
|
+
:key="item3"
|
|
37
|
+
class="flex-align-center"
|
|
38
|
+
>
|
|
31
39
|
<div class="vsphere-icon-host"></div>
|
|
32
40
|
<span>{{ item3 }}</span>
|
|
33
41
|
</div>
|
package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts
CHANGED
|
@@ -32,6 +32,7 @@ const nfsDetailsFunc = (
|
|
|
32
32
|
label: localization.version,
|
|
33
33
|
value: version.toUpperCase(),
|
|
34
34
|
items: [],
|
|
35
|
+
testId: 'view-selected-nfs-version-in-complete',
|
|
35
36
|
},
|
|
36
37
|
],
|
|
37
38
|
actions: [],
|
|
@@ -44,16 +45,19 @@ const nfsDetailsFunc = (
|
|
|
44
45
|
label: localization.datastoreName,
|
|
45
46
|
value: name,
|
|
46
47
|
items: [],
|
|
48
|
+
testId: 'view-storage-name-in-complete',
|
|
47
49
|
},
|
|
48
50
|
{
|
|
49
51
|
label: localization.server,
|
|
50
52
|
value: server,
|
|
51
53
|
items: [],
|
|
54
|
+
testId: 'view-server-name-in-complete',
|
|
52
55
|
},
|
|
53
56
|
{
|
|
54
57
|
label: localization.folder,
|
|
55
58
|
value: folder,
|
|
56
59
|
items: [],
|
|
60
|
+
testId: 'view-folder-name-in-complete',
|
|
57
61
|
},
|
|
58
62
|
// {
|
|
59
63
|
// label: localization.accessMode,
|
|
@@ -78,7 +82,7 @@ const nfsDetailsFunc = (
|
|
|
78
82
|
},
|
|
79
83
|
],
|
|
80
84
|
actions: [],
|
|
81
|
-
}
|
|
85
|
+
})
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
return details
|
|
@@ -98,6 +102,7 @@ const localDetailsFunc = (
|
|
|
98
102
|
label: localization.datastoreName,
|
|
99
103
|
value: isSphereWizard ? event.name : event,
|
|
100
104
|
items: [],
|
|
105
|
+
testId: 'view-storage-name-in-complete',
|
|
101
106
|
},
|
|
102
107
|
],
|
|
103
108
|
actions: [],
|
|
@@ -109,6 +114,7 @@ const localDetailsFunc = (
|
|
|
109
114
|
label: localization.host,
|
|
110
115
|
value: event.host,
|
|
111
116
|
items: [],
|
|
117
|
+
testId: '',
|
|
112
118
|
})
|
|
113
119
|
}
|
|
114
120
|
return data
|
|
@@ -129,11 +135,13 @@ const sharedStormDetailsFunc = (
|
|
|
129
135
|
label: localization.datastoreName,
|
|
130
136
|
value: name,
|
|
131
137
|
items: [],
|
|
138
|
+
testId: 'view-storage-name-in-complete',
|
|
132
139
|
},
|
|
133
140
|
{
|
|
134
141
|
label: localization.diskLun,
|
|
135
142
|
value: constructLunDiskItems(lunDisk),
|
|
136
143
|
items: [],
|
|
144
|
+
testId: 'view-selected-lun-disks-in-complete',
|
|
137
145
|
},
|
|
138
146
|
],
|
|
139
147
|
actions: [],
|
package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
<div class="device-selection">
|
|
3
3
|
<atoms-alert
|
|
4
4
|
v-show="errors.length"
|
|
5
|
-
test-id="device-selection-
|
|
5
|
+
test-id="device-selection-alert-error"
|
|
6
6
|
status="alert-danger"
|
|
7
7
|
:items="errors"
|
|
8
8
|
@remove="onCloseAlertDanger"
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
11
|
<div class="clr-form-control clr-row">
|
|
12
|
-
<label for="" class="clr-control-label clr-col-md-2">
|
|
13
|
-
localization.name
|
|
14
|
-
|
|
12
|
+
<label for="" class="clr-control-label clr-col-md-2">
|
|
13
|
+
{{ localization.name }}
|
|
14
|
+
</label>
|
|
15
15
|
|
|
16
16
|
<div
|
|
17
17
|
class="clr-control-container"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<atoms-the-icon class="error-icon" name="info-circle" />
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
|
-
<div class="clr-subtext
|
|
33
|
+
<div class="clr-subtext" data-id="datastore-name-filed-require">
|
|
34
34
|
{{ formErrors?.errors?.name?.[0] || '' }}
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
<atoms-alert
|
|
40
40
|
v-show="alertInfo"
|
|
41
|
-
test-id="device-selection-
|
|
41
|
+
test-id="device-selection-information-alert"
|
|
42
42
|
class="device-selection__alert-info"
|
|
43
43
|
status="alert-info"
|
|
44
44
|
:items="[localization.nameAndDeviceSelectionAlertInfo]"
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
v-if="props.mode === 'sphere' && !props.hostId"
|
|
50
50
|
class="clr-form-control clr-row"
|
|
51
51
|
>
|
|
52
|
-
<label class="clr-control-label clr-col-12 clr-col-md-2">
|
|
53
|
-
localization.selectHost
|
|
54
|
-
|
|
52
|
+
<label class="clr-control-label clr-col-12 clr-col-md-2">
|
|
53
|
+
{{ localization.selectHost }}
|
|
54
|
+
</label>
|
|
55
55
|
|
|
56
56
|
<div>
|
|
57
57
|
<div class="clr-select-wrapper">
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<input
|
|
42
42
|
id="datastore-size-input-0"
|
|
43
43
|
v-model="datastoreSize"
|
|
44
|
-
data-id="
|
|
44
|
+
data-id="select-storm-storage-size-range-field"
|
|
45
45
|
type="range"
|
|
46
46
|
min="0"
|
|
47
47
|
:max="countDatastoreSizeToGb"
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
<input
|
|
56
56
|
id="datastore-size-input-1"
|
|
57
|
+
data-id="select-storm-storage-size-input-field"
|
|
57
58
|
v-model="datastoreSize"
|
|
58
59
|
type="number"
|
|
59
60
|
min="0"
|
|
@@ -74,7 +75,8 @@
|
|
|
74
75
|
<div>
|
|
75
76
|
<div class="clr-select-wrapper">
|
|
76
77
|
<select
|
|
77
|
-
id="
|
|
78
|
+
id="storm-configuration-block-size"
|
|
79
|
+
data-id="storm-configuration-block-size"
|
|
78
80
|
v-model="selectedSize"
|
|
79
81
|
class="dropdown-toggle"
|
|
80
82
|
@change="onSelectHost"
|
|
@@ -93,14 +95,15 @@
|
|
|
93
95
|
</div>
|
|
94
96
|
|
|
95
97
|
<div class="clr-form-control clr-row">
|
|
96
|
-
<label class="clr-col-md-4 clr-control-label">
|
|
97
|
-
localization.spaceReclamationGranularity
|
|
98
|
-
|
|
98
|
+
<label class="clr-col-md-4 clr-control-label">
|
|
99
|
+
{{ localization.spaceReclamationGranularity }}
|
|
100
|
+
</label>
|
|
99
101
|
|
|
100
102
|
<div>
|
|
101
103
|
<div class="clr-select-wrapper">
|
|
102
104
|
<select
|
|
103
105
|
id="granularity-select"
|
|
106
|
+
data-id="storm-configuration-space-granularity"
|
|
104
107
|
v-model="selectedGranularity"
|
|
105
108
|
class="dropdown-toggle"
|
|
106
109
|
@change="onSelectHost"
|
|
@@ -119,14 +122,15 @@
|
|
|
119
122
|
</div>
|
|
120
123
|
|
|
121
124
|
<div class="clr-form-control clr-row">
|
|
122
|
-
<label class="clr-col-md-4 clr-control-label">
|
|
123
|
-
localization.spaceReclamationPriority
|
|
124
|
-
|
|
125
|
+
<label class="clr-col-md-4 clr-control-label">
|
|
126
|
+
{{ localization.spaceReclamationPriority }}
|
|
127
|
+
</label>
|
|
125
128
|
|
|
126
129
|
<div>
|
|
127
130
|
<div class="clr-select-wrapper">
|
|
128
131
|
<select
|
|
129
132
|
id="priority-select"
|
|
133
|
+
data-id="storm-configuration-space-priority"
|
|
130
134
|
v-model="selectedPriority"
|
|
131
135
|
class="dropdown-toggle"
|
|
132
136
|
@change="onSelectHost"
|