summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/MockRoleService.java
blob: f7c51f0bbc2573fc41fd737eaaf785fd46ea21dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.vespa.hosted.controller.api.integration.aws;

import com.yahoo.config.provision.TenantName;

import java.util.List;

public class MockRoleService extends NoopRoleService {

    private List<TenantName> maintainedTenants;

    @Override
    public void maintainRoles(List<TenantName> tenants) {
        maintainedTenants = List.copyOf(tenants);
    }

    public List<TenantName> maintainedTenants() {
        return maintainedTenants;
    }
}