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

chore: add tests for connecting with a profile from an aws credentials file MONGOSH-1609 #1733

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Nov 9, 2023

No description provided.

@@ -220,6 +221,7 @@ async function main() {
});
} catch (e: any) {
console.error(`${e?.name}: ${e?.message}`);
console.error('full error: ' + util.inspect(e, { depth: null }));
Copy link
Contributor

Choose a reason for hiding this comment

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

Leftover? (Fwiw, I do this a ton too…)

Copy link
Contributor Author

@lerouxb lerouxb Nov 9, 2023

Choose a reason for hiding this comment

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

yeah. There's nothing more there anyway ;) Hoped there would at least be an original error or something..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would be nice if we could access the most recent error from the test somehow.

const awsConfigPath = path.join(
os.tmpdir(),
`aws-config-${new Date().getTime()}-${Math.random()}`
);
Copy link
Contributor

Choose a reason for hiding this comment

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

useTmpdir() from ./repl-helpers.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't know about that. copy/pasted this from another test.

@lerouxb
Copy link
Contributor Author

lerouxb commented Nov 28, 2023

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