Skip to content

Commit

Permalink
cnf network: performance profile deployremove repitition (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaggapa committed Sep 19, 2024
1 parent 9ade6f3 commit e76145d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
9 changes: 1 addition & 8 deletions tests/cnf/core/network/dpdk/dpdk_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
. "github.com/onsi/gomega"
"github.com/openshift-kni/eco-goinfra/pkg/mco"
"github.com/openshift-kni/eco-goinfra/pkg/namespace"
"github.com/openshift-kni/eco-goinfra/pkg/nto" //nolint:misspell
"github.com/openshift-kni/eco-goinfra/pkg/reportxml"
"github.com/openshift-kni/eco-gotests/tests/cnf/core/network/dpdk/internal/dpdkenv"
"github.com/openshift-kni/eco-gotests/tests/cnf/core/network/dpdk/internal/tsparams"
Expand All @@ -23,7 +22,7 @@ import (
var (
_, currentFile, _, _ = runtime.Caller(0)
testNS = namespace.NewBuilder(APIClient, tsparams.TestNamespaceName)
perfProfileName = "automationdpdk"
perfProfileName = "performance-profile-dpdk"
)

func TestLB(t *testing.T) {
Expand Down Expand Up @@ -63,12 +62,6 @@ var _ = AfterSuite(func() {
err := testNS.DeleteAndWait(tsparams.WaitTimeout)
Expect(err).ToNot(HaveOccurred(), "Fail to delete test namespace")

By("Removing performanceProfile")
perfProfile, err := nto.Pull(APIClient, perfProfileName)
Expect(err).ToNot(HaveOccurred(), "Fail to pull test PerformanceProfile")
_, err = perfProfile.Delete()
Expect(err).ToNot(HaveOccurred(), "Fail to delete PerformanceProfile")

By("Waiting until cluster is stable")
mcp, err := mco.Pull(APIClient, NetConfig.CnfMcpLabel)
Expect(err).ToNot(HaveOccurred(), "Fail to pull MCP ")
Expand Down
6 changes: 0 additions & 6 deletions tests/cnf/core/network/sriov/tests/qinq.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/openshift-kni/eco-goinfra/pkg/configmap"
"github.com/openshift-kni/eco-goinfra/pkg/nad"
"github.com/openshift-kni/eco-goinfra/pkg/nmstate"
"github.com/openshift-kni/eco-goinfra/pkg/nto" //nolint:misspell
"github.com/openshift-kni/eco-goinfra/pkg/reportxml"
"github.com/openshift-kni/eco-gotests/tests/cnf/core/network/internal/cmd"
"github.com/openshift-kni/eco-gotests/tests/cnf/core/network/internal/define"
Expand Down Expand Up @@ -549,11 +548,6 @@ var _ = Describe("QinQ", Ordered, Label(tsparams.LabelQinQTestCases), ContinueOn
testOutPutString)
})
AfterAll(func() {
By("Removing performanceProfile")
perfProfile, err := nto.Pull(APIClient, perfProfileName)
Expect(err).ToNot(HaveOccurred(), "Fail to pull test PerformanceProfile")
_, err = perfProfile.Delete()
Expect(err).ToNot(HaveOccurred(), "Fail to delete PerformanceProfile")

By("Clean the test env of sriov and pod deployments")
cleanTestEnvSRIOVConfiguration()
Expand Down

0 comments on commit e76145d

Please sign in to comment.