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

Integration test refactors #302

Merged
merged 15 commits into from
Aug 29, 2022
Merged

Integration test refactors #302

merged 15 commits into from
Aug 29, 2022

Conversation

shaspitz
Copy link
Contributor

@shaspitz shaspitz commented Aug 26, 2022

Various refactors to integration tests that'll make future additions easier

//#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments.
bz, err = exec.Command("docker", "exec", s.containerConfig.instanceName, "/bin/bash", "-c", fmt.Sprintf(`echo '%s' > %s`, string(bz), "/temp-proposal.json")).CombinedOutput()
bz, err = exec.Command("docker", "exec", tr.containerConfig.instanceName,
"/bin/bash", "-c", fmt.Sprintf(`echo '%s' > %s`, jsonStr, "/temp-proposal.json")).CombinedOutput()

Check failure

Code scanning / CodeQL

Potentially unsafe quoting

If this [JSON value](1) contains a single quote, it could break out of the enclosing quotes.
@shaspitz shaspitz marked this pull request as ready for review August 26, 2022 21:21
Copy link
Contributor

@jtremback jtremback left a comment

Choose a reason for hiding this comment

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

Conditionally approved with my changes

@jtremback jtremback merged commit b64c8d9 into main Aug 29, 2022
@jtremback jtremback deleted the shawn-integration-test-refactor branch August 29, 2022 19:47
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