add test for separate notify_push redis

This commit is contained in:
Robin Appelman 2025-08-07 17:12:37 +02:00
commit 9ada18d5a6
2 changed files with 30 additions and 0 deletions

View file

@ -108,6 +108,19 @@ fn test_parse_redis_socket() {
); );
} }
#[test]
fn test_parse_notify_push_redis() {
let config = config_from_file("tests/configs/notify_push_redis.php");
assert_debug_equal(
RedisConfig::Single(parse_redis("redis+unix:///redis1")),
config.redis,
);
assert_debug_equal(
Some(RedisConfig::Single(parse_redis("redis+unix:///redis2"))),
config.notify_push_redis,
);
}
#[test] #[test]
fn test_parse_redis_tls() { fn test_parse_redis_tls() {
let config = config_from_file("tests/configs/redis_tls.php"); let config = config_from_file("tests/configs/redis_tls.php");

View file

@ -0,0 +1,17 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => '/redis1',
],
'notify_push_redis' => [
'host' => '/redis2',
]
];