mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 16:44:09 +02:00
handle redis db index as str
This commit is contained in:
parent
9ada18d5a6
commit
484af6a8e7
5 changed files with 31 additions and 3 deletions
|
|
@ -108,6 +108,15 @@ fn test_parse_redis_socket() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_redis_db_str() {
|
||||
let config = config_from_file("tests/configs/redis_db_str.php");
|
||||
assert_debug_equal(
|
||||
RedisConfig::Single(parse_redis("redis://127.0.0.1/1")),
|
||||
config.redis,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_notify_push_redis() {
|
||||
let config = config_from_file("tests/configs/notify_push_redis.php");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue