-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from xdev-software/develop
Release
- Loading branch information
Showing
36 changed files
with
731 additions
and
45 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# 1.0.1 | ||
* Make it possible to disable agents | ||
* Improved D&D (docs and demo) | ||
|
||
# 1.0.0 | ||
_Initial release_ |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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 |
---|---|---|
@@ -1 +1,10 @@ | ||
This module contains the integrations test for the WebApp using Selenium. | ||
|
||
## Design | ||
The project contains the following major packages: | ||
* [cases](./src/test/java/software/xdev/tci/demo/webapp/cases/) contains the testcases | ||
* [datageneration](./src/test/java/software/xdev/tci/demo/webapp/datageneration/) contains project specific datageneration logic | ||
* [base](./src/test/java/software/xdev/tci/demo/webapp/base/) contains the basics that the testcases have in common. This includes: | ||
* ``BaseTest``: Contains the logic how the app server and it's underlying infrastructure is started, how videos are recorded and so on (most of the TCI features). Every test extends from this class | ||
* ``IntegrationTestDefaults`` (implemented by ``BaseTest``): An interface with common workflows that every test needs. For example: login, logout, waitUntil, ... | ||
* ``InfraPerCase/ClassTest``: Lifecycle specific implementations of ``BaseTest`` - either for starting all infrastructure per case or once per class |
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
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,5 @@ | ||
# Minimalistic demo | ||
|
||
This demo contains [test classes](./src/test/java/software/xdev/tci/) for the individual components. | ||
|
||
Simply run the corresponding test from within your IDE. |
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,107 @@ | ||
<?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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>software.xdev</groupId> | ||
<artifactId>tci-base-demo</artifactId> | ||
<version>1.0.1-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<organization> | ||
<name>XDEV Software</name> | ||
<url>https://xdev.software</url> | ||
</organization> | ||
|
||
<properties> | ||
<javaVersion>17</javaVersion> | ||
<maven.compiler.release>${javaVersion}</maven.compiler.release> | ||
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>software.xdev</groupId> | ||
<artifactId>tci-base</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<version>5.10.2</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<version>1.5.6</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<finalName>${project.artifactId}</finalName> | ||
|
||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.13.0</version> | ||
<configuration> | ||
<release>${maven.compiler.release}</release> | ||
<compilerArgs> | ||
<arg>-proc:none</arg> | ||
</compilerArgs> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.2.5</version> | ||
<configuration> | ||
<!-- Test need to be executed individually --> | ||
<skipTests>true</skipTests> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>checkstyle</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-checkstyle-plugin</artifactId> | ||
<version>3.3.1</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.puppycrawl.tools</groupId> | ||
<artifactId>checkstyle</artifactId> | ||
<version>10.16.0</version> | ||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
<configLocation>../.config/checkstyle/checkstyle.xml</configLocation> | ||
<includeTestSourceDirectory>true</includeTestSourceDirectory> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
13 changes: 13 additions & 0 deletions
13
tci-base-demo/src/test/java/software/xdev/tci/dummyinfra/DummyTCI.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,13 @@ | ||
package software.xdev.tci.dummyinfra; | ||
|
||
import software.xdev.tci.TCI; | ||
import software.xdev.tci.dummyinfra.containers.DummyContainer; | ||
|
||
|
||
public class DummyTCI extends TCI<DummyContainer> | ||
{ | ||
public DummyTCI(final DummyContainer container, final String networkAlias) | ||
{ | ||
super(container, networkAlias); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
tci-base-demo/src/test/java/software/xdev/tci/dummyinfra/containers/DummyContainer.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,15 @@ | ||
package software.xdev.tci.dummyinfra.containers; | ||
|
||
import org.testcontainers.containers.GenericContainer; | ||
|
||
|
||
public class DummyContainer extends GenericContainer<DummyContainer> | ||
{ | ||
public static final int PORT = 80; | ||
|
||
public DummyContainer() | ||
{ | ||
super("nginx:stable-alpine"); | ||
this.addExposedPort(PORT); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
tci-base-demo/src/test/java/software/xdev/tci/dummyinfra/factory/DummyTCIFactory.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,19 @@ | ||
package software.xdev.tci.dummyinfra.factory; | ||
|
||
import software.xdev.tci.dummyinfra.DummyTCI; | ||
import software.xdev.tci.dummyinfra.containers.DummyContainer; | ||
import software.xdev.tci.factory.prestart.PreStartableTCIFactory; | ||
|
||
|
||
public class DummyTCIFactory extends PreStartableTCIFactory<DummyContainer, DummyTCI> | ||
{ | ||
public DummyTCIFactory() | ||
{ | ||
super( | ||
DummyTCI::new, | ||
DummyContainer::new, | ||
"dummy", | ||
"container.dummy", | ||
"Dummy"); | ||
} | ||
} |
Oops, something went wrong.