<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>xyz.tcheeric</groupId>
    <artifactId>nsecbunker-tests</artifactId>
    <version>0.1.1</version>
  </parent>
  <artifactId>nsecbunker-e2e</artifactId>
  <version>0.1.1</version>
  <name>nsecBunker End-to-End Tests</name>
  <description>End-to-end test suite using real nsecbunkerd and relay containers</description>
  <licenses>
    <license>
      <name>MIT License</name>
      <url>https://opensource.org/licenses/MIT</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <properties>
    <bottin.verification.skip>true</bottin.verification.skip>
    <skipTests>true</skipTests>
  </properties>
  <dependencies>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nsecbunker-core</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nsecbunker-connection</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nsecbunker-protocol</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nsecbunker-admin</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nsecbunker-client</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nsecbunker-monitoring</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nostr-java-api</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nostr-java-event</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nostr-java-id</artifactId>
    </dependency>
    <dependency>
      <groupId>xyz.tcheeric</groupId>
      <artifactId>nostr-java-crypto</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-params</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.awaitility</groupId>
      <artifactId>awaitility</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>testcontainers</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>junit-jupiter</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>postgresql</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skipTests>${skipTests}</skipTests>
          <includes>
            <include>**/*E2ETest.java</include>
            <include>**/*E2E.java</include>
          </includes>
          <forkedProcessExitTimeoutInSeconds>300</forkedProcessExitTimeoutInSeconds>
          <forkCount>1</forkCount>
          <reuseForks>true</reuseForks>
          <systemPropertyVariables>
            <bottin.verification.skip>${bottin.verification.skip}</bottin.verification.skip>
          </systemPropertyVariables>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>e2e</id>
      <properties>
        <skipTests>false</skipTests>
      </properties>
    </profile>
    <profile>
      <id>e2e-bottin</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <groups>bottin</groups>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <skipTests>false</skipTests>
      </properties>
    </profile>
  </profiles>
</project>
