aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java
diff options
context:
space:
mode:
authorØyvind Grønnesby <oyving@yahooinc.com>2022-06-09 13:23:22 +0200
committerØyvind Grønnesby <oyving@yahooinc.com>2022-06-09 13:48:05 +0200
commit86720074e57ddddb91e03e4f22e0a47a91b02acc (patch)
tree6bd9fe92d6a8c2b3d163b582d620cd06550f8850 /controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java
parent46ef33bd14f2c12ccdeac9b7c588f12b7cfa9c8c (diff)
Tombstone idle tenants
Tenants that have not been active in a year can be tombtoned.
Diffstat (limited to 'controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java')
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java
index 2e34c6511a7..df30b6b57ee 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/CloudTrialExpirerTest.java
@@ -38,7 +38,7 @@ public class CloudTrialExpirerTest {
@Test
public void tombstone_inactive_none() {
- registerTenant("none-tenant", "none", Duration.ofDays(28).plusMillis(1));
+ registerTenant("none-tenant", "none", Duration.ofDays(365).plusMillis(1));
expirer.maintain();
assertEquals(Tenant.Type.deleted, tester.controller().tenants().get(TenantName.from("none-tenant"), true).get().type());
}
@@ -75,7 +75,7 @@ public class CloudTrialExpirerTest {
@Test
public void delete_tenants_with_applications_with_no_deployments() {
- registerTenant("with-apps", "trial", Duration.ofDays(30));
+ registerTenant("with-apps", "trial", Duration.ofDays(366));
tester.createApplication("with-apps", "app1", "instance1");
expirer.maintain();
assertPlan("with-apps", "none");