You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"FixedFSGroup=nil FSGroupVolumeAttributeKey='', should return nil gid": {
154
+
"FixedFSGroup=nil meta.VolumeMountGroup='' FSGroupVolumeAttributeKey='', should return nil gid": {
154
155
fixedFSGroup: nil,
156
+
metaVolumeMountGroup: "",
155
157
fsGroupVolumeAttributeKey: "",
156
158
volumeContext: map[string]string{},
157
159
expGID: nil,
158
160
expErr: false,
159
161
},
160
-
"FixedFSGroup=10 FSGroupVolumeAttributeKey='', should return 10": {
162
+
"FixedFSGroup=10 meta.VolumeMountGroup='' FSGroupVolumeAttributeKey='', should return 10": {
161
163
fixedFSGroup: intPtr(10),
164
+
metaVolumeMountGroup: "",
162
165
fsGroupVolumeAttributeKey: "",
163
166
volumeContext: map[string]string{},
164
167
expGID: intPtr(10),
165
168
expErr: false,
166
169
},
167
-
"FixedFSGroup=nil FSGroupVolumeAttributeKey=defined but not present in context, should return nil": {
170
+
"FixedFSGroup=nil meta.VolumeMountGroup='70' FSGroupVolumeAttributeKey='', should return 70": {
168
171
fixedFSGroup: nil,
172
+
metaVolumeMountGroup: "70",
173
+
fsGroupVolumeAttributeKey: "",
174
+
volumeContext: map[string]string{},
175
+
expGID: intPtr(70),
176
+
expErr: false,
177
+
},
178
+
"FixedFSGroup=nil meta.VolumeMountGroup='' FSGroupVolumeAttributeKey=defined but not present in context, should return nil": {
179
+
fixedFSGroup: nil,
180
+
metaVolumeMountGroup: "",
169
181
fsGroupVolumeAttributeKey: "fs-gid",
170
182
volumeContext: map[string]string{},
171
183
expGID: nil,
172
184
expErr: false,
173
185
},
174
-
"FixedFSGroup=nil FSGroupVolumeAttributeKey=defined and present in context, should return 20": {
186
+
"FixedFSGroup=nil meta.VolumeMountGroup='70' FSGroupVolumeAttributeKey=defined but not present in context, should return 70": {
187
+
fixedFSGroup: nil,
188
+
metaVolumeMountGroup: "70",
189
+
fsGroupVolumeAttributeKey: "fs-gid",
190
+
volumeContext: map[string]string{},
191
+
expGID: intPtr(70),
192
+
expErr: false,
193
+
},
194
+
"FixedFSGroup=nil meta.VolumeMountGroup='' FSGroupVolumeAttributeKey=defined and present in context, should return 20": {
195
+
fixedFSGroup: nil,
196
+
metaVolumeMountGroup: "",
197
+
fsGroupVolumeAttributeKey: "fs-gid",
198
+
volumeContext: map[string]string{
199
+
"fs-gid": "20",
200
+
},
201
+
expGID: intPtr(20),
202
+
expErr: false,
203
+
},
204
+
"FixedFSGroup=nil meta.VolumeMountGroup='10' FSGroupVolumeAttributeKey=defined and present in context, should return 20": {
175
205
fixedFSGroup: nil,
206
+
metaVolumeMountGroup: "10",
176
207
fsGroupVolumeAttributeKey: "fs-gid",
177
208
volumeContext: map[string]string{
178
209
"fs-gid": "20",
179
210
},
180
211
expGID: intPtr(20),
181
212
expErr: false,
182
213
},
183
-
"FixedFSGroup=nil FSGroupVolumeAttributeKey=defined and present in context but value of 0, should error": {
214
+
"FixedFSGroup=nil meta.VolumeMountGroup='' FSGroupVolumeAttributeKey=defined and present in context but value of 0, should error": {
184
215
fixedFSGroup: nil,
216
+
metaVolumeMountGroup: "",
185
217
fsGroupVolumeAttributeKey: "fs-gid",
186
218
volumeContext: map[string]string{
187
219
"fs-gid": "0",
188
220
},
189
221
expGID: nil,
190
222
expErr: true,
191
223
},
192
-
"FixedFSGroup=nil FSGroupVolumeAttributeKey=defined and present in context but value of -1, should error": {
224
+
"FixedFSGroup=nil meta.VolumeMountGroup='' FSGroupVolumeAttributeKey=defined and present in context but value of -1, should error": {
193
225
fixedFSGroup: nil,
226
+
metaVolumeMountGroup: "",
194
227
fsGroupVolumeAttributeKey: "fs-gid",
195
228
volumeContext: map[string]string{
196
229
"fs-gid": "-1",
197
230
},
198
231
expGID: nil,
199
232
expErr: true,
200
233
},
201
-
"FixedFSGroup=nil FSGroupVolumeAttributeKey=defined and present in context but value greater than the max gid, should error": {
234
+
"FixedFSGroup=nil meta.VolumeMountGroup='' FSGroupVolumeAttributeKey=defined and present in context but value greater than the max gid, should error": {
202
235
fixedFSGroup: nil,
236
+
metaVolumeMountGroup: "",
203
237
fsGroupVolumeAttributeKey: "fs-gid",
204
238
volumeContext: map[string]string{
205
239
"fs-gid": "4294967296",
206
240
},
207
241
expGID: nil,
208
242
expErr: true,
209
243
},
210
-
"FixedFSGroup=nil FSGroupVolumeAttributeKey=defined and present in context but with bad value, should return error": {
244
+
"FixedFSGroup=nil meta.VolumeMountGroup='' FSGroupVolumeAttributeKey=defined and present in context but with bad value, should return error": {
211
245
fixedFSGroup: nil,
246
+
metaVolumeMountGroup: "",
212
247
fsGroupVolumeAttributeKey: "fs-gid",
213
248
volumeContext: map[string]string{
214
249
"fs-gid": "bad-value",
215
250
},
216
251
expGID: nil,
217
252
expErr: true,
218
253
},
219
-
"FixedFSGroup=10 FSGroupVolumeAttributeKey=defined and present in context, should return superseding FixedFSGroup (10)": {
254
+
"FixedFSGroup=10 meta.VolumeMountGroup='' FSGroupVolumeAttributeKey=defined and present in context, should return superseding FixedFSGroup (10)": {
0 commit comments