fix build (settings cannot be prefixed with `.`)
Original commit: elastic/x-pack-elasticsearch@62178e1e82
This commit is contained in:
parent
e6832e5881
commit
617c51cc86
|
@ -44,7 +44,7 @@ public abstract class AbstractLicensesConsumerPluginIntegrationTestCase extends
|
|||
return Settings.settingsBuilder()
|
||||
.put(super.nodeSettings(nodeOrdinal))
|
||||
// this setting is only used in tests
|
||||
.put(".trial_license_duration_in_seconds", trialLicenseDurationInSeconds)
|
||||
.put("_trial_license_duration_in_seconds", trialLicenseDurationInSeconds)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ public class LicensesPluginIntegrationTests extends AbstractLicensesIntegrationT
|
|||
return Settings.settingsBuilder()
|
||||
.put(super.nodeSettings(nodeOrdinal))
|
||||
// this setting is only used in tests
|
||||
.put(".trial_license_duration_in_seconds", trialLicenseDurationInSeconds)
|
||||
.put("_trial_license_duration_in_seconds", trialLicenseDurationInSeconds)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public class LicensesPluginsIntegrationTests extends AbstractLicensesIntegration
|
|||
return Settings.settingsBuilder()
|
||||
.put(super.nodeSettings(0))
|
||||
// this setting is only used in tests
|
||||
.put(".trial_license_duration_in_seconds", trialLicenseDuration)
|
||||
.put("_trial_license_duration_in_seconds", trialLicenseDuration)
|
||||
.build();
|
||||
|
||||
}
|
||||
|
|
|
@ -61,9 +61,9 @@ public class LicensesServiceClusterTests extends AbstractLicensesIntegrationTest
|
|||
.put("node.data", true)
|
||||
.put("format", "json")
|
||||
// this setting is only used in tests
|
||||
.put(".trial_license_duration_in_seconds", 9)
|
||||
.put("_trial_license_duration_in_seconds", 9)
|
||||
// this setting is only used in tests
|
||||
.put(".grace_duration_in_seconds", 9)
|
||||
.put("_grace_duration_in_seconds", 9)
|
||||
.put(Node.HTTP_ENABLED, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,11 +33,11 @@ public abstract class TestPluginServiceBase extends AbstractLifecycleComponent<T
|
|||
super(settings);
|
||||
this.eagerLicenseRegistration = eagerLicenseRegistration;
|
||||
this.licensesClientService = licensesClientService;
|
||||
int trialDurationInSec = settings.getAsInt(".trial_license_duration_in_seconds", -1);
|
||||
int trialDurationInSec = settings.getAsInt("_trial_license_duration_in_seconds", -1);
|
||||
if (trialDurationInSec != -1) {
|
||||
licensesClientService.setTrialLicenseDuration(TimeValue.timeValueSeconds(trialDurationInSec));
|
||||
}
|
||||
int graceDurationInSec = settings.getAsInt(".grace_duration_in_seconds", 5);
|
||||
int graceDurationInSec = settings.getAsInt("_grace_duration_in_seconds", 5);
|
||||
licensesClientService.setGracePeriodDuration(TimeValue.timeValueSeconds(graceDurationInSec));
|
||||
if (!eagerLicenseRegistration) {
|
||||
this.clusterService = clusterService;
|
||||
|
|
Loading…
Reference in New Issue