-
Notifications
You must be signed in to change notification settings - Fork 647
chore: move e2e tests from cucumber to vitest #7539
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
base: main
Are you sure you want to change the base?
Conversation
79c8ad9 to
e15aef3
Compare
clients/client-cloudformation/test/cloudformation-features.e2e.spec.ts
Outdated
Show resolved
Hide resolved
clients/client-cloudformation/test/cloudformation-features.e2e.spec.ts
Outdated
Show resolved
Hide resolved
338fa1e to
49939c5
Compare
4439db1 to
9af67c6
Compare
| let region: string; | ||
|
|
||
| beforeAll(async () => { | ||
| const e2eTestResourcesEnv = await getE2eTestResources(); |
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.
the e2e test resources should not be invoked for tests that do not need a bucket, identity pool, or MRAP
the region can be assumed to be us-west-2. Please change this in all new tests.
clients/client-cognito-identity/test/e2e/cognitoidentity-features.e2e.spec.ts
Show resolved
Hide resolved
| expect(binaryValue!.toString()).toBe("1,2,3"); | ||
|
|
||
| // Cleanup | ||
| await client.deleteQueue({ QueueUrl: queueUrl }); |
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.
must be in post test hook
| expect(sendResult.MD5OfMessageBody).toBe("eb61eead90e3b899c6bcbe27ac581660"); | ||
|
|
||
| // Eventually receive "HELLO" from the queue with binary attribute | ||
| const receiveResult = await client.receiveMessage({ |
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.
eventually implies use of a waiter
| // Result should include a message ID | ||
| expect(sendResult.MessageId!.length).toBeGreaterThan(0); | ||
|
|
||
| // Result should have MD5 digest of "eb61eead90e3b899c6bcbe27ac581660" |
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.
remove redundant comments
| createdQueues.push(queueUrl2); | ||
|
|
||
| // List queues should contain the created queues | ||
| const listResult = await client.listQueues({}); |
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.
original test uses "eventually" which implies a waiter
| // Cleanup | ||
| for (const queueUrl of createdQueues) { | ||
| try { | ||
| await client.deleteQueue({ QueueUrl: queueUrl }); |
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.
resource deletion must be in post-test hook
Issue
Internal JS-6402
Description
Removes the dependency on cucumber and converts feature tests to e2e tests.
Testing
CI
Checklist
*.integ.spec.ts).@publictag and enable doc generation on the package?By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.