Skip to content

Ignore environment variables in tests for existing recordings #2309

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

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

jsoriano
Copy link
Member

When creating new recordings for testing, tests that already have recordings fail if the host doesn't match. This happens when recording from environments that don't use the usual local values, as for example in the test case added in #2307. This can even interfere with any other environment variable set by elastic-package stack shellinit.

With this change environment variables are only used to initialize the client when creating new recording files.

@jsoriano jsoriano requested a review from a team December 30, 2024 17:56
@jsoriano jsoriano self-assigned this Dec 30, 2024
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @jsoriano

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

👍

@jsoriano jsoriano merged commit aa7eecf into elastic:main Jan 7, 2025
3 checks passed
@jsoriano jsoriano deleted the record-only-if-not-exists branch January 7, 2025 10:48
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