mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
feat(firehose): add TagDeliveryStream, UntagDeliveryStream, and ListTagsForDeliveryStream (#1061)
* feat(firehose): add tag, untag, and list tags endpoints to delivery stream * test(lambda): resolve flaky port bind error in RuntimeApiServerTest * test(ec2): isolate Ec2NetworkInterfacePaginationTest by filtering by subnet-id * fix: resolve flaky integration tests and robustify runtime binding & codebuild diagnostics * fix: unregister websocket connection immediately on close to prevent postToConnection race conditions * fix(lambda): fix RuntimeApiServer retry race condition when stopping during retries
This commit is contained in:
1 parent
5606fcd286
commit
aceeeca0af
4 files changed
+184
-2
No files matched your search
+48
-1
@@ -52,6 +52,53 @@ class FirehoseIntegrationTest {
|
||||
|
||||
@Test
|
||||
@Order(3)
|
||||
void tagAndUntagDeliveryStream() {
|
||||
given()
|
||||
.contentType("application/x-amz-json-1.1")
|
||||
.header("X-Amz-Target", "Firehose_20150804.TagDeliveryStream")
|
||||
.body("{ \"DeliveryStreamName\": \"" + STREAM_NAME + "\", \"Tags\": [ { \"Key\": \"env\", \"Value\": \"prod\" }, { \"Key\": \"owner\", \"Value\": \"team-a\" } ] }")
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200);
|
||||
|
||||
given()
|
||||
.contentType("application/x-amz-json-1.1")
|
||||
.header("X-Amz-Target", "Firehose_20150804.ListTagsForDeliveryStream")
|
||||
.body("{ \"DeliveryStreamName\": \"" + STREAM_NAME + "\" }")
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("Tags", hasSize(2))
|
||||
.body("Tags.find { it.Key == 'env' }.Value", equalTo("prod"))
|
||||
.body("Tags.find { it.Key == 'owner' }.Value", equalTo("team-a"))
|
||||
.body("HasMoreTags", equalTo(false));
|
||||
|
||||
given()
|
||||
.contentType("application/x-amz-json-1.1")
|
||||
.header("X-Amz-Target", "Firehose_20150804.UntagDeliveryStream")
|
||||
.body("{ \"DeliveryStreamName\": \"" + STREAM_NAME + "\", \"TagKeys\": [ \"env\" ] }")
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200);
|
||||
|
||||
given()
|
||||
.contentType("application/x-amz-json-1.1")
|
||||
.header("X-Amz-Target", "Firehose_20150804.ListTagsForDeliveryStream")
|
||||
.body("{ \"DeliveryStreamName\": \"" + STREAM_NAME + "\" }")
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("Tags", hasSize(1))
|
||||
.body("Tags[0].Key", equalTo("owner"))
|
||||
.body("Tags[0].Value", equalTo("team-a"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(4)
|
||||
void deleteDeliveryStream() {
|
||||
given()
|
||||
.contentType("application/x-amz-json-1.1")
|
||||
@@ -64,7 +111,7 @@ class FirehoseIntegrationTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(4)
|
||||
@Order(5)
|
||||
void describeDeletedDeliveryStreamReturnsNotFound() {
|
||||
given()
|
||||
.contentType("application/x-amz-json-1.1")
|
||||
|
||||
Reference in new issue
Block a user