mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
feat(ssm): publish parameter change events (#5262)
* feat(ssm): publish parameter change events After a successful PutParameter, DeleteParameter, DeleteParameters, LabelParameterVersion or UnlabelParameterVersion, SsmService publishes the AWS-shaped aws.ssm "Parameter Store Change" event to the default EventBridge bus, with the parameter ARN in resources. A label event carries the type and description of the labelled version; an unlabel event lists the labels it removed. Every event is published after the service lock is released. Failed calls publish nothing, and a delivery failure is logged without failing or undoing the write. CloudFormation managed parameters go through SsmService and publish the same events. * test(cloudformation): move CfnStackWaits into testing CfnStackWaits was package-private in the CloudFormation tests, so the SSM event integration test polled DescribeStacks for CREATE_COMPLETE itself. It now lives in testing with a public API, and that test waits through CfnStackWaits.awaitStatus and builds its CloudFormation requests with CfnRequests.cfn instead of a private copy. * refactor(eventbridge): build service event entries in one place The ECS, Step Functions, Redshift Data, CodePipeline, SES and SSM publishers each built the same Source, DetailType, Detail and Resources entry. EventBridgeService.serviceEventEntry builds it, with Resources always present and empty for a null or blank resource ARN. Each publisher still calls putEvents with its own region and account. The explicit default EventBusName and the Region that repeated putEvents' region argument are gone; putEvents fills both the same way.
This commit is contained in:
1 parent
1b15299228
commit
89317831bb
108 files changed
+740
-96
No files matched your search
+70
@@ -0,0 +1,70 @@
|
||||
package com.floci.test;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import software.amazon.awssdk.services.eventbridge.EventBridgeClient;
|
||||
import software.amazon.awssdk.services.eventbridge.model.DeleteRuleRequest;
|
||||
import software.amazon.awssdk.services.eventbridge.model.PutRuleRequest;
|
||||
import software.amazon.awssdk.services.eventbridge.model.PutTargetsRequest;
|
||||
import software.amazon.awssdk.services.eventbridge.model.RemoveTargetsRequest;
|
||||
import software.amazon.awssdk.services.eventbridge.model.Target;
|
||||
import software.amazon.awssdk.services.sqs.SqsClient;
|
||||
import software.amazon.awssdk.services.sqs.model.CreateQueueRequest;
|
||||
import software.amazon.awssdk.services.sqs.model.DeleteQueueRequest;
|
||||
import software.amazon.awssdk.services.sqs.model.GetQueueAttributesRequest;
|
||||
import software.amazon.awssdk.services.sqs.model.Message;
|
||||
import software.amazon.awssdk.services.sqs.model.QueueAttributeName;
|
||||
import software.amazon.awssdk.services.sqs.model.ReceiveMessageRequest;
|
||||
import software.amazon.awssdk.services.ssm.SsmClient;
|
||||
import software.amazon.awssdk.services.ssm.model.DeleteParameterRequest;
|
||||
import software.amazon.awssdk.services.ssm.model.ParameterType;
|
||||
import software.amazon.awssdk.services.ssm.model.PutParameterRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@DisplayName("SSM Parameter Store Change events")
|
||||
class SsmParameterStoreEventsTest {
|
||||
|
||||
@Test
|
||||
@DisplayName("PutParameter publishes a Parameter Store Change event to the default bus")
|
||||
void putParameterPublishesParameterStoreChangeEvent() throws Exception {
|
||||
String name = "/" + TestFixtures.uniqueName("sdk-ssm-events") + "/param";
|
||||
String rule = TestFixtures.uniqueName("ssm-events");
|
||||
try (SsmClient ssm = TestFixtures.ssmClient();
|
||||
EventBridgeClient eventBridge = TestFixtures.eventBridgeClient();
|
||||
SqsClient sqs = TestFixtures.sqsClient()) {
|
||||
String queueUrl = sqs.createQueue(CreateQueueRequest.builder().queueName(rule).build()).queueUrl();
|
||||
String queueArn = sqs.getQueueAttributes(GetQueueAttributesRequest.builder()
|
||||
.queueUrl(queueUrl).attributeNames(QueueAttributeName.QUEUE_ARN).build())
|
||||
.attributes().get(QueueAttributeName.QUEUE_ARN);
|
||||
eventBridge.putRule(PutRuleRequest.builder().name(rule)
|
||||
.eventPattern("{\"source\":[\"aws.ssm\"],\"detail\":{\"name\":[\"" + name + "\"]}}")
|
||||
.build());
|
||||
eventBridge.putTargets(PutTargetsRequest.builder().rule(rule)
|
||||
.targets(Target.builder().id("1").arn(queueArn).build()).build());
|
||||
try {
|
||||
ssm.putParameter(PutParameterRequest.builder()
|
||||
.name(name).value("v").type(ParameterType.STRING).build());
|
||||
|
||||
List<Message> messages = sqs.receiveMessage(ReceiveMessageRequest.builder()
|
||||
.queueUrl(queueUrl).maxNumberOfMessages(10).waitTimeSeconds(5).build()).messages();
|
||||
assertThat(messages).hasSize(1);
|
||||
JsonNode event = new ObjectMapper().readTree(messages.get(0).body());
|
||||
assertThat(event.path("source").asText()).isEqualTo("aws.ssm");
|
||||
assertThat(event.path("detail-type").asText()).isEqualTo("Parameter Store Change");
|
||||
assertThat(event.path("detail").path("operation").asText()).isEqualTo("Create");
|
||||
assertThat(event.path("detail").path("name").asText()).isEqualTo(name);
|
||||
assertThat(event.path("detail").path("type").asText()).isEqualTo("String");
|
||||
} finally {
|
||||
eventBridge.removeTargets(RemoveTargetsRequest.builder().rule(rule).ids("1").build());
|
||||
eventBridge.deleteRule(DeleteRuleRequest.builder().name(rule).build());
|
||||
sqs.deleteQueue(DeleteQueueRequest.builder().queueUrl(queueUrl).build());
|
||||
ssm.deleteParameter(DeleteParameterRequest.builder().name(name).build());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -173,3 +173,24 @@ All AWS parameter types are accepted: `String`, `StringList`, `SecureString`.
|
||||
|
||||
!!! note
|
||||
`SecureString` parameters are stored as-is without actual KMS encryption in Floci. The type is preserved and returned correctly, but the value is not encrypted at rest.
|
||||
|
||||
## Parameter Store Change events
|
||||
|
||||
Like AWS, Floci publishes a `Parameter Store Change` event (`source: aws.ssm`) to the account's
|
||||
**default** EventBridge bus after a successful parameter write, so a rule matching `aws.ssm` fires
|
||||
from Parameter Store activity. `resources` holds the parameter ARN, and the event carries the
|
||||
account and region of the call.
|
||||
|
||||
| Call | Events | `detail` |
|
||||
|---|---|---|
|
||||
| `PutParameter`, new name | one `Create` | `operation`, `name`, `type`, and `description` when set |
|
||||
| `PutParameter` overwriting an existing name | one `Update`, even when the value is unchanged | as for `Create` |
|
||||
| `DeleteParameter` | one `Delete` | as for `Create` |
|
||||
| `DeleteParameters` | one `Delete` per deleted name, none for a missing name | as for `Create` |
|
||||
| `LabelParameterVersion` | one `LabelParameterVersion` per valid label it attaches or moves | as for `Create`, from the labelled version, plus `label`, `fromVersion` (the version the label left as a string, `""` for a new label) and `toVersion` |
|
||||
| `UnlabelParameterVersion` | one `UnlabelParameterVersion` when it removes a label, none otherwise | as for `Create`, from the unlabelled version, plus `labels` (the labels removed), `fromVersion` (that version as a string) and `toVersion` (`""`) |
|
||||
|
||||
Parameters a CloudFormation stack creates or deletes publish the same events. A call that fails,
|
||||
such as a `PutParameter` on an existing name without `Overwrite`, publishes nothing, and so do
|
||||
`AddTagsToResource`, a label already on the requested version and an invalid label. Publishing
|
||||
is best effort: a delivery failure is logged and never fails or undoes the write.
|
||||
+3
-14
@@ -1,7 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.codepipeline;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import io.github.hectorvent.floci.core.common.AwsArnUtils;
|
||||
import io.github.hectorvent.floci.core.common.AwsRegionFacts;
|
||||
@@ -18,7 +17,6 @@ import org.jboss.logging.Logger;
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -171,18 +169,9 @@ public class CodePipelineEventPublisher {
|
||||
|
||||
private void publish(CodePipelineExecution execution, String detailType, ObjectNode detail) {
|
||||
try {
|
||||
Map<String, Object> entry = new HashMap<>();
|
||||
entry.put("Source", "aws.codepipeline");
|
||||
entry.put("DetailType", detailType);
|
||||
entry.put("Detail", detail.toString());
|
||||
entry.put("EventBusName", "default");
|
||||
entry.put("Region", execution.getRegion());
|
||||
// Always emit Resources (possibly empty): EventBridge pattern matching reads the
|
||||
// key unconditionally for rules with a "resources" filter.
|
||||
ArrayNode resources = mapper.createArrayNode();
|
||||
resources.add(AwsArnUtils.Arn.of("codepipeline", execution.getRegion(),
|
||||
execution.getAccountId(), execution.getPipelineName()).toString());
|
||||
entry.put("Resources", resources);
|
||||
Map<String, Object> entry = EventBridgeService.serviceEventEntry("aws.codepipeline", detailType,
|
||||
detail.toString(), AwsArnUtils.Arn.of("codepipeline", execution.getRegion(),
|
||||
execution.getAccountId(), execution.getPipelineName()).toString());
|
||||
// This runs on a pipeline-execution worker thread with no request context, so the
|
||||
// two-argument overload would fall back to the default (management) account and a
|
||||
// member account's EventBridge rules would never see the event. Name the bus's
|
||||
|
||||
@@ -14,9 +14,7 @@ import jakarta.inject.Inject;
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Publishes AWS-shaped {@code aws.ecs} lifecycle events to the default EventBridge bus.
|
||||
@@ -120,16 +118,8 @@ public class EcsEventPublisher {
|
||||
|
||||
private void putEvent(String detailType, String resourceArn, ObjectNode detail, String region)
|
||||
throws Exception {
|
||||
ArrayNode resources = objectMapper.createArrayNode();
|
||||
if (resourceArn != null) {
|
||||
resources.add(resourceArn);
|
||||
}
|
||||
Map<String, Object> entry = new HashMap<>();
|
||||
entry.put("Source", SOURCE);
|
||||
entry.put("DetailType", detailType);
|
||||
entry.put("Detail", objectMapper.writeValueAsString(detail));
|
||||
entry.put("Resources", resources);
|
||||
eventBridgeService.putEvents(List.of(entry), effectiveRegion(region));
|
||||
eventBridgeService.putEvents(List.of(EventBridgeService.serviceEventEntry(SOURCE, detailType,
|
||||
objectMapper.writeValueAsString(detail), resourceArn)), effectiveRegion(region));
|
||||
}
|
||||
|
||||
private String effectiveRegion(String region) {
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import com.fasterxml.jackson.databind.node.TextNode;
|
||||
import io.github.hectorvent.floci.config.EmulatorConfig;
|
||||
@@ -766,6 +767,26 @@ public class EventBridgeService implements ResourceProvider {
|
||||
|
||||
public record PutEventsResult(int failedCount, List<Map<String, String>> entries) {}
|
||||
|
||||
/**
|
||||
* The entry an AWS service sends on its own behalf, for {@link #putEvents}. {@code Resources} is
|
||||
* always present, because rule matching reads it for any rule with a {@code resources} filter,
|
||||
* and holds {@code resourceArn} unless that is null or blank. With no {@code EventBusName} the
|
||||
* entry goes to the default bus; the map is mutable so a caller can name another.
|
||||
*/
|
||||
public static Map<String, Object> serviceEventEntry(String source, String detailType, String detail,
|
||||
String resourceArn) {
|
||||
ArrayNode resources = JsonNodeFactory.instance.arrayNode();
|
||||
if (resourceArn != null && !resourceArn.isBlank()) {
|
||||
resources.add(resourceArn);
|
||||
}
|
||||
Map<String, Object> entry = new HashMap<>();
|
||||
entry.put("Source", source);
|
||||
entry.put("DetailType", detailType);
|
||||
entry.put("Detail", detail);
|
||||
entry.put("Resources", resources);
|
||||
return entry;
|
||||
}
|
||||
|
||||
public PutEventsResult putEvents(List<Map<String, Object>> entries, String region) {
|
||||
return putEvents(entries, region, null);
|
||||
}
|
||||
|
||||
+2
-7
@@ -9,7 +9,6 @@ import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -47,12 +46,8 @@ class RedshiftDataEventPublisher {
|
||||
detail.put("state", statement.status.name());
|
||||
detail.put("rows", statement.resultRows);
|
||||
detail.put("expireAt", statement.expiresAt.getEpochSecond());
|
||||
Map<String, Object> entry = new HashMap<>();
|
||||
entry.put("Source", "aws.redshift-data");
|
||||
entry.put("DetailType", "Redshift Data Statement Status Change");
|
||||
entry.put("Detail", detail.toString());
|
||||
entry.put("EventBusName", "default");
|
||||
entry.put("Resources", mapper.createArrayNode().add(statement.resourceArn));
|
||||
Map<String, Object> entry = EventBridgeService.serviceEventEntry("aws.redshift-data",
|
||||
"Redshift Data Statement Status Change", detail.toString(), statement.resourceArn);
|
||||
EventBridgeService.PutEventsResult result = events.putEvents(List.of(entry), statement.region, statement.accountId);
|
||||
if (result.failedCount() > 0) {
|
||||
LOG.warnv("EventBridge rejected event for statement {0}, account {1}, region {2}: {3}",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.ses;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import io.github.hectorvent.floci.core.common.AwsArnUtils;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
@@ -27,7 +26,6 @@ import org.jboss.logging.Logger;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -248,21 +246,9 @@ public class SesEventPublisher {
|
||||
}
|
||||
String region = AwsArnUtils.regionOrDefault(busArn, defaultRegion);
|
||||
try {
|
||||
Map<String, Object> entry = new HashMap<>();
|
||||
entry.put("Source", "aws.ses");
|
||||
entry.put("DetailType", SesEventPayload.eventBridgeDetailType(eventType));
|
||||
entry.put("Detail", payloadJson);
|
||||
Map<String, Object> entry = EventBridgeService.serviceEventEntry("aws.ses",
|
||||
SesEventPayload.eventBridgeDetailType(eventType), payloadJson, sourceArn);
|
||||
entry.put("EventBusName", busName);
|
||||
entry.put("Region", region);
|
||||
// Always emit Resources (possibly empty) — EventBridgeService.matchesPattern
|
||||
// casts entry.get("Resources") to ArrayNode unconditionally for any rule with
|
||||
// a "resources" filter; an absent key NPEs and silently turns the rule into
|
||||
// a no-match.
|
||||
ArrayNode resources = objectMapper.createArrayNode();
|
||||
if (sourceArn != null && !sourceArn.isBlank()) {
|
||||
resources.add(sourceArn);
|
||||
}
|
||||
entry.put("Resources", resources);
|
||||
EventBridgeService.PutEventsResult result =
|
||||
eventBridgeService.putEvents(List.of(entry), region);
|
||||
if (result.failedCount() > 0) {
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
package io.github.hectorvent.floci.services.ssm;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import io.github.hectorvent.floci.services.eventbridge.EventBridgeService;
|
||||
import io.github.hectorvent.floci.services.ssm.model.Parameter;
|
||||
import io.github.hectorvent.floci.services.ssm.model.ParameterHistory;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Publishes the {@code aws.ssm} Parameter Store Change events AWS sends to the default EventBridge bus
|
||||
* after a successful parameter mutation. Best effort: a publishing failure is logged and never undoes
|
||||
* the write.
|
||||
*/
|
||||
@ApplicationScoped
|
||||
public class SsmEventPublisher {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(SsmEventPublisher.class);
|
||||
private static final String SOURCE = "aws.ssm";
|
||||
private static final String DETAIL_TYPE = "Parameter Store Change";
|
||||
|
||||
private final EventBridgeService eventBridgeService;
|
||||
private final ObjectMapper objectMapper;
|
||||
|
||||
/** A null {@code eventBridgeService} publishes nothing, for SsmService's test constructors. */
|
||||
@Inject
|
||||
public SsmEventPublisher(EventBridgeService eventBridgeService, ObjectMapper objectMapper) {
|
||||
this.eventBridgeService = eventBridgeService;
|
||||
this.objectMapper = objectMapper;
|
||||
}
|
||||
|
||||
/** {@code operation} is Create, Update or Delete. */
|
||||
public void parameterChanged(String operation, Parameter parameter, String region) {
|
||||
publish(parameter.getArn(),
|
||||
detail(operation, parameter.getName(), parameter.getType(), parameter.getDescription()), region);
|
||||
}
|
||||
|
||||
/** {@code fromVersion} is empty when the label was not on any version before. */
|
||||
public void labelChanged(String arn, ParameterHistory labelled, String label, String fromVersion, String region) {
|
||||
ObjectNode detail = detail("LabelParameterVersion", labelled.getName(), labelled.getType(),
|
||||
labelled.getDescription());
|
||||
detail.put("label", label);
|
||||
detail.put("fromVersion", fromVersion);
|
||||
detail.put("toVersion", String.valueOf(labelled.getVersion()));
|
||||
publish(arn, detail, region);
|
||||
}
|
||||
|
||||
/** One event per call, listing every label it removed from {@code unlabelled}. */
|
||||
public void labelsRemoved(String arn, ParameterHistory unlabelled, List<String> labels, String region) {
|
||||
ObjectNode detail = detail("UnlabelParameterVersion", unlabelled.getName(), unlabelled.getType(),
|
||||
unlabelled.getDescription());
|
||||
ArrayNode removed = detail.putArray("labels");
|
||||
labels.forEach(removed::add);
|
||||
detail.put("fromVersion", String.valueOf(unlabelled.getVersion()));
|
||||
detail.put("toVersion", "");
|
||||
publish(arn, detail, region);
|
||||
}
|
||||
|
||||
private ObjectNode detail(String operation, String name, String type, String description) {
|
||||
ObjectNode detail = objectMapper.createObjectNode();
|
||||
detail.put("operation", operation);
|
||||
detail.put("name", name);
|
||||
detail.put("type", type);
|
||||
if (description != null) {
|
||||
detail.put("description", description);
|
||||
}
|
||||
return detail;
|
||||
}
|
||||
|
||||
private void publish(String arn, ObjectNode detail, String region) {
|
||||
if (eventBridgeService == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
eventBridgeService.putEvents(List.of(EventBridgeService.serviceEventEntry(SOURCE, DETAIL_TYPE,
|
||||
objectMapper.writeValueAsString(detail), arn)), region);
|
||||
} catch (Exception e) {
|
||||
LOG.warnv(e, "Failed to publish Parameter Store Change for {0}", arn);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.ssm;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
@@ -91,10 +92,12 @@ public class SsmService implements ResourceProvider {
|
||||
private final RegionResolver regionResolver;
|
||||
private final Ec2ImageCatalog imageCatalog;
|
||||
private final SecretsManagerService secretsManager;
|
||||
private final SsmEventPublisher eventPublisher;
|
||||
|
||||
@Inject
|
||||
public SsmService(StorageFactory storageFactory, EmulatorConfig config, RegionResolver regionResolver,
|
||||
Ec2ImageCatalog imageCatalog, SecretsManagerService secretsManager) {
|
||||
Ec2ImageCatalog imageCatalog, SecretsManagerService secretsManager,
|
||||
SsmEventPublisher eventPublisher) {
|
||||
this(
|
||||
storageFactory.create("ssm", "ssm-parameters.json",
|
||||
new TypeReference<>() {
|
||||
@@ -117,7 +120,8 @@ public class SsmService implements ResourceProvider {
|
||||
config.services().ssm().maxParameterHistory(),
|
||||
regionResolver,
|
||||
imageCatalog,
|
||||
secretsManager
|
||||
secretsManager,
|
||||
eventPublisher
|
||||
);
|
||||
}
|
||||
|
||||
@@ -177,6 +181,20 @@ public class SsmService implements ResourceProvider {
|
||||
StorageBackend<String, SsmAssociation> associationStore,
|
||||
int maxParameterHistory, RegionResolver regionResolver,
|
||||
Ec2ImageCatalog imageCatalog, SecretsManagerService secretsManager) {
|
||||
this(parameterStore, historyStore, documentPermissionStore, documentStore, serviceSettingStore,
|
||||
associationStore, maxParameterHistory, regionResolver, imageCatalog, secretsManager,
|
||||
new SsmEventPublisher(null, new ObjectMapper()));
|
||||
}
|
||||
|
||||
SsmService(StorageBackend<String, Parameter> parameterStore,
|
||||
StorageBackend<String, List<ParameterHistory>> historyStore,
|
||||
StorageBackend<String, List<String>> documentPermissionStore,
|
||||
StorageBackend<String, SsmDocument> documentStore,
|
||||
StorageBackend<String, ServiceSetting> serviceSettingStore,
|
||||
StorageBackend<String, SsmAssociation> associationStore,
|
||||
int maxParameterHistory, RegionResolver regionResolver,
|
||||
Ec2ImageCatalog imageCatalog, SecretsManagerService secretsManager,
|
||||
SsmEventPublisher eventPublisher) {
|
||||
this.parameterStore = parameterStore;
|
||||
this.historyStore = historyStore;
|
||||
this.documentPermissionStore = documentPermissionStore;
|
||||
@@ -187,6 +205,7 @@ public class SsmService implements ResourceProvider {
|
||||
this.regionResolver = regionResolver;
|
||||
this.imageCatalog = imageCatalog;
|
||||
this.secretsManager = secretsManager;
|
||||
this.eventPublisher = eventPublisher;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -255,14 +274,18 @@ public class SsmService implements ResourceProvider {
|
||||
}
|
||||
}
|
||||
|
||||
Parameter stored;
|
||||
// Same monitor as the other synchronized SSM writers: the version read and the write are one step.
|
||||
synchronized (this) {
|
||||
return storeParameter(name, value, type, description, overwrite, tags, keyId, allowedPattern,
|
||||
stored = storeParameter(name, value, type, description, overwrite, tags, keyId, allowedPattern,
|
||||
tier, policies, region);
|
||||
}
|
||||
// A new parameter starts at version 1, an overwrite never does.
|
||||
eventPublisher.parameterChanged(stored.getVersion() == 1 ? "Create" : "Update", stored, region);
|
||||
return stored.getVersion();
|
||||
}
|
||||
|
||||
private long storeParameter(String name, String value, String type, String description,
|
||||
private Parameter storeParameter(String name, String value, String type, String description,
|
||||
boolean overwrite, Map<String, String> tags, String keyId, String allowedPattern,
|
||||
String tier, List<JsonNode> policies, String region) {
|
||||
String storageKey = regionKey(region, name);
|
||||
@@ -311,7 +334,7 @@ public class SsmService implements ResourceProvider {
|
||||
addHistory(storageKey, parameter);
|
||||
|
||||
LOG.infov("Put parameter: {0} in region {1} (version {2})", name, region, version);
|
||||
return version;
|
||||
return parameter;
|
||||
}
|
||||
|
||||
/** AWS's form is {@code parameter/<name>} whether or not the name starts with a slash. */
|
||||
@@ -570,27 +593,35 @@ public class SsmService implements ResourceProvider {
|
||||
return !paramName.substring(normalizedPath.length()).contains("/");
|
||||
}
|
||||
|
||||
public synchronized void deleteParameter(String name, String region) {
|
||||
public void deleteParameter(String name, String region) {
|
||||
String storageKey = regionKey(region, name);
|
||||
if (parameterStore.get(storageKey).isEmpty()) {
|
||||
throw new AwsException("ParameterNotFound",
|
||||
"Parameter " + name + " not found.", 400);
|
||||
Parameter removed;
|
||||
synchronized (this) {
|
||||
removed = parameterStore.get(storageKey).orElseThrow(() ->
|
||||
new AwsException("ParameterNotFound", "Parameter " + name + " not found.", 400));
|
||||
parameterStore.delete(storageKey);
|
||||
historyStore.delete(storageKey);
|
||||
}
|
||||
parameterStore.delete(storageKey);
|
||||
historyStore.delete(storageKey);
|
||||
eventPublisher.parameterChanged("Delete", removed, region);
|
||||
LOG.infov("Deleted parameter: {0}", name);
|
||||
}
|
||||
|
||||
public synchronized List<String> deleteParameters(List<String> names, String region) {
|
||||
public List<String> deleteParameters(List<String> names, String region) {
|
||||
List<String> deleted = new ArrayList<>();
|
||||
for (String name : names) {
|
||||
String storageKey = regionKey(region, name);
|
||||
if (parameterStore.get(storageKey).isPresent()) {
|
||||
parameterStore.delete(storageKey);
|
||||
historyStore.delete(storageKey);
|
||||
deleted.add(name);
|
||||
List<Parameter> removed = new ArrayList<>();
|
||||
synchronized (this) {
|
||||
for (String name : names) {
|
||||
String storageKey = regionKey(region, name);
|
||||
Optional<Parameter> parameter = parameterStore.get(storageKey);
|
||||
if (parameter.isPresent()) {
|
||||
parameterStore.delete(storageKey);
|
||||
historyStore.delete(storageKey);
|
||||
deleted.add(name);
|
||||
removed.add(parameter.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
removed.forEach(parameter -> eventPublisher.parameterChanged("Delete", parameter, region));
|
||||
return deleted;
|
||||
}
|
||||
|
||||
@@ -694,8 +725,18 @@ public class SsmService implements ResourceProvider {
|
||||
|
||||
public record LabelParameterVersionResult(long parameterVersion, List<String> invalidLabels) {}
|
||||
|
||||
public synchronized LabelParameterVersionResult labelParameterVersion(String name, Long parameterVersion,
|
||||
public LabelParameterVersionResult labelParameterVersion(String name, Long parameterVersion,
|
||||
List<String> labels, String region) {
|
||||
List<Runnable> events = new ArrayList<>();
|
||||
LabelParameterVersionResult result = applyLabels(name, parameterVersion, labels, region, events);
|
||||
events.forEach(Runnable::run);
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Collects the events instead of publishing them: EventBridge delivers to targets while it runs. */
|
||||
private synchronized LabelParameterVersionResult applyLabels(String name, Long parameterVersion,
|
||||
List<String> labels, String region,
|
||||
List<Runnable> events) {
|
||||
validateLabelList(labels);
|
||||
|
||||
String storageKey = regionKey(region, name);
|
||||
@@ -744,9 +785,11 @@ public class SsmService implements ResourceProvider {
|
||||
: new ArrayList<>();
|
||||
|
||||
int newLabelCount = targetLabels.size();
|
||||
Map<String, String> fromVersions = new LinkedHashMap<>();
|
||||
for (String validLabel : validLabels) {
|
||||
if (!targetLabels.contains(validLabel)) {
|
||||
newLabelCount++;
|
||||
fromVersions.put(validLabel, "");
|
||||
}
|
||||
}
|
||||
if (newLabelCount > 10) {
|
||||
@@ -756,6 +799,9 @@ public class SsmService implements ResourceProvider {
|
||||
|
||||
for (ParameterHistory h : updatedHistory) {
|
||||
if (h.getVersion() != targetVersion && h.getLabels() != null) {
|
||||
for (String label : h.getLabels()) {
|
||||
fromVersions.computeIfPresent(label, (key, from) -> String.valueOf(h.getVersion()));
|
||||
}
|
||||
List<String> otherLabels = new ArrayList<>(h.getLabels());
|
||||
if (otherLabels.removeAll(validLabels)) {
|
||||
h.setLabels(otherLabels);
|
||||
@@ -771,11 +817,14 @@ public class SsmService implements ResourceProvider {
|
||||
targetCopy.setLabels(targetLabels);
|
||||
|
||||
historyStore.put(storageKey, updatedHistory);
|
||||
ParameterHistory labelled = targetCopy;
|
||||
fromVersions.forEach((label, from) ->
|
||||
events.add(() -> eventPublisher.labelChanged(current.getArn(), labelled, label, from, region)));
|
||||
LOG.infov("Labeled parameter {0} version {1} with labels {2}", name, targetVersion, validLabels);
|
||||
return new LabelParameterVersionResult(targetVersion, invalidLabels);
|
||||
}
|
||||
|
||||
public synchronized LabelParameterVersionResult labelParameterVersion(String name, long parameterVersion,
|
||||
public LabelParameterVersionResult labelParameterVersion(String name, long parameterVersion,
|
||||
List<String> labels, String region) {
|
||||
return labelParameterVersion(name, Long.valueOf(parameterVersion), labels, region);
|
||||
}
|
||||
@@ -789,8 +838,18 @@ public class SsmService implements ResourceProvider {
|
||||
* {@code invalidLabels} the order of the request, and error messages echo the name as sent
|
||||
* although the lookup ignores surrounding whitespace.
|
||||
*/
|
||||
public synchronized UnlabelParameterVersionResult unlabelParameterVersion(String name, long parameterVersion,
|
||||
List<String> labels, String region) {
|
||||
public UnlabelParameterVersionResult unlabelParameterVersion(String name, long parameterVersion,
|
||||
List<String> labels, String region) {
|
||||
List<Runnable> events = new ArrayList<>();
|
||||
UnlabelParameterVersionResult result = removeLabels(name, parameterVersion, labels, region, events);
|
||||
events.forEach(Runnable::run);
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Collects the event instead of publishing it, as {@link #applyLabels} does. */
|
||||
private synchronized UnlabelParameterVersionResult removeLabels(String name, long parameterVersion,
|
||||
List<String> labels, String region,
|
||||
List<Runnable> events) {
|
||||
validateLabelList(labels);
|
||||
String trimmed = name.strip();
|
||||
if (AwsArnUtils.isArn(trimmed)) {
|
||||
@@ -809,9 +868,8 @@ public class SsmService implements ResourceProvider {
|
||||
}
|
||||
|
||||
String storageKey = regionKey(region, trimmed);
|
||||
if (parameterStore.get(storageKey).isEmpty()) {
|
||||
throw new AwsException("ParameterNotFound", "Parameter " + name + " not found.", 400);
|
||||
}
|
||||
Parameter current = parameterStore.get(storageKey).orElseThrow(() ->
|
||||
new AwsException("ParameterNotFound", "Parameter " + name + " not found.", 400));
|
||||
|
||||
List<ParameterHistory> existingHistory = historyStore.get(storageKey).orElse(List.of());
|
||||
List<ParameterHistory> updatedHistory = new ArrayList<>(existingHistory.size());
|
||||
@@ -840,6 +898,8 @@ public class SsmService implements ResourceProvider {
|
||||
targetLabels.removeAll(requested);
|
||||
targetCopy.setLabels(targetLabels);
|
||||
historyStore.put(storageKey, updatedHistory);
|
||||
ParameterHistory unlabelled = targetCopy;
|
||||
events.add(() -> eventPublisher.labelsRemoved(current.getArn(), unlabelled, removedLabels, region));
|
||||
LOG.infov("Removed labels {0} from parameter {1} version {2}", removedLabels, trimmed, parameterVersion);
|
||||
}
|
||||
return new UnlabelParameterVersionResult(removedLabels, invalidLabels);
|
||||
|
||||
+2
-12
@@ -2,7 +2,6 @@ package io.github.hectorvent.floci.services.stepfunctions;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import io.github.hectorvent.floci.core.common.AwsArnUtils;
|
||||
import io.github.hectorvent.floci.core.common.RegionResolver;
|
||||
@@ -12,7 +11,6 @@ import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -56,16 +54,8 @@ public class StepFunctionsEventPublisher {
|
||||
public void emitStatusChange(Execution exec) {
|
||||
String executionArn = exec.getExecutionArn();
|
||||
try {
|
||||
ObjectNode detail = buildDetail(exec);
|
||||
ArrayNode resources = objectMapper.createArrayNode();
|
||||
if (executionArn != null) {
|
||||
resources.add(executionArn);
|
||||
}
|
||||
Map<String, Object> entry = new HashMap<>();
|
||||
entry.put("Source", SOURCE);
|
||||
entry.put("DetailType", DETAIL_TYPE);
|
||||
entry.put("Detail", objectMapper.writeValueAsString(detail));
|
||||
entry.put("Resources", resources);
|
||||
Map<String, Object> entry = EventBridgeService.serviceEventEntry(SOURCE, DETAIL_TYPE,
|
||||
objectMapper.writeValueAsString(buildDetail(exec)), executionArn);
|
||||
EventBridgeService.PutEventsResult result = eventBridgeService.putEvents(List.of(entry),
|
||||
AwsArnUtils.regionOrDefault(executionArn, regionResolver.getDefaultRegion()));
|
||||
if (result != null && result.failedCount() > 0) {
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.http.ContentType;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.http.ContentType;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.apigateway.ApiGatewayService;
|
||||
import io.github.hectorvent.floci.services.apigateway.model.UsagePlan;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.http.ContentType;
|
||||
|
||||
+1
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.CloudFormationSettingsProfile;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.SidecarContainersProfile;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.autoscaling.AutoScalingService;
|
||||
import io.github.hectorvent.floci.services.autoscaling.model.ScalingPolicy;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.config.TlsCertificateManager;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.InjectMock;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ import io.github.hectorvent.floci.services.cloudfront.CloudFrontService;
|
||||
import io.github.hectorvent.floci.services.cloudfront.model.CloudFrontFunction;
|
||||
import io.github.hectorvent.floci.services.cloudfront.model.KeyGroup;
|
||||
import io.github.hectorvent.floci.services.cloudfront.model.PublicKey;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+1
@@ -8,6 +8,7 @@ import io.github.hectorvent.floci.services.cloudfront.model.Distribution;
|
||||
import io.github.hectorvent.floci.services.cloudfront.model.OriginAccessControl;
|
||||
import io.github.hectorvent.floci.services.cloudfront.model.OriginRequestPolicy;
|
||||
import io.github.hectorvent.floci.services.cloudfront.model.ResponseHeadersPolicy;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+1
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.cloudwatch.dashboards.CloudWatchDashboardsService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.RestAssured;
|
||||
import io.restassured.config.EncoderConfig;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.cloudwatch.dashboards.CloudWatchDashboardsService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
import io.restassured.RestAssured;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.RestAssured;
|
||||
import io.restassured.config.EncoderConfig;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.path.json.JsonPath;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.services.dynamodb.DynamoDbService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.QuarkusTestProfile;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.PartitionCleanup;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.services.ec2.Ec2Service;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.elbv2.ElbV2Service;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.path.json.JsonPath;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.EnforcementFixtures;
|
||||
import io.github.hectorvent.floci.testing.IamEnforcementProfile;
|
||||
import io.github.hectorvent.floci.testing.PartitionCleanup;
|
||||
|
||||
+1
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.services.s3.S3Service;
|
||||
import io.github.hectorvent.floci.services.ssm.SsmService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.EnforcementFixtures;
|
||||
import io.github.hectorvent.floci.testing.PartitionCleanup;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.services.iam.IamService;
|
||||
import io.github.hectorvent.floci.services.iam.IamService.InlinePolicyChange;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.PartitionCleanup;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.PartitionCleanup;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.EnforcementFixtures;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.services.ec2.Ec2Service;
|
||||
import io.github.hectorvent.floci.services.ec2.model.Instance;
|
||||
import io.github.hectorvent.floci.services.ec2.model.LaunchTemplateData;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+1
@@ -10,6 +10,7 @@ import io.github.hectorvent.floci.services.cloudwatch.logs.CloudWatchLogsMetricF
|
||||
import io.github.hectorvent.floci.services.cloudwatch.logs.CloudWatchLogsMetricFilterService.MutationOutcome;
|
||||
import io.github.hectorvent.floci.services.cloudwatch.logs.CloudWatchLogsMetricFilterService.MutationResult;
|
||||
import io.github.hectorvent.floci.services.cloudwatch.logs.model.MetricFilter;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.ec2.Ec2Service;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.ec2.Ec2Service;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.s3.S3Service;
|
||||
import io.github.hectorvent.floci.services.ssm.SsmService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import io.github.hectorvent.floci.core.storage.PersistentStorage;
|
||||
import io.github.hectorvent.floci.services.cloudformation.model.Stack;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.PartitionCleanup;
|
||||
import io.github.hectorvent.floci.testing.PersistentStorageProfile;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.services.pipes.PipesService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RdsMockProfile;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RdsMockProfile;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.services.sqs.SqsService;
|
||||
import io.github.hectorvent.floci.services.sqs.model.Message;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.http.ContentType;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.path.xml.XmlPath;
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ import io.github.hectorvent.floci.services.scheduler.model.ScheduleRequest;
|
||||
import io.github.hectorvent.floci.services.sqs.SqsService;
|
||||
import io.github.hectorvent.floci.services.sqs.model.Message;
|
||||
import io.github.hectorvent.floci.services.sqs.model.Queue;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RdsMockProfile;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.path.xml.XmlPath;
|
||||
|
||||
+1
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.ssm.SsmService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.config.EmulatorConfig;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.path.xml.XmlPath;
|
||||
|
||||
+1
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.cloudformation.model.StackResource;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.CloudFormationSettingsProfile;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.path.xml.XmlPath;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.Response;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
+1
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -8,6 +8,7 @@ import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.services.cloudformation.model.Stack;
|
||||
import io.github.hectorvent.floci.services.cloudformation.provisioners.CfnRollback;
|
||||
import io.github.hectorvent.floci.services.cognito.CognitoService;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.mockito.InjectSpy;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.DockerAvailability;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.common.http.TestHTTPResource;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.github.hectorvent.floci.testing.SidecarContainersProfile;
|
||||
import io.quarkus.test.common.http.TestHTTPResource;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.github.hectorvent.floci.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.cloudformation;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.core.common.XmlParser;
|
||||
import io.github.hectorvent.floci.testing.CfnStackWaits;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
Loaded 100 of 108 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user