tests, sriov: Drop one node (context) layer
Remove one layer that had no real usage.
Reducing the node depth and indentation should help the test simplicity
and readability.
@@ -88,8 +88,6 @@ var _ = Describe("[Serial]SRIOV", func() {
}
})
- Context("VirtualMachineInstance with sriov plugin interface", func() {
-
startVmi := func(vmi *v1.VirtualMachineInstance) *v1.VirtualMachineInstance {
vmi, err := virtClient.VirtualMachineInstance(util.NamespaceTestDefault).Create(vmi)
Expect(err).ToNot(HaveOccurred())
@@ -173,7 +171,7 @@ var _ = Describe("[Serial]SRIOV", func() {
return vmi1, vmi2
}
- Context("Connected to single SRIOV network", func() {
+ Context("VMI connected to single SRIOV network", func() {
BeforeEach(func() {
Expect(createSriovNetworkAttachmentDefinition(sriovnet1, util.NamespaceTestDefault, sriovConfNAD)).
To(Succeed(), shouldCreateNetwork)
@@ -462,7 +460,7 @@ var _ = Describe("[Serial]SRIOV", func() {
})
})
- Context("Connected to two SRIOV networks", func() {
+ Context("VMI connected to two SRIOV networks", func() {
BeforeEach(func() {
Expect(createSriovNetworkAttachmentDefinition(sriovnet1, util.NamespaceTestDefault, sriovConfNAD)).To(Succeed(), shouldCreateNetwork)
Expect(createSriovNetworkAttachmentDefinition(sriovnet2, util.NamespaceTestDefault, sriovConfNAD)).To(Succeed(), shouldCreateNetwork)
@@ -491,7 +489,7 @@ var _ = Describe("[Serial]SRIOV", func() {
})
})
- Context("Connected to link-enabled SRIOV network", func() {
+ Context("VMI connected to link-enabled SRIOV network", func() {
BeforeEach(func() {
Expect(createSriovNetworkAttachmentDefinition(sriovnetLinkEnabled, util.NamespaceTestDefault, sriovLinkEnableConfNAD)).
To(Succeed(), shouldCreateNetwork)
@@ -569,7 +567,6 @@ var _ = Describe("[Serial]SRIOV", func() {
})
})
})
-})
func readSRIOVResourceName() string {
sriovResourceName := os.Getenv("SRIOV_RESOURCE_NAME")
