Skip to content

Commit

Permalink
Add missing configuration parameter (#900)
Browse files Browse the repository at this point in the history
* Add missing configuration parameter

This was left over when upgrading to test resources 2.3.0.

Fixes #875

* Add missing docs

* Fix property type
  • Loading branch information
melix authored Dec 4, 2023
1 parent 7ef9c39 commit 315cab2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,7 @@ micronaut {
inferClasspath = true // true by default
additionalModules.add(JDBC_MYSQL) // empty by default
clientTimeout = 60 // in seconds, maximum time to wait for resources to be available, 60s by default
serverIdleTimeoutMinutes = 60 // if the server doesn't receive any request for this amount of time, it will be shut down
sharedServer = true // false by default
sharedServerNamespace = 'custom' // unset by default
}
Expand Down Expand Up @@ -2020,4 +2021,3 @@ In addition, the official GraalVM plugin makes use of Gradle toolchains support,
then we recommend tweaking toolchain detection as described in <<#toolchain-behavior, this section of the documentation>>.

In any case, make sure to follow the <<#native-image,configuration instructions>>.

Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ private TaskProvider<StartTestResourcesService> createStartServiceTask(Configura
task.getAccessToken().convention(accessToken);
task.getExplicitPort().convention(config.getExplicitPort());
task.getClientTimeout().convention(config.getClientTimeout());
task.getServerIdleTimeoutMinutes().convention(config.getServerIdleTimeoutMinutes());
task.getClasspath().from(server);
task.getForeground().convention(false);
task.getStopFile().set(stopFile.toFile());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,13 @@ public interface TestResourcesConfiguration extends KnownModules {
* @return the namespace
*/
Property<String> getSharedServerNamespace();

/**
* Server idle timeout, in minutes. If the server
* doesn't receive any request for this amount of
* time, it will stop itself.
*
* @return the server idle timeout
*/
Property<Integer> getServerIdleTimeoutMinutes();
}

0 comments on commit 315cab2

Please sign in to comment.