Skip to content
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

test(client-ec2): convert cucumber tests to vitest for ec2 #6625

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Nov 5, 2024

Issue

n/a

Description

Converts the cucumber tests for ec2 into Vitest and places them in the ec2 middleware package (the tests mainly cover what is in the middleware package, not the client itself).

Benefits:

  • test is now in typescript (caught an old typo)
  • cucumber tests run much faster without the EC2 test taking up 3 minutes.

Testing

Ran the tests in the PR.

Checklist

  • If you wrote E2E tests, are they resilient to concurrent I/O?

@kuhe kuhe requested a review from a team as a code owner November 5, 2024 17:02
// await waitUntilSnapshotCompleted(
// { client: dstEc2, maxWaitTime: 20 },
// {
// SnapshotId: copySnapshot.SnapshotId,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this waiter call was wrong, which is why it didn't work. Revealed by TypeScript.

await waitUntilSnapshotCompleted(
{ client: srcEc2, maxWaitTime: 300 },
{
SnapshotId: createSnapshot.SnapshotId,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this waiter also had the same typo, but for whatever reason passed. Must be a false positive, with SnapshotIds[] considered empty and passing.

@kuhe kuhe merged commit 6ee85c5 into aws:main Nov 5, 2024
4 checks passed
@kuhe kuhe deleted the test/ec2 branch November 5, 2024 17:18
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants