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

bugfix for failing test commands + new tests to cover this #300

Merged
merged 2 commits into from Nov 8, 2022

Conversation

joshfried-aws
Copy link
Contributor

Issue #, if available:
Fixed an issue causing test templates to fail + added 4 new tests to cover the test command

Description of changes:
Changed 2 fields on the TestSpec struct in commands/validate.rs

name: Option<serde_json::Value> -> Option (this doesnt need to be a Value, this will always be a string)
input: serde_json::Value -> serde_yaml::Value. Newer versions of serde_yaml broke this compatibility, previously we could go from serde_json::Value -> serde_yaml::Value, and vice versa. Now we are only able to safely go from serde_yaml::Value -> serde_json::Value. Hence the switch


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Copy link
Contributor

@razcloud razcloud left a comment

Choose a reason for hiding this comment

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

Thank you for getting the additional tests in.

guard/tests/utils.rs Outdated Show resolved Hide resolved
@joshfried-aws joshfried-aws merged commit 5b57516 into aws-cloudformation:main Nov 8, 2022
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.

None yet

3 participants