diff options
author | mgimle <michael@gimle.io> | 2019-07-31 11:10:58 +0200 |
---|---|---|
committer | mgimle <michael@gimle.io> | 2019-07-31 11:38:22 +0200 |
commit | 158980d63558177044c8d17cc960d96837b91c44 (patch) | |
tree | 8963dc1cef57bb14fcb8347c1a82f918147bf0b8 /controller-api | |
parent | 83e11b2d7824d584decc4f0f500d752c0703971f (diff) |
Added a mock aws event fetcher
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/MockAwsEventFetcher.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/MockAwsEventFetcher.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/MockAwsEventFetcher.java new file mode 100644 index 00000000000..1337ac0dfcf --- /dev/null +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/MockAwsEventFetcher.java @@ -0,0 +1,19 @@ +package com.yahoo.vespa.hosted.controller.api.integration.aws; + +import com.amazonaws.regions.Regions; +import com.yahoo.vespa.hosted.controller.api.integration.organization.Issue; + +import java.util.List; +import java.util.Optional; + +public class MockAwsEventFetcher implements AwsEventFetcher { + @Override + public List<CloudEvent> getEvents(Regions awsRegion) { + return List.of(); + } + + @Override + public Issue createIssue(CloudEvent event) { + return new Issue("summary", "description", "VESPA", Optional.empty()); + } +} |