File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
spring-boot-admin-server/src
main/java/de/codecentric/boot/admin/model
test/java/de/codecentric/boot/admin/model Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ public MetadataSerializer() {
318
318
private static Pattern [] createPatterns (String ... keys ) {
319
319
Pattern [] patterns = new Pattern [keys .length ];
320
320
for (int i = 0 ; i < keys .length ; i ++) {
321
- patterns [i ] = Pattern .compile (keys [i ]);
321
+ patterns [i ] = Pattern .compile (keys [i ], Pattern . CASE_INSENSITIVE );
322
322
}
323
323
return patterns ;
324
324
}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public void test_healthUrl_expected() throws Exception {
81
81
@ Test
82
82
public void test_sanitize_metadata () throws JsonProcessingException {
83
83
Application app = Application .create ("test" ).withHealthUrl ("http://health" )
84
- .addMetadata ("password " , "qwertz123" ).addMetadata ("user" , "humptydumpty" ).build ();
84
+ .addMetadata ("PASSWORD " , "qwertz123" ).addMetadata ("user" , "humptydumpty" ).build ();
85
85
String json = objectMapper .writeValueAsString (app );
86
86
assertThat (json , not (containsString ("qwertz123" )));
87
87
assertThat (json , containsString ("humptydumpty" ));
You can’t perform that action at this time.
0 commit comments