test CPUTuneIOThreadPin schema
@@ -219,6 +219,8 @@ var _ = Describe("Schema", func() {
var testXML = `<cputune>
<vcpupin vcpu="0" cpuset="1"/>
<vcpupin vcpu="1" cpuset="5"/>
+<iothreadpin iothread="0" cpuset="1"/>
+<iothreadpin iothread="1" cpuset="5"/>
</cputune>`
var exampleCpuTune = CPUTune{
VCPUPin: []CPUTuneVCPUPin{
@@ -231,6 +233,16 @@ var _ = Describe("Schema", func() {
CPUSet: "5",
},
},
+ IOThreadPin: []CPUTuneIOThreadPin{
+ CPUTuneIOThreadPin{
+ IOThread: 0,
+ CPUSet: "1",
+ },
+ CPUTuneIOThreadPin{
+ IOThread: 1,
+ CPUSet: "5",
+ },
+ },
}
It("Unmarshal into struct", func() {
