nixos/tests/peertube: add check peertube cli

This commit is contained in:
Izorkin 2022-03-09 23:36:31 +03:00
parent b9c5e1e81a
commit a822d0c075
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09

View File

@ -120,6 +120,9 @@ import ../make-test-python.nix ({pkgs, ...}:
# Check if PeerTube is running
client.succeed("curl --fail http://peertube.local:9000/api/v1/config/about | jq -r '.instance.name' | grep 'PeerTube\ Test\ Server'")
# Check PeerTube CLI version
assert "${pkgs.peertube.version}" in server.succeed('su - peertube -s /bin/sh -c "peertube --version"')
client.shutdown()
server.shutdown()
database.shutdown()