shiori: fix NixOS test (#161969)

* nixos/tests/shiori: fix auth JSON

* shiori: link NixOS test in passthru.tests
This commit is contained in:
Rémi NICOLE 2022-02-27 07:38:55 +01:00 committed by GitHub
parent f23d45dcfd
commit 17df62a937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,6 @@ import ./make-test-python.nix ({ pkgs, lib, ...}:
authJSON = pkgs.writeText "auth.json" (builtins.toJSON { authJSON = pkgs.writeText "auth.json" (builtins.toJSON {
username = "shiori"; username = "shiori";
password = "gopher"; password = "gopher";
remember = 1; # hour
owner = true; owner = true;
}); });

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec { buildGoModule rec {
pname = "shiori"; pname = "shiori";
@ -15,6 +15,10 @@ buildGoModule rec {
sha256 = "sha256-Py6Lq29F7RkvSui+Z2VyogU9+azHQ2KEvEq924pQmQo="; sha256 = "sha256-Py6Lq29F7RkvSui+Z2VyogU9+azHQ2KEvEq924pQmQo=";
}; };
passthru.tests = {
smoke-test = nixosTests.shiori;
};
meta = with lib; { meta = with lib; {
description = "Simple bookmark manager built with Go"; description = "Simple bookmark manager built with Go";
homepage = "https://github.com/go-shiori/shiori"; homepage = "https://github.com/go-shiori/shiori";