summaryrefslogtreecommitdiff
path: root/edge/test
diff options
context:
space:
mode:
authorShelley-BaoYue <baoyue2@huawei.com>2022-09-27 10:38:45 +0800
committerShelley-BaoYue <baoyue2@huawei.com>2022-09-27 11:40:26 +0800
commit6665cefe264598660bb0959d190ea956a40c840e (patch)
tree56258c3162c1a8efaf80ce33daabb9fffa256777 /edge/test
parentMerge pull request #4240 from vincentgoat/app_cache_id (diff)
downloadkubeedge-6665cefe264598660bb0959d190ea956a40c840e.tar.gz
restore device integration test
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'edge/test')
-rw-r--r--edge/test/integration/device/device_suite_test.go5
-rwxr-xr-xedge/test/integration/scripts/fast_test.sh8
2 files changed, 7 insertions, 6 deletions
diff --git a/edge/test/integration/device/device_suite_test.go b/edge/test/integration/device/device_suite_test.go
index 45dc48897..1565c29ab 100644
--- a/edge/test/integration/device/device_suite_test.go
+++ b/edge/test/integration/device/device_suite_test.go
@@ -25,6 +25,7 @@ import (
. "github.com/onsi/gomega"
"github.com/kubeedge/kubeedge/edge/pkg/devicetwin/dtcommon"
+ "github.com/kubeedge/kubeedge/edge/test/integration/utils"
"github.com/kubeedge/kubeedge/edge/test/integration/utils/common"
"github.com/kubeedge/kubeedge/edge/test/integration/utils/edge"
"github.com/kubeedge/kubeedge/edge/test/integration/utils/helpers"
@@ -71,8 +72,8 @@ func TestEdgecoreEventBus(t *testing.T) {
cfg = edge.LoadConfig()
ctx = edge.NewTestContext(cfg)
- //Expect(utils.CreateEdgeCoreConfigFile()).Should(BeNil())
- //Expect(utils.StartEdgeCore()).Should(BeNil())
+ Expect(utils.CreateEdgeCoreConfigFile(cfg.NodeID)).Should(BeNil())
+ Expect(utils.StartEdgeCore()).Should(BeNil())
})
AfterSuite(func() {
By("After Suite Executing....!")
diff --git a/edge/test/integration/scripts/fast_test.sh b/edge/test/integration/scripts/fast_test.sh
index be6ae4749..d1ae0679c 100755
--- a/edge/test/integration/scripts/fast_test.sh
+++ b/edge/test/integration/scripts/fast_test.sh
@@ -42,10 +42,10 @@ if [[ $# -eq 0 ]]; then
#if [[ $? != 0 ]]; then
# GINKGO_EXIT_CODE=1
#fi
- #./device/device.test $debugflag
- #if [[ $? != 0 ]]; then
- # GINKGO_EXIT_CODE=1
- #fi
+ ./device/device.test $debugflag
+ if [[ $? != 0 ]]; then
+ GINKGO_EXIT_CODE=1
+ fi
./metaserver/metaserver.test $debugflag
if [[ $? != 0 ]]; then
GINKGO_EXIT_CODE=1