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

Use regular expressions for testdiff replacements #2151

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Jan 15, 2025

Changes

Replacement was split between the type ReplacementContext and the ReplaceOutput function. The latter also ran a couple of regular expressions. This change consolidates them such that it is up to the caller to compose the set of replacements to use.

This change is required to accommodate UUID replacement in #2146.

integration/bundle/init_default_python_test.go Outdated Show resolved Hide resolved
@pietern pietern temporarily deployed to test-trigger-is January 15, 2025 10:43 — with GitHub Actions Inactive
@pietern pietern enabled auto-merge January 15, 2025 10:44
@pietern
Copy link
Contributor Author

pietern commented Jan 15, 2025

Integration test failure is unrelated.

@pietern pietern disabled auto-merge January 15, 2025 11:15
@pietern pietern merged commit 626045a into main Jan 15, 2025
8 of 9 checks passed
@pietern pietern deleted the testdiff-regexp branch January 15, 2025 11:15
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.

2 participants