com.yahoo.vespa.hosted.controller.api.integration.aws.MockEnclaveAccessService Maven / Gradle / Ivy
// Copyright Vespa.ai. 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.CloudAccount;
import java.util.Set;
import java.util.TreeSet;
/**
* @author jonmv
*/
public class MockEnclaveAccessService implements EnclaveAccessService {
private volatile Set currentAccounts = new TreeSet<>();
public Set currentAccounts() { return currentAccounts; }
@Override
public double allowAccessFor(Set accounts) {
currentAccounts = new TreeSet<>(accounts);
return 1;
}
}