[TEST] increase license expiry

Original commit: elastic/x-pack-elasticsearch@ade53101db
This commit is contained in:
Areek Zillur 2015-01-23 00:34:26 -05:00
parent f32d49369c
commit c12bc0ac3d
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ public abstract class AbstractLicensesConsumerPluginIntegrationTests extends Abs
this.consumerPlugin = consumerPlugin;
}
private final int trialLicenseDurationInSeconds = 5;
private final int trialLicenseDurationInSeconds = 10;
protected Settings nodeSettings(int nodeOrdinal) {
return ImmutableSettings.settingsBuilder()
@ -66,7 +66,7 @@ public abstract class AbstractLicensesConsumerPluginIntegrationTests extends Abs
// managerService should report feature to be enabled on all data nodes
assertLicenseManagerEnabledFeatureFor(consumerPlugin.featureName());
// consumer plugin service should return enabled on all data nodes
assertConsumerPluginEnabledNotification(1);
assertConsumerPluginEnabledNotification(2);
logger.info(" --> check trial license expiry notification");
// consumer plugin should notify onDisabled on all data nodes (expired trial license)

View File

@ -26,7 +26,7 @@ public class LicensesPluginIntegrationTests extends AbstractLicensesIntegrationT
private final boolean useEagerLicenseRegistrationPlugin = randomBoolean();
private final int trialLicenseDurationInSeconds = 7;
private final int trialLicenseDurationInSeconds = 10;
protected Settings nodeSettings(int nodeOrdinal) {
return ImmutableSettings.settingsBuilder()
@ -56,7 +56,7 @@ public class LicensesPluginIntegrationTests extends AbstractLicensesIntegrationT
// managerService should report feature to be enabled on all data nodes
assertLicenseManagerEnabledFeatureFor(getCurrentFeatureName());
// consumer plugin service should return enabled on all data nodes
assertConsumerPluginEnabledNotification(1);
assertConsumerPluginEnabledNotification(2);
logger.info(" --> check trial license expiry notification");
// consumer plugin should notify onDisabled on all data nodes (expired trial license)