@@ -15,6 +15,7 @@ public function testProcessConfigurationWithDefaultConfiguration(): void
15
15
$ expectedBundleDefaultConfig = [
16
16
'ping_error_response_code ' => null ,
17
17
'health_error_response_code ' => null ,
18
+ 'redis_dsn ' => null ,
18
19
'health_checks ' => [],
19
20
'ping_checks ' => [],
20
21
];
@@ -40,6 +41,7 @@ public function testProcessConfigurationHealthChecks(): void
40
41
'ping_checks ' => [],
41
42
'ping_error_response_code ' => null ,
42
43
'health_error_response_code ' => null ,
44
+ 'redis_dsn ' => null ,
43
45
];
44
46
$ new = ['health_checks ' => [
45
47
['id ' => 'symfony_health_check.doctrine_check ' ]
@@ -60,6 +62,7 @@ public function testProcessConfigurationPing(): void
60
62
],
61
63
'ping_error_response_code ' => null ,
62
64
'health_error_response_code ' => null ,
65
+ 'redis_dsn ' => null ,
63
66
];
64
67
$ new = ['health_checks ' => [], 'ping_checks ' => [
65
68
['id ' => 'symfony_health_check.doctrine_check ' ]
@@ -82,6 +85,7 @@ public function testProcessConfigurationPingAndHealthChecks(): void
82
85
],
83
86
'ping_error_response_code ' => null ,
84
87
'health_error_response_code ' => null ,
88
+ 'redis_dsn ' => null ,
85
89
];
86
90
$ new = [
87
91
'health_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
@@ -105,6 +109,7 @@ public function testProcessConfigurationCustomErrorCode(): void
105
109
],
106
110
'ping_error_response_code ' => 404 ,
107
111
'health_error_response_code ' => 500 ,
112
+ 'redis_dsn ' => null ,
108
113
];
109
114
$ new = [
110
115
'health_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
@@ -119,6 +124,33 @@ public function testProcessConfigurationCustomErrorCode(): void
119
124
);
120
125
}
121
126
127
+ public function testItProcessConfigurationWithRedisDsn (): void
128
+ {
129
+ $ expectedConfig = [
130
+ 'health_checks ' => [
131
+ ['id ' => 'symfony_health_check.doctrine_check ' ]
132
+ ],
133
+ 'ping_checks ' => [
134
+ ['id ' => 'symfony_health_check.doctrine_check ' ]
135
+ ],
136
+ 'ping_error_response_code ' => 404 ,
137
+ 'health_error_response_code ' => 500 ,
138
+ 'redis_dsn ' => 'redis://redis ' ,
139
+ ];
140
+ $ new = [
141
+ 'health_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
142
+ 'ping_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
143
+ 'ping_error_response_code ' => 404 ,
144
+ 'health_error_response_code ' => 500 ,
145
+ 'redis_dsn ' => 'redis://redis ' ,
146
+ ];
147
+
148
+ self ::assertSame (
149
+ $ expectedConfig ,
150
+ $ this ->processConfiguration ($ new )
151
+ );
152
+ }
153
+
122
154
private function processConfiguration (array $ values ): array
123
155
{
124
156
$ processor = new Processor ();
0 commit comments