tests.fetchurl: add urls-simple

This commit is contained in:
Yueh-Shun Li
2025-12-18 08:41:28 +08:00
parent 270ee9e19b
commit 7c4673bbb8
+10
View File
@@ -6,6 +6,7 @@
jq,
moreutils,
emptyFile,
hello,
...
}:
let
@@ -138,4 +139,13 @@ in
# have to fallback to fetching the previously-built derivation from
# tarballs.nixos.org, which provides pre-built derivation outputs.
};
urls-simple = testers.invalidateFetcherByDrvHash fetchurl {
name = "test-fetchurl-urls-simple";
urls = [
"http://broken"
hello.src.resolvedUrl
];
hash = hello.src.outputHash;
};
}