@@ -46,7 +46,7 @@ func TestNewCache(t *testing.T) {
4646 name : "one spec file" ,
4747 etc : map [string ]string {
4848 "vendor1.yaml" : `
49- cdiVersion: "0.2 .0"
49+ cdiVersion: "0.3 .0"
5050kind: "vendor1.com/device"
5151devices:
5252 - name: "dev1"
@@ -66,7 +66,7 @@ devices:
6666 name : "multiple spec files with override" ,
6767 etc : map [string ]string {
6868 "vendor1.yaml" : `
69- cdiVersion: "0.2 .0"
69+ cdiVersion: "0.3 .0"
7070kind: "vendor1.com/device"
7171devices:
7272 - name: "dev1"
@@ -87,7 +87,7 @@ devices:
8787 },
8888 run : map [string ]string {
8989 "vendor1.yaml" : `
90- cdiVersion: "0.2 .0"
90+ cdiVersion: "0.3 .0"
9191kind: "vendor1.com/device"
9292devices:
9393 - name: "dev1"
@@ -108,7 +108,7 @@ devices:
108108 name : "multiple spec files, with conflicts" ,
109109 run : map [string ]string {
110110 "vendor1.yaml" : `
111- cdiVersion: "0.2 .0"
111+ cdiVersion: "0.3 .0"
112112kind: "vendor1.com/device"
113113devices:
114114 - name: "dev1"
@@ -127,7 +127,7 @@ devices:
127127 minor: 2
128128` ,
129129 "vendor1-other.yaml" : `
130- cdiVersion: "0.2 .0"
130+ cdiVersion: "0.3 .0"
131131kind: "vendor1.com/device"
132132devices:
133133 - name: "dev1"
@@ -217,7 +217,7 @@ func TestRefreshCache(t *testing.T) {
217217 {
218218 run : map [string ]string {
219219 "vendor1.yaml" : `
220- cdiVersion: "0.2 .0"
220+ cdiVersion: "0.3 .0"
221221kind: "vendor1.com/device"
222222devices:
223223 - name: "dev1"
@@ -254,7 +254,7 @@ devices:
254254 {
255255 etc : map [string ]string {
256256 "vendor1.yaml" : `
257- cdiVersion: "0.2 .0"
257+ cdiVersion: "0.3 .0"
258258kind: "vendor1.com/device"
259259devices:
260260 - name: "dev1"
@@ -270,7 +270,7 @@ devices:
270270 {
271271 run : map [string ]string {
272272 "vendor1.yaml" : `
273- cdiVersion: "0.2 .0"
273+ cdiVersion: "0.3 .0"
274274kind: "vendor1.com/device"
275275devices:
276276 - name: "dev2"
@@ -313,7 +313,7 @@ devices:
313313 {
314314 run : map [string ]string {
315315 "vendor1.yaml" : `
316- cdiVersion: "0.2 .0"
316+ cdiVersion: "0.3 .0"
317317kind: "vendor1.com/device"
318318devices:
319319 - name: "dev1"
@@ -325,7 +325,7 @@ devices:
325325 minor: 1
326326` ,
327327 "vendor1-other.yaml" : `
328- cdiVersion: "0.2 .0"
328+ cdiVersion: "0.3 .0"
329329kind: "vendor1.com/device"
330330devices:
331331 - name: "dev2"
@@ -373,7 +373,7 @@ devices:
373373 {
374374 etc : map [string ]string {
375375 "vendor1.yaml" : `
376- cdiVersion: "0.2 .0"
376+ cdiVersion: "0.3 .0"
377377kind: "vendor1.com/device"
378378devices:
379379 - name: "dev1"
@@ -389,7 +389,7 @@ devices:
389389 {
390390 run : map [string ]string {
391391 "vendor1.yaml" : `
392- cdiVersion: "0.2 .0"
392+ cdiVersion: "0.3 .0"
393393kind: "vendor1.com/device"
394394devices:
395395 - name: "dev1"
@@ -430,7 +430,7 @@ devices:
430430 {
431431 run : map [string ]string {
432432 "vendor1.yaml" : `
433- cdiVersion: "0.2 .0"
433+ cdiVersion: "0.3 .0"
434434kind: "vendor1.com/device"
435435devices:
436436 - name: "dev1"
@@ -453,7 +453,7 @@ devices:
453453 {
454454 run : map [string ]string {
455455 "vendor1-other.yaml" : `
456- cdiVersion: "0.2 .0"
456+ cdiVersion: "0.3 .0"
457457kind: "vendor1.com/device"
458458devices:
459459 - name: "dev1"
@@ -583,7 +583,7 @@ func TestInjectDevice(t *testing.T) {
583583 cdiSpecs : specDirs {
584584 etc : map [string ]string {
585585 "vendor1.yaml" : `
586- cdiVersion: "0.2 .0"
586+ cdiVersion: "0.3 .0"
587587kind: "vendor1.com/device"
588588containerEdits:
589589 env:
@@ -640,7 +640,7 @@ devices:
640640 cdiSpecs : specDirs {
641641 etc : map [string ]string {
642642 "vendor1.yaml" : `
643- cdiVersion: "0.2 .0"
643+ cdiVersion: "0.3 .0"
644644kind: "vendor1.com/device"
645645containerEdits:
646646 env:
@@ -722,7 +722,7 @@ devices:
722722 cdiSpecs : specDirs {
723723 etc : map [string ]string {
724724 "vendor1.yaml" : `
725- cdiVersion: "0.2 .0"
725+ cdiVersion: "0.3 .0"
726726kind: "vendor1.com/device"
727727containerEdits:
728728 env:
@@ -881,7 +881,7 @@ devices:
881881 cdiSpecs : specDirs {
882882 etc : map [string ]string {
883883 "vendor1.yaml" : `
884- cdiVersion: "0.2 .0"
884+ cdiVersion: "0.3 .0"
885885kind: "vendor1.com/device"
886886containerEdits:
887887 env:
@@ -962,7 +962,7 @@ func TestListVendorsAndClasses(t *testing.T) {
962962 cdiSpecs : specDirs {
963963 etc : map [string ]string {
964964 "vendor1.yaml" : `
965- cdiVersion: "0.2 .0"
965+ cdiVersion: "0.3 .0"
966966kind: "vendor1.com/device"
967967containerEdits:
968968 env:
@@ -992,7 +992,7 @@ devices:
992992 cdiSpecs : specDirs {
993993 etc : map [string ]string {
994994 "vendor1.yaml" : `
995- cdiVersion: "0.2 .0"
995+ cdiVersion: "0.3 .0"
996996kind: "vendor1.com/device"
997997containerEdits:
998998devices:
@@ -1014,7 +1014,7 @@ devices:
10141014 minor: 2
10151015` ,
10161016 "vendor1-other.yaml" : `
1017- cdiVersion: "0.2 .0"
1017+ cdiVersion: "0.3 .0"
10181018kind: "vendor1.com/other-device"
10191019containerEdits:
10201020devices:
@@ -1050,7 +1050,7 @@ devices:
10501050 cdiSpecs : specDirs {
10511051 etc : map [string ]string {
10521052 "vendor1.yaml" : `
1053- cdiVersion: "0.2 .0"
1053+ cdiVersion: "0.3 .0"
10541054kind: "vendor1.com/device"
10551055containerEdits:
10561056devices:
@@ -1072,7 +1072,7 @@ devices:
10721072 minor: 2
10731073` ,
10741074 "vendor2.yaml" : `
1075- cdiVersion: "0.2 .0"
1075+ cdiVersion: "0.3 .0"
10761076kind: "vendor2.com/other-device"
10771077containerEdits:
10781078devices:
@@ -1092,7 +1092,7 @@ devices:
10921092 minor: 2
10931093` ,
10941094 "vendor2-other.yaml" : `
1095- cdiVersion: "0.2 .0"
1095+ cdiVersion: "0.3 .0"
10961096kind: "vendor2.com/another-device"
10971097containerEdits:
10981098devices:
@@ -1112,7 +1112,7 @@ devices:
11121112 minor: 2
11131113` ,
11141114 "vendor3.yaml" : `
1115- cdiVersion: "0.2 .0"
1115+ cdiVersion: "0.3 .0"
11161116kind: "vendor3.com/yet-another-device"
11171117containerEdits:
11181118devices:
0 commit comments