This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 97b1b2d CAMEL-14988 camel-undertow-spring-security: test rewrites
meta-inf/services which causes failures with built artifact
97b1b2d is described below
commit 97b1b2d256524ccbed3cae7ee92066a8df61fdd3
Author: JiriOndrusek <[email protected]>
AuthorDate: Thu Apr 30 10:56:07 2020 +0200
CAMEL-14988 camel-undertow-spring-security: test rewrites meta-inf/services
which causes failures with built artifact
---
.../security/AbstractSpringSecurityBearerTokenTest.java | 14 --------------
1 file changed, 14 deletions(-)
diff --git
a/components/camel-undertow-spring-security/src/test/java/org/apache/camel/component/spring/security/AbstractSpringSecurityBearerTokenTest.java
b/components/camel-undertow-spring-security/src/test/java/org/apache/camel/component/spring/security/AbstractSpringSecurityBearerTokenTest.java
index c233852..3102ffd 100644
---
a/components/camel-undertow-spring-security/src/test/java/org/apache/camel/component/spring/security/AbstractSpringSecurityBearerTokenTest.java
+++
b/components/camel-undertow-spring-security/src/test/java/org/apache/camel/component/spring/security/AbstractSpringSecurityBearerTokenTest.java
@@ -16,10 +16,6 @@
*/
package org.apache.camel.component.spring.security;
-import java.io.File;
-import java.io.FileWriter;
-import java.io.Writer;
-import java.net.URL;
import java.time.Instant;
import java.util.HashMap;
import java.util.Map;
@@ -55,16 +51,6 @@ public abstract class AbstractSpringSecurityBearerTokenTest
extends CamelTestSup
@BeforeClass
public static void initPort() throws Exception {
port = AvailablePortFinder.getNextAvailable();
-
- URL location =
SpringSecurityProvider.class.getProtectionDomain().getCodeSource().getLocation();
- File file = new File(location.getPath() + "META-INF/services/" +
UndertowSecurityProvider.class.getName());
- file.getParentFile().mkdirs();
-
- Writer output = new FileWriter(file);
- output.write(SpringSecurityProvider.class.getName());
- output.close();
-
- file.deleteOnExit();
}
protected static int getPort() {