Skip to content

mussonindustrial/testcontainers-ignition

Repository files navigation

testcontainers-ignition Musson Industrial Logo

Release javadoc Build License

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

This project is a Testcontainers implementation for Ignition by Inductive Automation.

Include

Gradle

// build.gradle.kts
dependencies {
    testImplementation("com.mussonindustrial:testcontainers-ignition:0.4.1")
}

Maven

<dependency>
    <groupId>com.mussonindustrial</groupId>
    <artifactId>testcontainers-ignition</artifactId>
    <version>0.4.1</version>
    <scope>test</scope>
</dependency>

Usage

void createIgnitionGateway() throws FileNotFoundException {
    try (IgnitionContainer ignition = new IgnitionContainer("inductiveautomation/ignition:8.1.33")
            .withCredentials("myUsername", "myPassword")
            .withEdition(GatewayEdition.STANDARD)
            .withModules(GatewayModule.PERSPECTIVE)
            .withGatewayBackup("./path/to/backup.gwbk")
            .withThirdPartyModules("./path/to/module.modl")
            .acceptLicense()) {
        ignition.start();
        String url = ignition.getGatewayUrl();
        // ... do something with your gateway!
    }
}

Sponsors

Maintenance of this project is made possible by all our contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here. 💖

Links

About

A testcontainers implementation for Ignition by Inductive Automation.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages