Unit tests for IOThreads in domain XML
* See the License for the specific language governing permissions and
* limitations under the License.
*
- * Copyright 2017 Red Hat, Inc.
+ * Copyright 2017, 2018 Red Hat, Inc.
*
*/
@@ -84,6 +84,7 @@ var exampleXML = `<domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/doma
<topology sockets="1" cores="2" threads="1"></topology>
</cpu>
<vcpu placement="static">2</vcpu>
+ <iothreads>2</iothreads>
</domain>`
var _ = Describe("Schema", func() {
@@ -158,6 +159,7 @@ var _ = Describe("Schema", func() {
exampleDomain.Spec.CPU.Model = "Conroe"
exampleDomain.Spec.Metadata.KubeVirt.UID = "f4686d2c-6e8d-4335-b8fd-81bee22f4814"
exampleDomain.Spec.Metadata.KubeVirt.GracePeriod.DeletionGracePeriodSeconds = 5
+ exampleDomain.Spec.IOThreads = &IOThreads{IOThreads: 2}
Context("With schema", func() {
It("Generate expected libvirt xml", func() {
