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

feat(bundle_test.go): add yaml marshal test for bundle #92

Merged
merged 1 commit into from Aug 12, 2019

Conversation

vdice
Copy link
Member

@vdice vdice commented Aug 7, 2019

Adds yaml tags to the Location struct for third-party consumers representing these structs in yaml. See also #90 for precedence.

Even though this covers the extent of our needs in Porter as of writing, I'd be willing to add yaml tags to all of the structs, as there may be other uses in the future. What do we think?

Edit: #95 covers adding yaml tags to all structs; therefore this PR now just represents some added tests

Note that the test amendments are largely just extracting the exampleCred and exampleBundle vars to the top-level such that multiple tests can make use of them. Also added an additional Path field to the "port" parameter Destination field, for verification in the added yaml test.

@vdice vdice force-pushed the feat/location-yaml-tags branch 2 times, most recently from 8b0cad3 to 80d75a9 Compare August 9, 2019 16:21
@vdice vdice changed the title feat(bundle.go): add yaml tags to Location struct feat(bundle_test.go): add yaml marshal test for bundle Aug 9, 2019
Copy link
Member

@jeremyrickard jeremyrickard left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@glyn glyn left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

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

LGTM

@radu-matei radu-matei merged commit de80204 into cnabio:master Aug 12, 2019
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

5 participants