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(toolkit): Add region provider remote test #6425

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jpinkney-aws
Copy link
Contributor

Problem

In the release yesterday we found an issue where fetching remote region data was failing

Solution

Add a new test since its critical to the flow


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jpinkney-aws jpinkney-aws requested a review from a team as a code owner January 24, 2025 14:29

async function load() {
async init(endpointsProvider: {
Copy link
Contributor

@nkomonen-amazon nkomonen-amazon Jan 24, 2025

Choose a reason for hiding this comment

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

Should we switch this to a try/catch at this point, dropping the const load

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just played around with this. let me know what you think

})
})

it('resolves from remote', async function () {
Copy link
Contributor

@nkomonen-amazon nkomonen-amazon Jan 24, 2025

Choose a reason for hiding this comment

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

nice and simple test 🎉

Copy link
Contributor

@justinmk3 justinmk3 left a comment

Choose a reason for hiding this comment

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

LGTM after comments, nice choices!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants