PASS src/MetadataService.e2e.spec.ts
MetadataService E2E Tests
✓ should fetch metadata token successfully (6 ms)
✓ should fetch metadata successfully with token (4 ms)
✓ should fetch metadata successfully (without token -- disableFetchToken set to true) (2 ms)
✓ should handle TimeoutError by falling back to IMDSv1 (3 ms)
✓ should handle specific error codes by falling back to IMDSv1 (6 ms)
✓ should timeout as expected when a request exceeds the specified duration (4 ms)
Test Suites: 1 passed, 1 total
Tests: 6 passed, 6 total
Snapshots: 0 total
Time: 3.358 s, estimated 4 s
Ran all test suites.
Done in 4.34s.
Checklist
[x] If you wrote E2E tests, are they resilient to concurrent I/O?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
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.
Issue
6042
Description
set the timeout for requests to ec2-mds.
Testing
E2E tests for the package pass.
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.