From 17df62a9373741f490aacb817c0341704dd5a830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20NICOLE?= Date: Sun, 27 Feb 2022 07:38:55 +0100 Subject: [PATCH] shiori: fix NixOS test (#161969) * nixos/tests/shiori: fix auth JSON * shiori: link NixOS test in passthru.tests --- nixos/tests/shiori.nix | 1 - pkgs/servers/web-apps/shiori/default.nix | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/tests/shiori.nix b/nixos/tests/shiori.nix index 418bee43c939..6c59c394009e 100644 --- a/nixos/tests/shiori.nix +++ b/nixos/tests/shiori.nix @@ -12,7 +12,6 @@ import ./make-test-python.nix ({ pkgs, lib, ...}: authJSON = pkgs.writeText "auth.json" (builtins.toJSON { username = "shiori"; password = "gopher"; - remember = 1; # hour owner = true; }); diff --git a/pkgs/servers/web-apps/shiori/default.nix b/pkgs/servers/web-apps/shiori/default.nix index 07fefc9343ba..cbfa28b8f46d 100644 --- a/pkgs/servers/web-apps/shiori/default.nix +++ b/pkgs/servers/web-apps/shiori/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, nixosTests }: buildGoModule rec { pname = "shiori"; @@ -15,6 +15,10 @@ buildGoModule rec { sha256 = "sha256-Py6Lq29F7RkvSui+Z2VyogU9+azHQ2KEvEq924pQmQo="; }; + passthru.tests = { + smoke-test = nixosTests.shiori; + }; + meta = with lib; { description = "Simple bookmark manager built with Go"; homepage = "https://github.com/go-shiori/shiori";