Skip to content

Commit 5f69059

Browse files
committed
fix tests
1 parent 50774e8 commit 5f69059

File tree

5 files changed

+11
-29
lines changed

5 files changed

+11
-29
lines changed

plugins/src/test/java/opengrok/auth/plugin/LdapAttrPluginTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package opengrok.auth.plugin;
2424

@@ -207,7 +207,7 @@ void testAttrLookup() throws LdapException {
207207
private Map<String, Object> getParamsMap() {
208208
Map<String, Object> params = new TreeMap<>();
209209
params.put(AbstractLdapPlugin.CONFIGURATION_PARAM,
210-
Objects.requireNonNull(getClass().getResource("config.xml")).getFile());
210+
Objects.requireNonNull(getClass().getResource("config.yml")).getFile());
211211

212212
return params;
213213
}

plugins/src/test/java/opengrok/auth/plugin/LdapFilterPluginTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package opengrok.auth.plugin;
2424

@@ -121,7 +121,7 @@ void testLoadTransformsNegative() {
121121
private Map<String, Object> getParamsMap() {
122122
Map<String, Object> params = new TreeMap<>();
123123
params.put(AbstractLdapPlugin.CONFIGURATION_PARAM,
124-
Objects.requireNonNull(getClass().getResource("config.xml")).getFile());
124+
Objects.requireNonNull(getClass().getResource("config.yml")).getFile());
125125

126126
return params;
127127
}

plugins/src/test/java/opengrok/auth/plugin/LdapUserPluginTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package opengrok.auth.plugin;
2424

@@ -73,7 +73,7 @@ void setUp() {
7373
private Map<String, Object> getParamsMap() {
7474
Map<String, Object> params = new TreeMap<>();
7575
params.put(AbstractLdapPlugin.CONFIGURATION_PARAM,
76-
getClass().getResource("config.xml").getFile());
76+
getClass().getResource("config.yml").getFile());
7777

7878
return params;
7979
}

plugins/src/test/resources/opengrok/auth/plugin/config.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
servers:
2+
- url: "ldap://example.com"
3+
connectTimeout: 10
4+
interval: 100
5+
searchBase: dc=example,dc=com

0 commit comments

Comments
 (0)