scaleway-cli: re-enabled checkPhase

This commit is contained in:
kashw2 2023-12-24 07:21:12 +10:00
parent 4b41bb45ca
commit 6a64808fc8

View File

@ -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";