@@ -57,10 +57,10 @@ var _ = ginkgo.Describe("[Custom Init Container Tests]", func() {
5757
5858 ginkgo .BeforeEach (func () {
5959 dwocFile := filepath .Join (getProjectRoot (), "test" , "resources" , "dwoc-custom-init.yaml" )
60- cmd := exec .Command ("kubectl" , "apply" , "-f" , dwocFile )
60+ cmd := exec .Command ("kubectl" , "apply" , "-f" , dwocFile , "-n" , config . OperatorNamespace )
6161 output , err := cmd .CombinedOutput ()
6262 if err != nil {
63- ginkgo .Fail (fmt .Sprintf ("Failed to apply DWOC: %s. Output: %s" , err , string (output )))
63+ ginkgo .Fail (fmt .Sprintf ("Failed to apply DWOC to namespace %s : %s. Output: %s" , config . OperatorNamespace , err , string (output )))
6464 }
6565 })
6666
@@ -78,7 +78,7 @@ var _ = ginkgo.Describe("[Custom Init Container Tests]", func() {
7878 ginkgo .Fail (fmt .Sprintf ("Workspace didn't start properly. Error: %s" , err ))
7979 }
8080
81- // Wait for pod to be running (may take a while for large image pulls)
81+ // Wait for pod to be running
8282 podSelector := fmt .Sprintf ("controller.devfile.io/devworkspace_name=%s" , workspaceName )
8383 var podName string
8484 gomega .Eventually (func () error {
@@ -105,10 +105,10 @@ var _ = ginkgo.Describe("[Custom Init Container Tests]", func() {
105105
106106 ginkgo .BeforeEach (func () {
107107 dwocFile := filepath .Join (getProjectRoot (), "test" , "resources" , "dwoc-disabled-init.yaml" )
108- cmd := exec .Command ("kubectl" , "apply" , "-f" , dwocFile )
108+ cmd := exec .Command ("kubectl" , "apply" , "-f" , dwocFile , "-n" , config . OperatorNamespace )
109109 output , err := cmd .CombinedOutput ()
110110 if err != nil {
111- ginkgo .Fail (fmt .Sprintf ("Failed to apply DWOC: %s. Output: %s" , err , string (output )))
111+ ginkgo .Fail (fmt .Sprintf ("Failed to apply DWOC to namespace %s : %s. Output: %s" , config . OperatorNamespace , err , string (output )))
112112 }
113113 })
114114
0 commit comments