@@ -20,7 +20,6 @@ import (
20
20
"os"
21
21
"testing"
22
22
23
- "github.com/container-orchestrated-devices/container-device-interface/specs-go"
24
23
cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
25
24
oci "github.com/opencontainers/runtime-spec/specs-go"
26
25
"github.com/stretchr/testify/require"
@@ -503,15 +502,15 @@ func TestAppend(t *testing.T) {
503
502
dst : nil ,
504
503
src : []* ContainerEdits {
505
504
{
506
- ContainerEdits : & specs .ContainerEdits {
505
+ ContainerEdits : & cdi .ContainerEdits {
507
506
Env : []string {
508
507
"var1=val1" ,
509
508
},
510
509
},
511
510
},
512
511
},
513
512
result : & ContainerEdits {
514
- ContainerEdits : & specs .ContainerEdits {
513
+ ContainerEdits : & cdi .ContainerEdits {
515
514
Env : []string {
516
515
"var1=val1" ,
517
516
},
@@ -521,7 +520,7 @@ func TestAppend(t *testing.T) {
521
520
{
522
521
name : "merge nil into non-nil" ,
523
522
dst : & ContainerEdits {
524
- ContainerEdits : & specs .ContainerEdits {
523
+ ContainerEdits : & cdi .ContainerEdits {
525
524
Env : []string {
526
525
"var1=val1" ,
527
526
},
@@ -531,7 +530,7 @@ func TestAppend(t *testing.T) {
531
530
nil ,
532
531
},
533
532
result : & ContainerEdits {
534
- ContainerEdits : & specs .ContainerEdits {
533
+ ContainerEdits : & cdi .ContainerEdits {
535
534
Env : []string {
536
535
"var1=val1" ,
537
536
},
@@ -541,32 +540,32 @@ func TestAppend(t *testing.T) {
541
540
{
542
541
name : "merge multiple into non-nil" ,
543
542
dst : & ContainerEdits {
544
- ContainerEdits : & specs .ContainerEdits {
543
+ ContainerEdits : & cdi .ContainerEdits {
545
544
Env : []string {
546
545
"var0=val0" ,
547
546
},
548
547
},
549
548
},
550
549
src : []* ContainerEdits {
551
550
{
552
- ContainerEdits : & specs .ContainerEdits {
551
+ ContainerEdits : & cdi .ContainerEdits {
553
552
Env : []string {
554
553
"var1=val1" ,
555
554
},
556
- DeviceNodes : []* specs .DeviceNode {
555
+ DeviceNodes : []* cdi .DeviceNode {
557
556
{
558
557
Path : "/dev/dev1" ,
559
558
},
560
559
},
561
560
},
562
561
},
563
562
{
564
- ContainerEdits : & specs .ContainerEdits {
563
+ ContainerEdits : & cdi .ContainerEdits {
565
564
Env : []string {
566
565
"var2=val2" ,
567
566
"var3=val3" ,
568
567
},
569
- DeviceNodes : []* specs .DeviceNode {
568
+ DeviceNodes : []* cdi .DeviceNode {
570
569
{
571
570
Path : "/dev/dev2" ,
572
571
},
@@ -577,11 +576,11 @@ func TestAppend(t *testing.T) {
577
576
},
578
577
},
579
578
{
580
- ContainerEdits : & specs .ContainerEdits {
579
+ ContainerEdits : & cdi .ContainerEdits {
581
580
Env : []string {
582
581
"var4=val4" ,
583
582
},
584
- DeviceNodes : []* specs .DeviceNode {
583
+ DeviceNodes : []* cdi .DeviceNode {
585
584
{
586
585
Path : "/dev/dev4" ,
587
586
},
@@ -590,15 +589,15 @@ func TestAppend(t *testing.T) {
590
589
},
591
590
},
592
591
result : & ContainerEdits {
593
- ContainerEdits : & specs .ContainerEdits {
592
+ ContainerEdits : & cdi .ContainerEdits {
594
593
Env : []string {
595
594
"var0=val0" ,
596
595
"var1=val1" ,
597
596
"var2=val2" ,
598
597
"var3=val3" ,
599
598
"var4=val4" ,
600
599
},
601
- DeviceNodes : []* specs .DeviceNode {
600
+ DeviceNodes : []* cdi .DeviceNode {
602
601
{
603
602
Path : "/dev/dev1" ,
604
603
},
0 commit comments