diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-10-09 08:49:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 08:49:28 +0200 |
commit | 21469bd965f6592f30fbe78567f42ca6cc3605bb (patch) | |
tree | c89032624f2e00141de2e40109e62206db58987f /nixos | |
parent | 683bd80353995aba406cc91245fc0bfe899d03cd (diff) | |
parent | 8a9ffb1b0bb94a31760b2443a08f8c0baa08c63f (diff) |
Merge pull request #191198 from Moredread/nixpkgs-paperless
nixosTests.paperless: check if /metadata/ can be accessed
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/paperless.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/tests/paperless.nix b/nixos/tests/paperless.nix index 12883cd62c60..b97834835c2c 100644 --- a/nixos/tests/paperless.nix +++ b/nixos/tests/paperless.nix @@ -40,5 +40,13 @@ import ./make-test-python.nix ({ lib, ... }: { docs = json.loads(machine.succeed("curl -u admin:admin -fs localhost:28981/api/documents/"))['results'] assert "2005-10-16" in docs[0]['created'] assert "2005-10-16" in docs[1]['created'] + + # Detects gunicorn issues, see PR #190888 + with subtest("Document metadata can be accessed"): + metadata = json.loads(machine.succeed("curl -u admin:admin -fs localhost:28981/api/documents/1/metadata/")) + assert "original_checksum" in metadata + + metadata = json.loads(machine.succeed("curl -u admin:admin -fs localhost:28981/api/documents/2/metadata/")) + assert "original_checksum" in metadata ''; }) |