add ssh backdoor to all jellyfin tests
This commit is contained in:
parent
ee4662b1f6
commit
db41c85dc3
1 changed files with 19 additions and 15 deletions
|
|
@ -74,11 +74,23 @@ let
|
||||||
settings.content = "ssoPassword";
|
settings.content = "ssoPassword";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jellyfinTest = name: { nodes, testScript }: pkgs.testers.runNixOSTest {
|
||||||
|
name = "jellyfin_${name}";
|
||||||
|
|
||||||
|
interactive.sshBackdoor.enable = true;
|
||||||
|
interactive.nodes.server = {
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.sqlite
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit nodes;
|
||||||
|
inherit testScript;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
basic = pkgs.testers.runNixOSTest {
|
basic = jellyfinTest "basic" {
|
||||||
name = "jellyfin_basic";
|
|
||||||
|
|
||||||
nodes.server = {
|
nodes.server = {
|
||||||
imports = [
|
imports = [
|
||||||
testLib.baseModule
|
testLib.baseModule
|
||||||
|
|
@ -92,9 +104,7 @@ in
|
||||||
testScript = commonTestScript.access;
|
testScript = commonTestScript.access;
|
||||||
};
|
};
|
||||||
|
|
||||||
backup = pkgs.testers.runNixOSTest {
|
backup = jellyfinTest "backup" {
|
||||||
name = "jellyfin_backup";
|
|
||||||
|
|
||||||
nodes.server = { config, ... }: {
|
nodes.server = { config, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
testLib.baseModule
|
testLib.baseModule
|
||||||
|
|
@ -109,9 +119,7 @@ in
|
||||||
testScript = commonTestScript.backup;
|
testScript = commonTestScript.backup;
|
||||||
};
|
};
|
||||||
|
|
||||||
https = pkgs.testers.runNixOSTest {
|
https = jellyfinTest "https" {
|
||||||
name = "jellyfin_https";
|
|
||||||
|
|
||||||
nodes.server = {
|
nodes.server = {
|
||||||
imports = [
|
imports = [
|
||||||
testLib.baseModule
|
testLib.baseModule
|
||||||
|
|
@ -127,9 +135,7 @@ in
|
||||||
testScript = commonTestScript.access;
|
testScript = commonTestScript.access;
|
||||||
};
|
};
|
||||||
|
|
||||||
ldap = pkgs.testers.runNixOSTest {
|
ldap = jellyfinTest "ldap" {
|
||||||
name = "jellyfin_ldap";
|
|
||||||
|
|
||||||
nodes.server = {
|
nodes.server = {
|
||||||
imports = [
|
imports = [
|
||||||
testLib.baseModule
|
testLib.baseModule
|
||||||
|
|
@ -145,9 +151,7 @@ in
|
||||||
testScript = commonTestScript.access;
|
testScript = commonTestScript.access;
|
||||||
};
|
};
|
||||||
|
|
||||||
sso = pkgs.testers.runNixOSTest {
|
sso = jellyfinTest "sso" {
|
||||||
name = "jellyfin_sso";
|
|
||||||
|
|
||||||
nodes.server = { config, pkgs, ... }: {
|
nodes.server = { config, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
testLib.baseModule
|
testLib.baseModule
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue