<?xml version="1.0" encoding="UTF-8"?>
<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">
    <parent>
        <groupId>com.atlassian.crowd</groupId>
        <artifactId>atlassian-crowd</artifactId>
        <version>5.3.0-EAP01</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>

    <artifactId>crowd-end-to-end-test</artifactId>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>testcontainers</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>postgresql</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>selenium</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>mysql</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.freemarker</groupId>
            <artifactId>freemarker</artifactId>
            <version>2.3.24-atlassian-2</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-test-utils</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-hibernate5-dialects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-pageobjects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-server</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                    <systemPropertyVariables>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>server</id>
            <properties>
                <crowd.clustering.enabled>false</crowd.clustering.enabled>
                <crowd.license.type>SERVER</crowd.license.type>
                <crowd.license.key>AAABog0ODAoPeNp1kc1u2zAQhO98igV6KGCAsqQ4dWJAQBuJTZwmkmHLLfp3oKh1zEYmBZKy67cvYzlI0qYHXnZnuLPfvvmCNVxzBfEYonByOpqcxHB5W0IcxhHJu02FplgtLRqb0IikWjkuXM43mNR6p8V77hpureQqEHpDhNG7OriRApXFct/iQZmxz+ymmLE5mXVGrLnFjDtM4jA6p2FE4zH5v+PYYb9bafYH2yweXT0GYbdcNq8mWaDZoplmyQUbMzrKvsX0XXE9ppcn52dk0VVWGNk6qVXiTIdkMBjkRUk/FnM6mxfZMi2nRU6XC+YbSWrQD66h2oNbIxwjAVNC12igNfoXCgff1861PybD4Z0OXoQZNr2DYu/4GUCmQWkHtbTOyKpz6H+WFpwG0VmnN553QPxyyqHiSrzY/ywMr/4l/YyZz5zO2YeSZfTi68MCrwE6Wj2hpbpXeqfIguWJf/Q0DElh7riSlh8IfTL83mvJgYMv/H29Pos/h9xijzPDJ76PuFbaQPqgfGuh6mRTW9AK0ilhW950/aQVbyySP4HD3pcwLQIUUMHyo/El/akYOUYhSNvWNSxtJHMCFQCTUQVoEevQTHc9Yh/2ug/TLHIjrg==X02k8</crowd.license.key>
            </properties>
        </profile>
        <profile>
            <id>sndc</id>
            <properties>
                <crowd.clustering.enabled>false</crowd.clustering.enabled>
                <crowd.license.type>DATA_CENTER</crowd.license.type>
                <crowd.license.key>AAABrw0ODAoPeNp1kctu2zAQRff8CgLdGaAsqUn9AAQ0kZgmRSIZthSgrwVFjW22Minw4dR/X9qSkaRNF9zM8N65c+ZduXX4BmocxjiczS+jeTjDVZniOIwmKHe7GnSxrgxok5AIpUpaxm3OdpC0HbOgPzLbMmMEkwFXO7Rwmm+Zgcz3kqMHCSMSTdG94CANlIcOTuKMPtL7YkGX5w793Ql9OMkW8cXteRJ9YKJ9exTX6qkJ/m+8Ar0HfZcl13RCyUX2NSYfis8T8un9bDqI/TiWgvTeidUO0MrVhmvRWaFkXxmNRnlRkptiSRbLIqvS8q7ISbWivpGkGnyuBtcHbLeAhyiYSq4a0LjT6idwi79tre2+z8fjjQperTBuewWBXvEjwJnCUlncCGO1qJ0F7ywMtgpzZ6za+TsEyDPxmSWT/BW2aRje/kvlBRGfOV3Sq5Jm5PrLcYE3uQ5aD66Sv6R6kmhF88Q/chmGqNAbJoVhJ0RXZyE6ofClv+/ex/GHFHvoiQ47P/pNjhYxyuCZeQnG4uEHXivPsHUbIXEDe2hV5zWI7lnr+vFr1hpAfwDKnPEMMCwCFAmZGEuZ8ec23uk1hgrTb14sdW0NAhQBBLtGgJRWDpAy3ibJD727YOqvrw==X02ko</crowd.license.key>
            </properties>
        </profile>
        <profile>
            <id>cluster</id>
            <properties>
                <crowd.clustering.enabled>true</crowd.clustering.enabled>
                <crowd.license.type>DATA_CENTER</crowd.license.type>
                <crowd.license.key>AAABrw0ODAoPeNp1kctu2zAQRff8CgLdGaAsqUn9AAQ0kZgmRSIZthSgrwVFjW22Minw4dR/X9qSkaRNF9zM8N65c+ZduXX4BmocxjiczS+jeTjDVZniOIwmKHe7GnSxrgxok5AIpUpaxm3OdpC0HbOgPzLbMmMEkwFXO7Rwmm+Zgcz3kqMHCSMSTdG94CANlIcOTuKMPtL7YkGX5w793Ql9OMkW8cXteRJ9YKJ9exTX6qkJ/m+8Ar0HfZcl13RCyUX2NSYfis8T8un9bDqI/TiWgvTeidUO0MrVhmvRWaFkXxmNRnlRkptiSRbLIqvS8q7ISbWivpGkGnyuBtcHbLeAhyiYSq4a0LjT6idwi79tre2+z8fjjQperTBuewWBXvEjwJnCUlncCGO1qJ0F7ywMtgpzZ6za+TsEyDPxmSWT/BW2aRje/kvlBRGfOV3Sq5Jm5PrLcYE3uQ5aD66Sv6R6kmhF88Q/chmGqNAbJoVhJ0RXZyE6ofClv+/ex/GHFHvoiQ47P/pNjhYxyuCZeQnG4uEHXivPsHUbIXEDe2hV5zWI7lnr+vFr1hpAfwDKnPEMMCwCFAmZGEuZ8ec23uk1hgrTb14sdW0NAhQBBLtGgJRWDpAy3ibJD727YOqvrw==X02ko</crowd.license.key>
            </properties>
        </profile>
        <profile>
            <id>end-to-end</id>
            <dependencies>
                <dependency>
                    <groupId>com.atlassian.crowd.distribution</groupId>
                    <artifactId>crowd-docker-distribution</artifactId>
                    <version>${project.version}</version>
                    <type>pom</type>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>integration-test</goal>
                                </goals>
                                <configuration>
                                    <failIfNoTests>true</failIfNoTests>
                                    <includes>/it/crowd/**/*.java</includes>
                                    <systemPropertyVariables>
                                        <crowd.test.batch.number>${crowd.test.batch.number}</crowd.test.batch.number>
                                        <crowd.test.batch.amount>${crowd.test.batch.amount}</crowd.test.batch.amount>
                                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                                        <temporary.folder>${project.build.directory}</temporary.folder>
                                        <crowd.license.type>${crowd.license.type}</crowd.license.type>
                                        <crowd.license.key>${crowd.license.key}</crowd.license.key>
                                        <crowd.clustering.enabled>${crowd.clustering.enabled}</crowd.clustering.enabled>
                                    </systemPropertyVariables>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <properties>
        <crowd.test.batch.number />
        <crowd.test.batch.amount />
        <xvfb.enable>false</xvfb.enable>
        <crowd.license.type />
        <crowd.license.key />
        <crowd.clustering.enabled />
    </properties>
</project>
