blob: a2b6ad612da00b48e0f4b354824f4c28c8613a3a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.user;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.vespa.hosted.controller.tenant.Tenant;
import java.util.ArrayList;
import java.util.List;
/**
* @author olaa
*/
public class RoleMaintainerMock implements RoleMaintainer {
private List<Tenant> tenantsToDelete = new ArrayList<>();
@Override
public void deleteLeftoverRoles(List<Tenant> tenants, List<ApplicationId> applications) {
}
@Override
public List<Tenant> tenantsToDelete(List<Tenant> tenants) {
return tenantsToDelete;
}
public void mockTenantToDelete(Tenant tenant) {
tenantsToDelete.add(tenant);
}
}
|