We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a3a9e6 + 9574140 commit 854e0c1Copy full SHA for 854e0c1
deviceplugin/path_test.go
@@ -309,6 +309,38 @@ func TestDiscoverPaths(t *testing.T) {
309
out: []device{},
310
err: nil,
311
},
312
+ {
313
+ name: "mount directory",
314
+ ds: &DeviceSpec{
315
+ Name: "input",
316
+ Groups: []*Group{
317
318
+ Paths: []*Path{
319
320
+ Path: "/dev/input",
321
+ Type: MountPathType,
322
+ },
323
324
325
326
327
+ fs: fstest.MapFS{
328
+ "dev/input/event0": {},
329
+ "dev/input/event1": {},
330
+ "dev/input/event2": {},
331
332
+ out: []device{
333
334
+ mounts: []*v1beta1.Mount{
335
336
+ ContainerPath: "/dev/input",
337
+ HostPath: "/dev/input",
338
339
340
341
342
+ err: nil,
343
344
} {
345
t.Run(tc.name, func(t *testing.T) {
346
tc.ds.Default()
0 commit comments