[TEST] increase license expiry
Original commit: elastic/x-pack-elasticsearch@ade53101db
This commit is contained in:
parent
f32d49369c
commit
c12bc0ac3d
|
@ -37,7 +37,7 @@ public abstract class AbstractLicensesConsumerPluginIntegrationTests extends Abs
|
||||||
this.consumerPlugin = consumerPlugin;
|
this.consumerPlugin = consumerPlugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final int trialLicenseDurationInSeconds = 5;
|
private final int trialLicenseDurationInSeconds = 10;
|
||||||
|
|
||||||
protected Settings nodeSettings(int nodeOrdinal) {
|
protected Settings nodeSettings(int nodeOrdinal) {
|
||||||
return ImmutableSettings.settingsBuilder()
|
return ImmutableSettings.settingsBuilder()
|
||||||
|
@ -66,7 +66,7 @@ public abstract class AbstractLicensesConsumerPluginIntegrationTests extends Abs
|
||||||
// managerService should report feature to be enabled on all data nodes
|
// managerService should report feature to be enabled on all data nodes
|
||||||
assertLicenseManagerEnabledFeatureFor(consumerPlugin.featureName());
|
assertLicenseManagerEnabledFeatureFor(consumerPlugin.featureName());
|
||||||
// consumer plugin service should return enabled on all data nodes
|
// consumer plugin service should return enabled on all data nodes
|
||||||
assertConsumerPluginEnabledNotification(1);
|
assertConsumerPluginEnabledNotification(2);
|
||||||
|
|
||||||
logger.info(" --> check trial license expiry notification");
|
logger.info(" --> check trial license expiry notification");
|
||||||
// consumer plugin should notify onDisabled on all data nodes (expired trial license)
|
// consumer plugin should notify onDisabled on all data nodes (expired trial license)
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class LicensesPluginIntegrationTests extends AbstractLicensesIntegrationT
|
||||||
|
|
||||||
private final boolean useEagerLicenseRegistrationPlugin = randomBoolean();
|
private final boolean useEagerLicenseRegistrationPlugin = randomBoolean();
|
||||||
|
|
||||||
private final int trialLicenseDurationInSeconds = 7;
|
private final int trialLicenseDurationInSeconds = 10;
|
||||||
|
|
||||||
protected Settings nodeSettings(int nodeOrdinal) {
|
protected Settings nodeSettings(int nodeOrdinal) {
|
||||||
return ImmutableSettings.settingsBuilder()
|
return ImmutableSettings.settingsBuilder()
|
||||||
|
@ -56,7 +56,7 @@ public class LicensesPluginIntegrationTests extends AbstractLicensesIntegrationT
|
||||||
// managerService should report feature to be enabled on all data nodes
|
// managerService should report feature to be enabled on all data nodes
|
||||||
assertLicenseManagerEnabledFeatureFor(getCurrentFeatureName());
|
assertLicenseManagerEnabledFeatureFor(getCurrentFeatureName());
|
||||||
// consumer plugin service should return enabled on all data nodes
|
// consumer plugin service should return enabled on all data nodes
|
||||||
assertConsumerPluginEnabledNotification(1);
|
assertConsumerPluginEnabledNotification(2);
|
||||||
|
|
||||||
logger.info(" --> check trial license expiry notification");
|
logger.info(" --> check trial license expiry notification");
|
||||||
// consumer plugin should notify onDisabled on all data nodes (expired trial license)
|
// consumer plugin should notify onDisabled on all data nodes (expired trial license)
|
||||||
|
|
Loading…
Reference in New Issue