Skip to content

Commit

Permalink
Merge branch 'master' into brig/json-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ibodrov authored Nov 14, 2024
2 parents cb22147 + 617c49e commit 72504bb
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ public static ConcordRule configure() {
.streamAgentLogs(true)
.sharedContainerDir(sharedDir)
.useLocalMavenRepository(true)
.extraConfigurationSupplier(() -> "concord-agent { prefork { enabled = true } }");
.extraConfigurationSupplier(() -> """
concord-agent {
dependencyResolveTimeout = "5 seconds"
logMaxDelay = "250 milliseconds"
pollInterval = "250 milliseconds"
prefork {
enabled = true
}
}
""");

boolean localMode = Boolean.parseBoolean(System.getProperty("it.local.mode"));
if (localMode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class CryptoIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'crypto' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
public class FormIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* A straightforward single form process.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class ImportsIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure()
public static final ConcordRule concord = ConcordConfiguration.configure()
.extraConfigurationSupplier(() -> "concord-server { imports { disabledProcessors = [] } }\n" +
"concord-agent { imports { disabledProcessors = [] } }");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public class JsonStoreIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'jsonStore' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class KvTaskIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'kv' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class NodeRosterIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'noderoster' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
public class SmtpIT extends AbstractTest {

@RegisterExtension
GreenMailExtension mailServer = new GreenMailExtension(new ServerSetup(0, "0.0.0.0", ServerSetup.PROTOCOL_SMTP));
public static final GreenMailExtension mailServer = new GreenMailExtension(new ServerSetup(0, "0.0.0.0", ServerSetup.PROTOCOL_SMTP))
.withPerMethodLifecycle(false);

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure()
public static final ConcordRule concord = ConcordConfiguration.configure()
.containerListener(new ContainerListener() {
@Override
public void beforeStart(ContainerType type) {
Expand Down
4 changes: 4 additions & 0 deletions it/server/src/test/resources/agent.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
concord-agent {

dependencyResolveTimeout = "5 seconds"
logMaxDelay = "250 milliseconds"
pollInterval = "250 milliseconds"

prefork {
enabled = true
}
Expand Down

0 comments on commit 72504bb

Please sign in to comment.