Skip to content

Commit 8b98039

Browse files
committed
fix tests
1 parent 9fee447 commit 8b98039

3 files changed

Lines changed: 48 additions & 3 deletions

File tree

tests/vm-tests/lidarr-basic.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ in
3232
passwordPath = "${pkgs.writeText "lidarr-password" "testpassword123"}";
3333
};
3434
apiKeyPath = "${pkgs.writeText "lidarr-apikey" "5678efgh5678efgh5678efgh5678efgh"}";
35+
delayProfiles = [
36+
{
37+
enableUsenet = true;
38+
enableTorrent = true;
39+
preferredProtocol = "torrent";
40+
usenetDelay = 0;
41+
torrentDelay = 360;
42+
bypassIfHighestQuality = true;
43+
bypassIfAboveCustomFormatScore = false;
44+
minimumCustomFormatScore = 0;
45+
order = 2147483647;
46+
tags = [];
47+
id = 1;
48+
}
49+
];
3550
};
3651
};
3752

@@ -110,7 +125,7 @@ in
110125
assert profiles_list[0]['id'] == 1, "Expected default delay profile with id=1"
111126
assert profiles_list[0]['enableUsenet'] == True, "Expected enableUsenet=true"
112127
assert profiles_list[0]['enableTorrent'] == True, "Expected enableTorrent=true"
113-
assert profiles_list[0]['preferredProtocol'] == 'usenet', "Expected preferredProtocol=usenet"
128+
assert profiles_list[0]['preferredProtocol'] == 'torrent', "Expected preferredProtocol=torrent"
114129
assert profiles_list[0]['usenetDelay'] == 0, "Expected usenetDelay=0"
115130
assert profiles_list[0]['torrentDelay'] == 360, "Expected torrentDelay=360"
116131
assert profiles_list[0]['order'] == 2147483647, "Expected order=2147483647"

tests/vm-tests/radarr-basic.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ in
3232
passwordPath = "${pkgs.writeText "radarr-password" "testpassword123"}";
3333
};
3434
apiKeyPath = "${pkgs.writeText "radarr-apikey" "abcd1234abcd1234abcd1234abcd1234"}";
35+
delayProfiles = [
36+
{
37+
enableUsenet = true;
38+
enableTorrent = true;
39+
preferredProtocol = "torrent";
40+
usenetDelay = 0;
41+
torrentDelay = 360;
42+
bypassIfHighestQuality = true;
43+
bypassIfAboveCustomFormatScore = false;
44+
minimumCustomFormatScore = 0;
45+
order = 2147483647;
46+
tags = [];
47+
id = 1;
48+
}
49+
];
3550
};
3651
};
3752

@@ -110,7 +125,7 @@ in
110125
assert profiles_list[0]['id'] == 1, "Expected default delay profile with id=1"
111126
assert profiles_list[0]['enableUsenet'] == True, "Expected enableUsenet=true"
112127
assert profiles_list[0]['enableTorrent'] == True, "Expected enableTorrent=true"
113-
assert profiles_list[0]['preferredProtocol'] == 'usenet', "Expected preferredProtocol=usenet"
128+
assert profiles_list[0]['preferredProtocol'] == 'torrent', "Expected preferredProtocol=torrent"
114129
assert profiles_list[0]['usenetDelay'] == 0, "Expected usenetDelay=0"
115130
assert profiles_list[0]['torrentDelay'] == 360, "Expected torrentDelay=360"
116131
assert profiles_list[0]['order'] == 2147483647, "Expected order=2147483647"

tests/vm-tests/sonarr-basic.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ in
3232
passwordPath = "${pkgs.writeText "sonarr-password" "testpassword123"}";
3333
};
3434
apiKeyPath = "${pkgs.writeText "sonarr-apikey" "0123456789abcdef0123456789abcdef"}";
35+
delayProfiles = [
36+
{
37+
enableUsenet = true;
38+
enableTorrent = true;
39+
preferredProtocol = "torrent";
40+
usenetDelay = 0;
41+
torrentDelay = 360;
42+
bypassIfHighestQuality = true;
43+
bypassIfAboveCustomFormatScore = false;
44+
minimumCustomFormatScore = 0;
45+
order = 2147483647;
46+
tags = [];
47+
id = 1;
48+
}
49+
];
3550
};
3651
};
3752

@@ -120,7 +135,7 @@ in
120135
assert profiles_list[0]['id'] == 1, "Expected default delay profile with id=1"
121136
assert profiles_list[0]['enableUsenet'] == True, "Expected enableUsenet=true"
122137
assert profiles_list[0]['enableTorrent'] == True, "Expected enableTorrent=true"
123-
assert profiles_list[0]['preferredProtocol'] == 'usenet', "Expected preferredProtocol=usenet"
138+
assert profiles_list[0]['preferredProtocol'] == 'torrent', "Expected preferredProtocol=torrent"
124139
assert profiles_list[0]['usenetDelay'] == 0, "Expected usenetDelay=0"
125140
assert profiles_list[0]['torrentDelay'] == 360, "Expected torrentDelay=360"
126141
assert profiles_list[0]['order'] == 2147483647, "Expected order=2147483647"

0 commit comments

Comments
 (0)