Commit 7c4673bb authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

tests.fetchurl: add urls-simple

parent 270ee9e1
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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;
  };
}