From 73db21f84173b4b59d807a2890e99b5c2585d533 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 3 Sep 2023 18:08:14 +0200 Subject: [PATCH] add more checks to 01-create-network test --- default.nix | 6 +++++- tests/cases/01-create-network.sh | 13 ++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 6e75765..5625e99 100644 --- a/default.nix +++ b/default.nix @@ -165,7 +165,11 @@ in rec { }; tests = pkgs.writeScript "isle-tests" '' - export PATH=${pkgs.lib.makeBinPath [ appImage pkgs.busybox ]} + export PATH=${pkgs.lib.makeBinPath [ + appImage + pkgs.busybox + pkgs.yq-go + ]} export SHELL=${pkgs.bash}/bin/bash exec ${./tests}/entrypoint.sh "$@" ''; diff --git a/tests/cases/01-create-network.sh b/tests/cases/01-create-network.sh index 025a1e2..02b9bc2 100644 --- a/tests/cases/01-create-network.sh +++ b/tests/cases/01-create-network.sh @@ -24,8 +24,19 @@ isle admin create-network \ --domain test.isle.com \ --hostname primus \ --ip-net "10.6.9.1/24" \ - --name "testing" + --name "testing" \ + > admin.yml [ "$(cat a/meta/isle/rpc_port)" = "3900" ] [ "$(cat b/meta/isle/rpc_port)" = "3910" ] [ "$(cat c/meta/isle/rpc_port)" = "3920" ] + +[ "$(yq