mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-21 21:46:15 +02:00
Add a test
This commit is contained in:
parent
79ed3df8f8
commit
8bdd0ecd80
1 changed files with 3 additions and 1 deletions
|
@ -74,8 +74,10 @@ in
|
|||
assert info["revision"] == "${nixpkgs.rev}"
|
||||
assert info["revCount"] == 1234
|
||||
|
||||
# Check that fetching with rev/revCount/narHash succeeds.
|
||||
# Check that a 0-byte cached (304) result works.
|
||||
machine.succeed("nix flake metadata --refresh --json http://localhost/tags/latest.tar.gz")
|
||||
|
||||
# Check that fetching with rev/revCount/narHash succeeds.
|
||||
machine.succeed("nix flake metadata --json http://localhost/tags/latest.tar.gz?rev=" + info["revision"])
|
||||
machine.succeed("nix flake metadata --json http://localhost/tags/latest.tar.gz?revCount=" + str(info["revCount"]))
|
||||
machine.succeed("nix flake metadata --json http://localhost/tags/latest.tar.gz?narHash=" + info["locked"]["narHash"])
|
||||
|
|
Loading…
Reference in a new issue