tests.fetchurl: add urls-simple
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user