@@ -532,17 +532,21 @@ func TestApplyContainerEdits(t *testing.T) {
532532 spec : & oci.Spec {},
533533 edits : & cdi.ContainerEdits {
534534 IntelRdt : & cdi.IntelRdt {
535- ClosID : "clos-1" ,
536- L3CacheSchema : "L3:0=ff;1=ff" ,
537- MemBwSchema : "MB:0=50;1=50" ,
535+ ClosID : "clos-1" ,
536+ L3CacheSchema : "L3:0=ff;1=ff" ,
537+ MemBwSchema : "MB:0=50;1=50" ,
538+ Schemata : []string {"L2:0=ffff" },
539+ EnableMonitoring : true ,
538540 },
539541 },
540542 result : & oci.Spec {
541543 Linux : & oci.Linux {
542544 IntelRdt : & oci.LinuxIntelRdt {
543- ClosID : "clos-1" ,
544- L3CacheSchema : "L3:0=ff;1=ff" ,
545- MemBwSchema : "MB:0=50;1=50" ,
545+ ClosID : "clos-1" ,
546+ L3CacheSchema : "L3:0=ff;1=ff" ,
547+ MemBwSchema : "MB:0=50;1=50" ,
548+ Schemata : []string {"L2:0=ffff" },
549+ EnableMonitoring : true ,
546550 },
547551 },
548552 },
@@ -552,23 +556,27 @@ func TestApplyContainerEdits(t *testing.T) {
552556 spec : & oci.Spec {
553557 Linux : & oci.Linux {
554558 IntelRdt : & oci.LinuxIntelRdt {
555- ClosID : "clos-1" ,
556- L3CacheSchema : "L3:0=ff" ,
557- MemBwSchema : "MB:0=100" ,
559+ ClosID : "clos-1" ,
560+ L3CacheSchema : "L3:0=ff" ,
561+ MemBwSchema : "MB:0=100" ,
562+ Schemata : []string {"L2:0=ffff" },
563+ EnableMonitoring : true ,
558564 },
559565 },
560566 },
561567 edits : & cdi.ContainerEdits {
562568 IntelRdt : & cdi.IntelRdt {
563- ClosID : "clos-2" ,
564- L3CacheSchema : "L3:0=f" ,
569+ ClosID : "clos-2" ,
570+ L3CacheSchema : "L3:0=f" ,
571+ EnableMonitoring : false ,
565572 },
566573 },
567574 result : & oci.Spec {
568575 Linux : & oci.Linux {
569576 IntelRdt : & oci.LinuxIntelRdt {
570- ClosID : "clos-2" ,
571- L3CacheSchema : "L3:0=f" ,
577+ ClosID : "clos-2" ,
578+ L3CacheSchema : "L3:0=f" ,
579+ EnableMonitoring : false ,
572580 },
573581 },
574582 },
@@ -778,6 +786,7 @@ func TestAppend(t *testing.T) {
778786 IntelRdt : & cdi.IntelRdt {
779787 ClosID : "clos-1" ,
780788 L3CacheSchema : "L3:0=ff" ,
789+ Schemata : []string {"L2: 0xFFFF" },
781790 },
782791 },
783792 },
0 commit comments