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