From a9313c12e3dddae032048e2e205a6cf88deaf1f2 Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 30 Oct 2024 17:16:55 +0300 Subject: [PATCH 1/2] Check if myceliumNetworkSeed is existed --- packages/grid_client/src/primitives/network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grid_client/src/primitives/network.ts b/packages/grid_client/src/primitives/network.ts index d4f4016a12..c53d5d46e6 100644 --- a/packages/grid_client/src/primitives/network.ts +++ b/packages/grid_client/src/primitives/network.ts @@ -176,7 +176,7 @@ class Network { return network["node_id"] === nodeId; }); const myceliumNetworkSeed = myceliumSeeds.find(item => item.nodeId == nodeId); - if (network && network.mycelium && network.mycelium?.hex_key) { + if (network && network.mycelium && network.mycelium?.hex_key && myceliumNetworkSeed?.seed) { if (myceliumSeeds && myceliumSeeds.length > 0 && myceliumNetworkSeed?.seed !== network.mycelium.hex_key) { throw new ValidationError(`Another mycelium seed is used for this network ${this.name} on this ${nodeId}`); } From 288faa0dd74fa0b7bb63fa30bd9b52284e3e1302 Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 30 Oct 2024 17:17:37 +0300 Subject: [PATCH 2/2] Remove skip from add worker test case --- packages/grid_client/tests/modules/kubernetes.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grid_client/tests/modules/kubernetes.test.ts b/packages/grid_client/tests/modules/kubernetes.test.ts index c897b354b5..ec78f19f97 100644 --- a/packages/grid_client/tests/modules/kubernetes.test.ts +++ b/packages/grid_client/tests/modules/kubernetes.test.ts @@ -287,7 +287,7 @@ test("TC1231 - Kubernetes: Deploy a Kubernetes Cluster", async () => { } }); -test.skip("TC1232 - Kubernetes: Add Worker", async () => { +test("TC1232 - Kubernetes: Add Worker", async () => { /********************************************** Test Suite: Grid3_Client_TS (Automated) Test Cases: TC1232 - Kubernetes: Add Worker