Skip to content

Commit

Permalink
Hide FTE tests configs
Browse files Browse the repository at this point in the history
Failure injection is a for-tests functionality. Hide its config, they
are not meant to be used.
  • Loading branch information
findepi committed Dec 21, 2023
1 parent 506da60 commit 7af05cb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import io.airlift.configuration.Config;
import io.airlift.configuration.ConfigDescription;
import io.airlift.configuration.ConfigHidden;
import io.airlift.units.Duration;
import jakarta.validation.constraints.NotNull;

Expand All @@ -31,6 +32,7 @@ public Duration getExpirationPeriod()
return expirationPeriod;
}

@ConfigHidden // not supposed to be used outside of tests
@Config("failure-injection.expiration-period")
@ConfigDescription("Period after which an injected failure is considered expired and will no longer be triggering a failure")
public FailureInjectionConfig setExpirationPeriod(Duration expirationPeriod)
Expand All @@ -45,6 +47,7 @@ public Duration getRequestTimeout()
return requestTimeout;
}

@ConfigHidden // not supposed to be used outside of tests
@Config("failure-injection.request-timeout")
@ConfigDescription("Period after which requests blocked to emulate a timeout are released")
public FailureInjectionConfig setRequestTimeout(Duration requestTimeout)
Expand Down

0 comments on commit 7af05cb

Please sign in to comment.