-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to put together minimal midpoint version with jetty and ws te…
…sts. does not work yet (not part of nomrmal build)
- Loading branch information
Showing
18 changed files
with
1,635 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ModelRestService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...ain/java/com/evolveum/midpoint/model/impl/security/MidpointRestAuthenticationHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2013-2015 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>1.2.2.RELEASE</version> | ||
</parent> | ||
<artifactId>minipoint</artifactId> | ||
<groupId>com.evolveum.midpoint.testing</groupId> | ||
<version>3.2-SNAPSHOT</version> | ||
<name>midPoint Testing - MiniPoint</name> | ||
<issueManagement> | ||
<system>Atlassian JIRA</system> | ||
<url>http://jira.evolveum.com/</url> | ||
</issueManagement> | ||
<scm> | ||
<connection>https://github.com/Evolveum/midpoint.git</connection> | ||
<developerConnection>git@github.com:Evolveum/midpoint.git</developerConnection> | ||
<url>https://fisheye.evolveum.com/browse/midPoint</url> | ||
</scm> | ||
<properties> | ||
<midpoint.version>3.2-SNAPSHOT</midpoint.version> | ||
<testng.version>6.8.8</testng.version> | ||
<connid.version>1.4.0.49</connid.version> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>central</id> | ||
<url>http://central</url> | ||
<releases><enabled>false</enabled></releases> | ||
<snapshots><enabled>false</enabled></snapshots> | ||
</repository> | ||
<repository> | ||
<id>evolveum-nexus-relases</id> | ||
<url>http://nexus.evolveum.com/nexus/content/repositories/releases/</url> | ||
<releases><enabled>true</enabled></releases> | ||
<snapshots><enabled>false</enabled></snapshots> | ||
</repository> | ||
<repository> | ||
<id>evolveum-nexus-snapshots</id> | ||
<url>http://nexus.evolveum.com/nexus/content/repositories/snapshots/</url> | ||
<releases><enabled>false</enabled></releases> | ||
<snapshots><enabled>true</enabled></snapshots> | ||
</repository> | ||
</repositories> | ||
<distributionManagement> | ||
<repository> | ||
<id>evolveum-nexus</id> | ||
<name>Internal Releases</name> | ||
<url>http://nexus.evolveum.com/nexus/content/repositories/releases/</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>evolveum-nexus</id> | ||
<name>Internal Snapshots</name> | ||
<url>http://nexus.evolveum.com/nexus/content/repositories/snapshots/</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.infra</groupId> | ||
<artifactId>util</artifactId> | ||
<version>3.2-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.infra</groupId> | ||
<artifactId>common</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>repo-api</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>repo-sql-impl-test</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<!-- This one has spring configuration for testing repository --> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>repo-test-util</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.model</groupId> | ||
<artifactId>model-impl</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.provisioning</groupId> | ||
<artifactId>provisioning-impl</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>task-quartz-impl</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>audit-impl</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>security-api</artifactId> | ||
<version>${midpoint.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-jetty</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>security-impl</artifactId> | ||
<version>3.2-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.polygon</groupId> | ||
<artifactId>connector-ldap</artifactId> | ||
<version>1.4.0.49</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.polygon</groupId> | ||
<artifactId>connector-databasetable</artifactId> | ||
<version>1.4.0.49</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>repo-sql-impl</artifactId> | ||
<version>3.2-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.evolveum.midpoint.repo</groupId> | ||
<artifactId>system-init</artifactId> | ||
<version>3.2-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>jcl-over-slf4j</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>log4j-over-slf4j</artifactId> | ||
</dependency> | ||
<!-- TEST dependency --> | ||
<dependency> | ||
<groupId>org.testng</groupId> | ||
<artifactId>testng</artifactId> | ||
<version>${testng.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>extratest</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<skip>false</skip> | ||
<argLine>-XX:MaxPermSize=256m</argLine> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
57 changes: 57 additions & 0 deletions
57
testing/minipoint/src/main/java/com/evolveum/midpoint/testing/minipoint/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* Copyright (c) 2015 Evolveum | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.evolveum.midpoint.testing.minipoint; | ||
|
||
import java.util.Arrays; | ||
|
||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.context.annotation.ImportResource; | ||
import org.springframework.context.support.ClassPathXmlApplicationContext; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
|
||
/** | ||
* @author semancik | ||
* | ||
*/ | ||
@SpringBootApplication | ||
@ImportResource({"classpath*:ctx-minipoint-main.xml"}) | ||
public class Main { | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(Main.class); | ||
|
||
/** | ||
* @param args | ||
*/ | ||
public static void main(String[] args) { | ||
// ApplicationContext applicationContext = new ClassPathXmlApplicationContext("ctx-rest-test-main.xml"); | ||
// LOGGER.info("Spring context initialized."); | ||
System.out.println("##* STARTING *##"); | ||
ApplicationContext ctx = SpringApplication.run(Main.class, args); | ||
|
||
System.out.println("Let's inspect the beans provided by Spring Boot:"); | ||
|
||
String[] beanNames = ctx.getBeanDefinitionNames(); | ||
Arrays.sort(beanNames); | ||
for (String beanName : beanNames) { | ||
System.out.println(beanName); | ||
} | ||
} | ||
|
||
} |
49 changes: 49 additions & 0 deletions
49
testing/minipoint/src/main/resources/ctx-minipoint-main.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
~ Copyright (c) 2010-2015 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:aop="http://www.springframework.org/schema/aop" | ||
xmlns:context="http://www.springframework.org/schema/context" xmlns:ws="http://jax-ws.dev.java.net/spring/core" | ||
xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/jee | ||
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd | ||
http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context-3.0.xsd | ||
http://www.springframework.org/schema/aop | ||
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd | ||
http://jax-ws.dev.java.net/spring/core | ||
https://jax-ws.dev.java.net/spring/core.xsd | ||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd" | ||
default-lazy-init="false" default-autowire="byName"> | ||
|
||
|
||
<import resource="classpath*:ctx-minipoint.xml"/> | ||
<import resource="classpath*:ctx-model.xml"/> | ||
<import resource="classpath*:ctx-repository.xml"/> | ||
<import resource="classpath*:ctx-repo-cache.xml"/> | ||
<import resource="classpath*:ctx-configuration-test.xml"/> | ||
<import resource="classpath*:ctx-provisioning.xml"/> | ||
<import resource="classpath*:ctx-common.xml"/> | ||
<import resource="classpath*:ctx-security.xml"/> | ||
<import resource="classpath*:ctx-task.xml"/> | ||
<import resource="classpath*:ctx-audit.xml"/> | ||
<import resource="classpath*:ctx-security.xml"/> | ||
<import resource="classpath*:ctx-notifications.xml"/> | ||
</beans> |
Oops, something went wrong.