@@ -17,17 +17,30 @@ limitations under the License.
1717package previous_version
1818
1919import (
20+ "fmt"
21+
2022 "github.com/feast-dev/feast/infra/feast-operator/test/utils"
2123 . "github.com/onsi/ginkgo/v2"
24+ . "github.com/onsi/gomega"
2225)
2326
2427var _ = Describe ("previous version operator" , Ordered , func () {
28+ namespace := "test-ns-feast"
29+
2530 BeforeAll (func () {
2631 utils .DeployPreviousVersionOperator ()
32+
33+ By (fmt .Sprintf ("Creating test namespace: %s" , namespace ))
34+ err := utils .CreateNamespace (namespace , "/test/e2e" )
35+ Expect (err ).ToNot (HaveOccurred (), fmt .Sprintf ("failed to create namespace %s" , namespace ))
2736 })
2837
2938 AfterAll (func () {
3039 utils .DeleteOperatorDeployment ("/test/upgrade" )
40+
41+ By (fmt .Sprintf ("Deleting test namespace: %s" , namespace ))
42+ err := utils .DeleteNamespace (namespace , "/test/e2e" )
43+ Expect (err ).ToNot (HaveOccurred (), fmt .Sprintf ("failed to delete namespace %s" , namespace ))
3144 })
3245
3346 Context ("Previous version operator Tests" , func () {
@@ -38,9 +51,9 @@ var _ = Describe("previous version operator", Ordered, func() {
3851 }
3952
4053 runTestDeploySimpleCRFunc := utils .GetTestDeploySimpleCRFunc ("/test/upgrade" , utils .GetSimplePreviousVerCR (),
41- utils .FeatureStoreName , utils .FeastResourceName , feastK8sResourceNames , "default" )
54+ utils .FeatureStoreName , utils .FeastResourceName , feastK8sResourceNames , namespace )
4255 runTestWithRemoteRegistryFunction := utils .GetTestWithRemoteRegistryFunc ("/test/upgrade" , utils .GetSimplePreviousVerCR (),
43- utils .GetRemoteRegistryPreviousVerCR (), utils .FeatureStoreName , utils .FeastResourceName , feastK8sResourceNames , "default" )
56+ utils .GetRemoteRegistryPreviousVerCR (), utils .FeatureStoreName , utils .FeastResourceName , feastK8sResourceNames , namespace )
4457
4558 // Run Test on previous version operator
4659 It ("Should be able to deploy and run a default feature store CR successfully" , runTestDeploySimpleCRFunc )
0 commit comments