nixosTests.freshrss: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 21:50:04 +08:00
parent 40a27ed8e7
commit da6ecbe539
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
8 changed files with 159 additions and 176 deletions

View File

@ -552,7 +552,7 @@ in
freenet = runTest ./freenet.nix;
freeswitch = runTest ./freeswitch.nix;
freetube = discoverTests (import ./freetube.nix);
freshrss = handleTest ./freshrss { };
freshrss = import ./freshrss { inherit runTest; };
frigate = runTest ./frigate.nix;
froide-govplan = runTest ./web-apps/froide-govplan.nix;
frp = runTest ./frp.nix;

View File

@ -1,5 +1,4 @@
import ../make-test-python.nix (
{ lib, pkgs, ... }:
{ lib, ... }:
{
name = "freshrss-caddy-sqlite";
meta.maintainers = with lib.maintainers; [
@ -27,4 +26,3 @@ import ../make-test-python.nix (
assert '<title>Login · FreshRSS</title>' in response, "Login page didn't load successfully"
'';
}
)

View File

@ -1,10 +1,10 @@
{ system, pkgs, ... }:
{ runTest }:
{
extensions = import ./extensions.nix { inherit system pkgs; };
http-auth = import ./http-auth.nix { inherit system pkgs; };
none-auth = import ./none-auth.nix { inherit system pkgs; };
pgsql = import ./pgsql.nix { inherit system pkgs; };
nginx-sqlite = import ./nginx-sqlite.nix { inherit system pkgs; };
caddy-sqlite = import ./caddy-sqlite.nix { inherit system pkgs; };
extensions = runTest ./extensions.nix;
http-auth = runTest ./http-auth.nix;
none-auth = runTest ./none-auth.nix;
pgsql = runTest ./pgsql.nix;
nginx-sqlite = runTest ./nginx-sqlite.nix;
caddy-sqlite = runTest ./caddy-sqlite.nix;
}

View File

@ -1,5 +1,3 @@
import ../make-test-python.nix (
{ lib, pkgs, ... }:
{
name = "freshrss-extensions";
@ -21,4 +19,3 @@ import ../make-test-python.nix (
assert '<span class="ext_name disabled">YouTube Video Feed</span>' in response, "Extension not present in extensions page."
'';
}
)

View File

@ -1,12 +1,9 @@
import ../make-test-python.nix (
{ lib, pkgs, ... }:
{ lib, ... }:
{
name = "freshrss-http-auth";
meta.maintainers = with lib.maintainers; [ mattchrist ];
nodes.machine =
{ pkgs, ... }:
{
nodes.machine = {
services.freshrss = {
enable = true;
baseUrl = "http://localhost";
@ -22,4 +19,3 @@ import ../make-test-python.nix (
assert 'Account: testuser' in response, "http_auth method didn't work."
'';
}
)

View File

@ -1,5 +1,4 @@
import ../make-test-python.nix (
{ lib, pkgs, ... }:
{ lib, ... }:
{
name = "freshrss-nginx-sqlite";
meta.maintainers = with lib.maintainers; [
@ -25,4 +24,3 @@ import ../make-test-python.nix (
assert '<title>Login · FreshRSS</title>' in response, "Login page didn't load successfully"
'';
}
)

View File

@ -1,12 +1,9 @@
import ../make-test-python.nix (
{ lib, pkgs, ... }:
{ lib, ... }:
{
name = "freshrss-none-auth";
meta.maintainers = with lib.maintainers; [ mattchrist ];
nodes.machine =
{ pkgs, ... }:
{
nodes.machine = {
services.freshrss = {
enable = true;
baseUrl = "http://localhost";
@ -21,4 +18,3 @@ import ../make-test-python.nix (
assert '<title> · FreshRSS</title>' in response, "FreshRSS stream page didn't load successfully"
'';
}
)

View File

@ -1,5 +1,4 @@
import ../make-test-python.nix (
{ lib, pkgs, ... }:
{ lib, ... }:
{
name = "freshrss-pgsql";
meta.maintainers = with lib.maintainers; [
@ -51,4 +50,3 @@ import ../make-test-python.nix (
assert '<title>Login · FreshRSS</title>' in response, "Login page didn't load successfully"
'';
}
)