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

Fix for: Backticks in array of objects 72324 #81

Closed
wants to merge 11 commits into from

Conversation

lhinderberger
Copy link

See commit description for details

@lhinderberger lhinderberger requested a review from martinrode June 3, 2024 13:46
api_testsuite.go Outdated Show resolved Hide resolved
api_testsuite.go Outdated Show resolved Hide resolved
@lhinderberger lhinderberger requested a review from martinrode June 3, 2024 14:30
martinrode and others added 4 commits June 4, 2024 09:17
Having a manifest with Go template expressions, but where all
expressions only use backticks, would lead to the Go template not being
executed, since such a manifest was also by coincidence a perfectly
valid JSON array that was executed right away.

Fixed by always executing the Go template, regardless of whether the
input already is valid JSON.
Contrary to what we've first assumed, the recursion after template
evaluation is currently required for correctly running the datastore
tests.

But since parallelRepititions was incorrectly assumed to be never zero,
the recursive call to parseAndRunTest would never actually run its
tests.

This partially reverts commit f2c7937.
@lhinderberger lhinderberger force-pushed the backticks-in-array-of-objects-72324 branch from 8221c91 to 056bf86 Compare June 4, 2024 10:23
@lhinderberger lhinderberger marked this pull request as draft June 5, 2024 10:14
@lhinderberger lhinderberger marked this pull request as ready for review June 5, 2024 14:29
@martinrode martinrode closed this Jun 6, 2024
@martinrode martinrode deleted the backticks-in-array-of-objects-72324 branch June 6, 2024 08:38
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