diff options
author | talyz <kim.lindberger@gmail.com> | 2021-06-05 15:50:58 +0200 |
---|---|---|
committer | talyz <kim.lindberger@gmail.com> | 2021-06-05 18:44:54 +0200 |
commit | 3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff (patch) | |
tree | 69f57ede899503635b6b17fea23e6f0a976c9991 /nixos/tests/grafana.nix | |
parent | a86853501a339f95765a6763e9c409f374606faa (diff) | |
download | nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.gz nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.bz2 nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.lz nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.xz nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.zst nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.zip |
nixosTests.*: Don't use the `-q` flag with grep when used with curl
The `-q` flag makes grep close the pipe early, which curl doesn't handle gracefully, but exits with an error like "(23) Failed writing body".
Diffstat (limited to 'nixos/tests/grafana.nix')
-rw-r--r-- | nixos/tests/grafana.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/grafana.nix b/nixos/tests/grafana.nix index 4ba091b893f..174d664d877 100644 --- a/nixos/tests/grafana.nix +++ b/nixos/tests/grafana.nix @@ -74,7 +74,7 @@ in { declarativePlugins.wait_for_unit("grafana.service") declarativePlugins.wait_for_open_port(3000) declarativePlugins.succeed( - "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/plugins | grep -q grafana-clock-panel" + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/plugins | grep grafana-clock-panel" ) declarativePlugins.shutdown() @@ -82,7 +82,7 @@ in { sqlite.wait_for_unit("grafana.service") sqlite.wait_for_open_port(3000) sqlite.succeed( - "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost" + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep testadmin\@localhost" ) sqlite.shutdown() @@ -92,7 +92,7 @@ in { postgresql.wait_for_open_port(3000) postgresql.wait_for_open_port(5432) postgresql.succeed( - "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost" + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep testadmin\@localhost" ) postgresql.shutdown() @@ -102,7 +102,7 @@ in { mysql.wait_for_open_port(3000) mysql.wait_for_open_port(3306) mysql.succeed( - "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost" + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep testadmin\@localhost" ) mysql.shutdown() ''; |