From 1a91b0cf6973dd020e2a2fefb973f0cb6f6d4653 Mon Sep 17 00:00:00 2001 From: sindhu Date: Thu, 18 Jan 2024 17:44:07 +0530 Subject: [PATCH 1/4] refactor: update github actions --- ...¶chain-test .yaml => all-relay-parachain-test .yaml} | 2 +- ...rachain-test .yaml => kusama-relay-parachain-test .yaml} | 2 +- ...chain-test .yaml => polkadot-relay-parachain-test .yaml} | 2 +- test/Makefile | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{all-relay¶chain-test .yaml => all-relay-parachain-test .yaml} (93%) rename .github/workflows/{kusama-relay¶chain-test .yaml => kusama-relay-parachain-test .yaml} (93%) rename .github/workflows/{polkadot-relay¶chain-test .yaml => polkadot-relay-parachain-test .yaml} (93%) diff --git a/.github/workflows/all-relay¶chain-test .yaml b/.github/workflows/all-relay-parachain-test .yaml similarity index 93% rename from .github/workflows/all-relay¶chain-test .yaml rename to .github/workflows/all-relay-parachain-test .yaml index f008d0b3..a526dd74 100644 --- a/.github/workflows/all-relay¶chain-test .yaml +++ b/.github/workflows/all-relay-parachain-test .yaml @@ -26,4 +26,4 @@ jobs: - name: Running All Relay and Parachain command tests run: | - cd test && make run-relay¶chain-all \ No newline at end of file + cd test && make run-relay-parachain-all \ No newline at end of file diff --git a/.github/workflows/kusama-relay¶chain-test .yaml b/.github/workflows/kusama-relay-parachain-test .yaml similarity index 93% rename from .github/workflows/kusama-relay¶chain-test .yaml rename to .github/workflows/kusama-relay-parachain-test .yaml index 5bae0d27..2aa5679c 100644 --- a/.github/workflows/kusama-relay¶chain-test .yaml +++ b/.github/workflows/kusama-relay-parachain-test .yaml @@ -26,4 +26,4 @@ jobs: - name: Running Kusama Relay and Parachain command tests run: | - cd test && make run-relay¶chain-kusama \ No newline at end of file + cd test && make run-relay-parachain-kusama \ No newline at end of file diff --git a/.github/workflows/polkadot-relay¶chain-test .yaml b/.github/workflows/polkadot-relay-parachain-test .yaml similarity index 93% rename from .github/workflows/polkadot-relay¶chain-test .yaml rename to .github/workflows/polkadot-relay-parachain-test .yaml index 33b7759c..1163d216 100644 --- a/.github/workflows/polkadot-relay¶chain-test .yaml +++ b/.github/workflows/polkadot-relay-parachain-test .yaml @@ -26,4 +26,4 @@ jobs: - name: Running Polkadot Relay and Parachain command tests run: | - cd test && make run-relay¶chain-polkadot \ No newline at end of file + cd test && make run-relay-parachain-polkadot \ No newline at end of file diff --git a/test/Makefile b/test/Makefile index e58b553a..beb33290 100644 --- a/test/Makefile +++ b/test/Makefile @@ -84,15 +84,15 @@ run-parachain-all: BINARY @echo "Running parachain chain commands test cases for polkadot and kusama" @cd $(CURDIR)/functional && ginkgo --focus="Parachain commands" -v -timeout=3h -run-relay¶chain-kusama: BINARY +run-relay-parachain-kusama: BINARY @echo "Running relay and parachain chain commands test cases for kusama and its parachains" @cd $(CURDIR)/functional && relayChain=kusama ginkgo --focus="Relaychain and parachain commands" -v -timeout=3h -run-relay¶chain-polkadot: BINARY +run-relay-parachain-polkadot: BINARY @echo "Running relay and parachain chain commands test cases for polkadot and its parachains" @cd $(CURDIR)/functional && relayChain=polkadot ginkgo --focus="Relaychain and parachain commands" -v -timeout=3h -run-relay¶chain-all: BINARY +run-relay-parachain-all: BINARY @echo "Running relay and parachain chain commands test cases for polkadot and kusama along its respective parachains" @cd $(CURDIR)/functional && ginkgo --focus="Relaychain and parachain commands" -v -timeout=3h From 7c477050db8be08b097644abb77602a429e46a2b Mon Sep 17 00:00:00 2001 From: hemz10 Date: Thu, 18 Jan 2024 17:58:32 +0530 Subject: [PATCH 2/4] fix: fix script to read services json from output folder --- test/functional/dive_test.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/test/functional/dive_test.go b/test/functional/dive_test.go index 92a6c9cf..d5b11da8 100644 --- a/test/functional/dive_test.go +++ b/test/functional/dive_test.go @@ -6,6 +6,7 @@ import ( "log" "os" "os/exec" + "path/filepath" "testing" "github.com/hugobyte/dive-core/cli/cmd/utility" @@ -565,7 +566,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should run icon node first and then decentralise it", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - serviceName0, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, nid0 := dive.GetServiceDetails(service_path[0] , dive.ICON_CONFIG0_SERVICENAME) cmd.Args = append(cmd.Args, "chain", "icon", "decentralize", "-p", "gochain", "-k", "keystores/keystore.json", "-n", nid0, "-e", endpoint0, "-s", serviceName0, "--enclaveName", enclaveName) defer dive.Clean(enclaveName) err := cmd.Run() @@ -599,7 +601,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for chain command", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - serviceName0, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, nid0 := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG0_SERVICENAME) cmd.Args = append(cmd.Args, "chain", "icon", "decentralize", "-p", "invalidPassword", "-k", "keystores/keystore.json", "-n", nid0, "-e", endpoint0, "-s", serviceName0, "--enclaveName", enclaveName) defer dive.Clean(enclaveName) err := cmd.Run() @@ -609,7 +612,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for chain command", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - serviceName0, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, nid0 := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG0_SERVICENAME) cmd.Args = append(cmd.Args, "chain", "icon", "decentralize", "-p", "gochain", "-k", "keystores/invalid.json", "-n", nid0, "-e", endpoint0, "-s", serviceName0, "--enclaveName", enclaveName) defer dive.Clean(enclaveName) err := cmd.Run() @@ -619,7 +623,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for chain command", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - serviceName0, endpoint0, _ := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, _ := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG0_SERVICENAME) cmd.Args = append(cmd.Args, "chain", "icon", "decentralize", "-p", "gochain", "-k", "keystores/keystore.json", "-n", "0x9", "-e", endpoint0, "-s", serviceName0, "--enclaveName", enclaveName) defer dive.Clean(enclaveName) err := cmd.Run() @@ -629,7 +634,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for chain command", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - serviceName0, _, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, _, nid0 := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG0_SERVICENAME) cmd.Args = append(cmd.Args, "chain", "icon", "decentralize", "-p", "gochain", "-k", "keystores/keystore.json", "-n", nid0, "-e", "http://172.16.0.3:9081/api/v3/icon_dex", "-s", serviceName0, "--enclaveName", enclaveName) defer dive.Clean(enclaveName) err := cmd.Run() @@ -639,7 +645,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for chain command", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - _, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + _, endpoint0, nid0 := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG0_SERVICENAME) cmd.Args = append(cmd.Args, "chain", "icon", "decentralize", "-p", "gochain", "-k", "keystores/keystore.json", "-n", nid0, "-e", endpoint0, "-s", "icon-node", "--enclaveName", enclaveName) defer dive.Clean(enclaveName) err := cmd.Run() From 281641ca9aa4eded3240f86f6156dc688d03346a Mon Sep 17 00:00:00 2001 From: hemz10 Date: Fri, 19 Jan 2024 12:59:16 +0530 Subject: [PATCH 3/4] test: update makefile to support parallel execution --- test/Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/Makefile b/test/Makefile index beb33290..6f09e84c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -62,39 +62,39 @@ run-archway: BINARY run-relaychain-kusama: BINARY @echo "Running relaychain chain commands test cases for kusama" - @cd $(CURDIR)/functional && relayChain=kusama ginkgo --focus="Relaychain commands" -v -timeout=3h + @cd $(CURDIR)/functional && relayChain=kusama ginkgo --focus="Relaychain commands" -v -p -timeout=3h run-relaychain-polkadot: BINARY @echo "Running relaychain chain commands test cases for polkadot" - @cd $(CURDIR)/functional && relayChain=polkadot ginkgo --focus="Relaychain commands" -v -timeout=3h + @cd $(CURDIR)/functional && relayChain=polkadot ginkgo --focus="Relaychain commands" -v -p -timeout=3h run-relaychain-all: BINARY @echo "Running relaychain chain commands test cases for polkadot and kusama" - @cd $(CURDIR)/functional && ginkgo --focus="Relaychain commands" -v -timeout=3h + @cd $(CURDIR)/functional && ginkgo --focus="Relaychain commands" -v -p -timeout=3h run-parachain-kusama: BINARY @echo "Running parachain chain commands test cases for kusama" - @cd $(CURDIR)/functional && relayChain=kusama ginkgo --focus="Parachain commands" -v -timeout=3h + @cd $(CURDIR)/functional && relayChain=kusama ginkgo --focus="Parachain commands" -v -p -timeout=3h run-parachain-polkadot: BINARY @echo "Running parachain chain commands test cases for polkadot" - @cd $(CURDIR)/functional && relayChain=polkadot ginkgo --focus="Parachain commands" -v -timeout=3h + @cd $(CURDIR)/functional && relayChain=polkadot ginkgo --focus="Parachain commands" -v -p -timeout=3h run-parachain-all: BINARY @echo "Running parachain chain commands test cases for polkadot and kusama" - @cd $(CURDIR)/functional && ginkgo --focus="Parachain commands" -v -timeout=3h + @cd $(CURDIR)/functional && ginkgo --focus="Parachain commands" -v -p -timeout=3h run-relay-parachain-kusama: BINARY @echo "Running relay and parachain chain commands test cases for kusama and its parachains" - @cd $(CURDIR)/functional && relayChain=kusama ginkgo --focus="Relaychain and parachain commands" -v -timeout=3h + @cd $(CURDIR)/functional && relayChain=kusama ginkgo --focus="Relaychain and parachain commands" -v -p -timeout=3h run-relay-parachain-polkadot: BINARY @echo "Running relay and parachain chain commands test cases for polkadot and its parachains" - @cd $(CURDIR)/functional && relayChain=polkadot ginkgo --focus="Relaychain and parachain commands" -v -timeout=3h + @cd $(CURDIR)/functional && relayChain=polkadot ginkgo --focus="Relaychain and parachain commands" -v -p -timeout=3h run-relay-parachain-all: BINARY @echo "Running relay and parachain chain commands test cases for polkadot and kusama along its respective parachains" - @cd $(CURDIR)/functional && ginkgo --focus="Relaychain and parachain commands" -v -timeout=3h + @cd $(CURDIR)/functional && ginkgo --focus="Relaychain and parachain commands" -v -p -timeout=3h run-misc: BINARY @echo "Running other test cases" From 4fb01244bc538a48d367213861aaef9de23db9b9 Mon Sep 17 00:00:00 2001 From: hemz10 Date: Fri, 19 Jan 2024 12:59:45 +0530 Subject: [PATCH 4/4] fix: fix test script to handle new changes implemented --- test/functional/dive_test.go | 43 +++++++++++++++++------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/test/functional/dive_test.go b/test/functional/dive_test.go index d5b11da8..2d79e7da 100644 --- a/test/functional/dive_test.go +++ b/test/functional/dive_test.go @@ -130,8 +130,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should start bridge between icon and eth by running icon node first and then decentralising it", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - - serviceName0, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, nid0 := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG0_SERVICENAME) dive.DecentralizeCustomIconNode(nid0, endpoint0, serviceName0, enclaveName) dive.RunEthNode(enclaveName) @@ -147,7 +147,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) - serviceName0, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, nid0 := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG0_SERVICENAME) dive.DecentralizeCustomIconNode(nid0, endpoint0, serviceName0, enclaveName) dive.RunHardhatNode(enclaveName) @@ -172,8 +173,8 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { enclaveName := dive.GenerateRandomName() dive.RunDecentralizedIconNode(enclaveName) dive.RunCustomIconNode1(enclaveName) - - serviceName, endpoint, nid := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG1_SERVICENAME) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName, endpoint, nid := dive.GetServiceDetails(service_path[0], dive.ICON_CONFIG1_SERVICENAME) dive.DecentralizeCustomIconNode(nid, endpoint, serviceName, enclaveName) cmd.Args = append(cmd.Args, "bridge", "btp", "--chainA", "icon", "--chainB", "icon", "--chainAServiceName", dive.ICON_CONFIG0_SERVICENAME, "--chainBServiceName", dive.ICON_CONFIG1_SERVICENAME, "--enclaveName", enclaveName) @@ -187,11 +188,11 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { enclaveName := dive.GenerateRandomName() dive.RunIconNode(enclaveName) dive.RunCustomIconNode1(enclaveName) - - serviceName0, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path0, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, nid0 := dive.GetServiceDetails(service_path0[0], dive.ICON_CONFIG0_SERVICENAME) dive.DecentralizeCustomIconNode(nid0, endpoint0, serviceName0, enclaveName) - - serviceName1, endpoint1, nid1 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG1_SERVICENAME) + service_path1, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName1, endpoint1, nid1 := dive.GetServiceDetails(service_path1[0], dive.ICON_CONFIG1_SERVICENAME) dive.DecentralizeCustomIconNode(nid1, endpoint1, serviceName1, enclaveName) cmd.Args = append(cmd.Args, "bridge", "btp", "--chainA", "icon", "--chainB", "icon", "--chainAServiceName", dive.ICON_CONFIG0_SERVICENAME, "--chainBServiceName", dive.ICON_CONFIG1_SERVICENAME, "--enclaveName", enclaveName) @@ -215,11 +216,11 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { enclaveName := dive.GenerateRandomName() dive.RunCustomIconNode0(enclaveName) dive.RunCustomIconNode1(enclaveName) - - serviceName0, endpoint0, nid0 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG0_SERVICENAME) + service_path0, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName0, endpoint0, nid0 := dive.GetServiceDetails(service_path0[0], dive.ICON_CONFIG0_SERVICENAME) dive.DecentralizeCustomIconNode(nid0, endpoint0, serviceName0, enclaveName) - - serviceName1, endpoint1, nid1 := dive.GetServiceDetails(fmt.Sprintf("services_%s.json", enclaveName), dive.ICON_CONFIG1_SERVICENAME) + service_path1, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + serviceName1, endpoint1, nid1 := dive.GetServiceDetails(service_path1[0], dive.ICON_CONFIG1_SERVICENAME) dive.DecentralizeCustomIconNode(nid1, endpoint1, serviceName1, enclaveName) cmd.Args = append(cmd.Args, "bridge", "btp", "--chainA", "icon", "--chainB", "icon", "--chainAServiceName", dive.ICON_CONFIG0_SERVICENAME, "--chainBServiceName", dive.ICON_CONFIG1_SERVICENAME, "--enclaveName", enclaveName) @@ -243,7 +244,6 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for bridge command", func() { enclaveName := dive.GenerateRandomName() cmd.Args = append(cmd.Args, "bridge", "btp", "--chainA", "icon", "--chainB", "invalid_input", "--enclaveName", enclaveName) - defer dive.Clean(enclaveName) err := cmd.Run() gomega.Expect(err).To(gomega.HaveOccurred()) }) @@ -251,7 +251,6 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for bridge command", func() { enclaveName := dive.GenerateRandomName() cmd.Args = append(cmd.Args, "bridge", "btp", "--chainA", "invalid_input", "--chainB", "eth", "--enclaveName", enclaveName) - defer dive.Clean(enclaveName) err := cmd.Run() gomega.Expect(err).To(gomega.HaveOccurred()) }) @@ -259,7 +258,6 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input ibc bridge command", func() { enclaveName := dive.GenerateRandomName() cmd.Args = append(cmd.Args, "bridge", "ibc", "--chainA", "archway", "--chainB", "invalid", "--enclaveName", enclaveName) - defer dive.Clean(enclaveName) err := cmd.Run() gomega.Expect(err).To(gomega.HaveOccurred()) }) @@ -592,7 +590,7 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should handle invalid input for chain command", func() { enclaveName := dive.GenerateRandomName() - cmd.Args = append(cmd.Args, "chain", "icon", "-c", "../../cli/sample-jsons/invalid_config.json", "-g", "./config/invalid-icon-3.zip", "--enclaveName", enclaveName) + cmd.Args = append(cmd.Args, "chain", "icon", "-c", "invalid_config.json", "-g", "./config/invalid-icon-3.zip", "--enclaveName", enclaveName) defer dive.Clean(enclaveName) err := cmd.Run() gomega.Expect(err).To(gomega.HaveOccurred()) @@ -724,10 +722,9 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should run single custom archway node with invalid json path", func() { enclaveName := dive.GenerateRandomName() cmd.Args = append(cmd.Args, "chain", "archway", "-c", "../../cli/sample-jsons/invalid_archway.json", "--enclaveName", enclaveName) - defer dive.Clean(enclaveName) err := cmd.Run() gomega.Expect(err).To(gomega.HaveOccurred()) - dive.Clean(enclaveName) + defer dive.Clean(enclaveName) }) ginkgo.It("should output user that chain is already running when trying to run archway chain that is already running", func() { @@ -959,7 +956,7 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { if paraChainName != "parallel" && paraChainName != "subzero" { enclaveName := dive.GenerateRandomName() config := dive.UpdateParaChain(dive.LOCAL_CONFIG0, "testnet", paraChainName) - cmd.Args = append(cmd.Args, "chain", relayChainName, "--no-relay", "-c", config, "--enclaveName", enclaveName) + cmd.Args = append(cmd.Args, "chain", relayChainName, "-c", config, "--enclaveName", enclaveName) defer os.Remove(config) err := cmd.Run() gomega.Expect(err).NotTo(gomega.HaveOccurred()) @@ -969,20 +966,20 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { ginkgo.It("should run custom parachain in mainnet for "+relayChainName+" and "+paraChainName, func() { enclaveName := dive.GenerateRandomName() config := dive.UpdateParaChain(dive.LOCAL_CONFIG0, "mainnet", paraChainName) - cmd.Args = append(cmd.Args, "chain", relayChainName, "--no-relay", "-c", config, "--enclaveName", enclaveName) + cmd.Args = append(cmd.Args, "chain", relayChainName, "-c", config, "--enclaveName", enclaveName) defer os.Remove(config) err := cmd.Run() gomega.Expect(err).NotTo(gomega.HaveOccurred()) dive.Clean(enclaveName) }) - ginkgo.It("should run single parachain in localnet for "+relayChainName+" and "+paraChainName, func() { + ginkgo.It("should not run single parachain in localnet for "+relayChainName+" and "+paraChainName, func() { enclaveName := dive.GenerateRandomName() cmd.Args = append(cmd.Args, "chain", relayChainName, "-p", paraChainName, "--no-relay", "-n", "local", "--enclaveName", enclaveName) err := cmd.Run() gomega.Expect(err).To(gomega.HaveOccurred()) dive.Clean(enclaveName) }) - ginkgo.It("should run single parachain without giving network type for "+relayChainName+" and "+paraChainName, func() { + ginkgo.It("should not run single parachain without giving network type for "+relayChainName+" and "+paraChainName, func() { enclaveName := dive.GenerateRandomName() cmd.Args = append(cmd.Args, "chain", relayChainName, "-p", paraChainName, "--no-relay", "--enclaveName", enclaveName) err := cmd.Run()