package io.trygvis.rules.engine; import io.trygvis.rules.engine.cli.RunCommand; import java.io.File; import static org.junit.jupiter.api.Assertions.assertEquals; class AcmeWireguardTestMain { public static void main(String[] args) throws Exception { var basedir = new File("example"); var c = new RunCommand(); c.name = "acme-wireguard"; c.input = new File[]{new File(basedir, "acme.yaml")}; c.outputState = new File(basedir, "db/wireguard.yaml"); c.agendaGroups = new String[]{"init", "generate"}; c.generatedOutput = new File(basedir, "acme-wireguard"); c.outputIncludes = new String[]{ "Wg*", "Machine", "DnsEntry", "Ipv4Cidr", "Ipv4Address", }; assertEquals(0, c.call()); } }