feat(cli): Added Sonarr support for fetching host and security configs

This commit is contained in:
2024-11-18 20:59:27 -07:00
parent a012945df2
commit 4fc2d3c94b
4 changed files with 81 additions and 6 deletions
+4 -4
View File
@@ -964,7 +964,7 @@ mod test {
async fn test_handle_get_sonarr_logs_event() {
let expected_logs = vec![
HorizontallyScrollableText::from(
"2023-05-20 21:29:16 UTC|FATAL|RadarrError|Some.Big.Bad.Exception|test exception",
"2023-05-20 21:29:16 UTC|FATAL|SonarrError|Some.Big.Bad.Exception|test exception",
),
HorizontallyScrollableText::from("2023-05-20 21:29:16 UTC|INFO|TestLogger|test message"),
];
@@ -985,7 +985,7 @@ mod test {
{
"time": "2023-05-20T21:29:16Z",
"level": "fatal",
"logger": "RadarrError",
"logger": "SonarrError",
"exception": "test exception",
"exceptionType": "Some.Big.Bad.Exception",
"id": 2
@@ -1032,7 +1032,7 @@ mod test {
async fn test_handle_get_sonarr_logs_event_uses_provided_events() {
let expected_logs = vec![
HorizontallyScrollableText::from(
"2023-05-20 21:29:16 UTC|FATAL|RadarrError|Some.Big.Bad.Exception|test exception",
"2023-05-20 21:29:16 UTC|FATAL|SonarrError|Some.Big.Bad.Exception|test exception",
),
HorizontallyScrollableText::from("2023-05-20 21:29:16 UTC|INFO|TestLogger|test message"),
];
@@ -1053,7 +1053,7 @@ mod test {
{
"time": "2023-05-20T21:29:16Z",
"level": "fatal",
"logger": "RadarrError",
"logger": "SonarrError",
"exception": "test exception",
"exceptionType": "Some.Big.Bad.Exception",
"id": 2