diff options
author | kashw2 <supra4keanu@hotmail.com> | 2023-12-24 07:21:12 +1000 |
---|---|---|
committer | kashw2 <supra4keanu@hotmail.com> | 2023-12-24 07:25:11 +1000 |
commit | 6a64808fc877bb901aceca2143a9e4cbb8995dcc (patch) | |
tree | 5ecf77ed0f202c7b5f6f1fdf453ae1bc1f675998 /pkgs/tools | |
parent | 4b41bb45ca1f63259c4cfa20bdb4db93184eda8c (diff) | |
download | nixlib-6a64808fc877bb901aceca2143a9e4cbb8995dcc.tar nixlib-6a64808fc877bb901aceca2143a9e4cbb8995dcc.tar.gz nixlib-6a64808fc877bb901aceca2143a9e4cbb8995dcc.tar.bz2 nixlib-6a64808fc877bb901aceca2143a9e4cbb8995dcc.tar.lz nixlib-6a64808fc877bb901aceca2143a9e4cbb8995dcc.tar.xz nixlib-6a64808fc877bb901aceca2143a9e4cbb8995dcc.tar.zst nixlib-6a64808fc877bb901aceca2143a9e4cbb8995dcc.zip |
scaleway-cli: re-enabled `checkPhase`
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/admin/scaleway-cli/default.nix | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/pkgs/tools/admin/scaleway-cli/default.nix b/pkgs/tools/admin/scaleway-cli/default.nix index 4b1b4ae8f1fa..55ded4e067b2 100644 --- a/pkgs/tools/admin/scaleway-cli/default.nix +++ b/pkgs/tools/admin/scaleway-cli/default.nix @@ -23,8 +23,24 @@ buildGoModule rec { "-X main.BuildDate=unknown" ]; - # some tests require network access to scaleway's API, failing when sandboxed - doCheck = false; + doCheck = true; + + # Some tests require access to scaleway's API, failing when sandboxed + preCheck = '' + substituteInPlace internal/core/bootstrap_test.go \ + --replace "TestInterruptError" "SkipInterruptError" + substituteInPlace internal/e2e/errors_test.go \ + --replace "TestStandardErrors" "SkipStandardErrors" + substituteInPlace internal/e2e/human_test.go \ + --replace "TestTestCommand" "SkipTestCommand" \ + --replace "TestHumanCreate" "SkipHumanCreate" \ + --replace "TestHumanList" "SkipHumanList" \ + --replace "TestHumanUpdate" "SkipHumanUpdate" \ + --replace "TestHumanGet" "SkipHumanGet" \ + --replace "TestHumanDelete" "SkipHumanDelete" + substituteInPlace internal/e2e/sdk_errors_test.go \ + --replace "TestSdkStandardErrors" "SkipSdkStandardErrors" + ''; meta = with lib; { description = "Interact with Scaleway API from the command line"; |