blob: c8e79a84925fadce6fac7068d2f66fc38065b417 (
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
|
// 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.archive;
import com.yahoo.config.provision.TenantName;
import com.yahoo.config.provision.zone.ZoneId;
import java.util.HashMap;
import java.util.Map;
/**
* @author freva
* @author andreer
*/
public class MockArchiveService implements ArchiveService {
public Map<ArchiveBucket, Map<TenantName, String>> authorizedIamRoles = new HashMap<>();
@Override
public ArchiveBucket createArchiveBucketFor(ZoneId zoneId) {
return new ArchiveBucket("bucketName", "keyArn");
}
@Override
public void updateBucketAndKeyPolicy(ZoneId zoneId, ArchiveBucket bucket, Map<TenantName, String> authorizeIamRoleByTenantName) {
authorizedIamRoles.put(bucket, authorizeIamRoleByTenantName);
}
}
|