Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing configuration parameter #900

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -18,6 +18,7 @@
import io.micronaut.testresources.buildtools.KnownModules;
import org.gradle.api.provider.ListProperty;
import org.gradle.api.provider.Property;
import org.gradle.api.provider.Provider;

/**
* Configuration for the test resources plugin.
Expand Down Expand Up @@ -101,4 +102,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
*/
Provider<Integer> getServerIdleTimeoutMinutes();
}
Loading