chia7712 commented on code in PR #752:
URL: https://github.com/apache/yunikorn-k8shim/pull/752#discussion_r1443686547


##########
test/e2e/bin_packing/bin_packing_test.go:
##########
@@ -198,8 +198,9 @@ var _ = Describe("", func() {
                        
tests.LogTestClusterInfoWrapper(testDescription.FailureMessage(), []string{ns})
                        
tests.LogYunikornContainer(testDescription.FailureMessage())
                }
+
                By("Tear down namespace: " + ns)
-               err := kClient.DeleteNamespace(ns)
+               err := kClient.TearDownNamespace(ns)

Review Comment:
   Is this another bug fix? If so, could you file another JIRA to handle it?



##########
test/e2e/configmap/configmap_suite_test.go:
##########
@@ -0,0 +1,94 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+package configmap
+
+import (
+       "path/filepath"
+       "testing"
+
+       "github.com/onsi/ginkgo/v2"
+       "github.com/onsi/ginkgo/v2/reporters"
+       "github.com/onsi/gomega"
+
+       "github.com/apache/yunikorn-k8shim/test/e2e/framework/configmanager"
+       "github.com/apache/yunikorn-k8shim/test/e2e/framework/helpers/common"
+       "github.com/apache/yunikorn-k8shim/test/e2e/framework/helpers/k8s"
+       "github.com/apache/yunikorn-k8shim/test/e2e/framework/helpers/yunikorn"
+)
+
+func init() {
+       configmanager.YuniKornTestConfig.ParseFlags()
+}
+
+func TestConfigMap(t *testing.T) {
+       ginkgo.ReportAfterSuite("TestConfigMap", func(report ginkgo.Report) {
+               err := common.CreateJUnitReportDir()
+               Ω(err).NotTo(gomega.HaveOccurred())
+               err = reporters.GenerateJUnitReportWithConfig(
+                       report,
+                       filepath.Join(configmanager.YuniKornTestConfig.LogDir, 
"TEST-configmap_junit.xml"),
+                       reporters.JunitReportConfig{OmitSpecLabels: true},
+               )
+               Ω(err).NotTo(HaveOccurred())
+       })
+       gomega.RegisterFailHandler(ginkgo.Fail)
+       ginkgo.RunSpecs(t, "TestConfigMap", ginkgo.Label("TestConfigMap"))
+}
+
+var (
+       kClient    k8s.KubeCtl
+       restClient yunikorn.RClient
+)
+
+var _ = BeforeSuite(func() {
+
+       kClient = k8s.KubeCtl{}
+       Ω(kClient.SetClient()).To(BeNil())
+
+       restClient = yunikorn.RClient{}
+       Ω(restClient).NotTo(BeNil())
+
+       yunikorn.EnsureYuniKornConfigsPresent()
+
+       // Restart yunikorn and port-forward
+       // Required to change node sort policy.

Review Comment:
   It seems those code are copied from other e2e, right? if so, please make 
sure this e2e requires them also. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to