-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-33073][Connectors/AWS] Implement end-to-end tests for KinesisS… #94
Conversation
3d70220
to
43c35f5
Compare
...2e-tests/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java
Outdated
Show resolved
Hide resolved
...2e-tests/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java
Outdated
Show resolved
Hide resolved
...2e-tests/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java
Outdated
Show resolved
Hide resolved
...2e-tests/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java
Show resolved
Hide resolved
75f03d9
to
e7e7694
Compare
Verified that running AWS end-to-end tests locally all pass
|
e7e7694
to
089c60e
Compare
...e-tests/src/test/java/org/apache/flink/connector/kinesis/testutils/AWSEndToEndTestUtils.java
Show resolved
Hide resolved
...ts/src/test/java/org/apache/flink/connector/kinesis/testutils/AWSKinesisResourceManager.java
Show resolved
Hide resolved
LOGGER.info("Successfully created Kinesis Data Stream with ARN {}.", streamARN); | ||
|
||
LOGGER.info("Waiting until Kinesis Data Stream with ARN {} is ACTIVE.", streamARN); | ||
kinesisWaiter.waitUntilStreamExists( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking this waits for stream to be ACTIVE? It is not too clear from the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep we can see this from the API itself
@AfterEach | ||
void teardown() { | ||
kinesisResourceManager.close(); | ||
AWSGeneralUtil.closeResources(httpClient, kinesisClient); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we run cleanUpStaleKinesisDataStreams();
on @AfterClass
as to speed up the tests? And possibly on @BeforeClass
incase the tests starts failing...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats a good idea. As discussed offline - moving this to a separate "dummy" test class
089c60e
to
490422b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @hlteoh37
…treamsSink
Purpose of the change
Implement end-to-end tests for KinesisStreamsSink.
Verifying this change
This change added tests and can be verified as follows:
Significant changes
(Please check any boxes [x] if the answer is "yes". You can first publish the PR and check them afterwards, for convenience.)
@Public(Evolving)
)