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

create helpers for using goss as a package #548

Merged
merged 2 commits into from Mar 23, 2020
Merged

create helpers for using goss as a package #548

merged 2 commits into from Mar 23, 2020

Conversation

ripienaar
Copy link
Collaborator

@ripienaar ripienaar commented Feb 18, 2020

Checklist
  • make test-all (UNIX) passes. CI will also test this
  • unit and/or integration tests are included (if applicable)
  • documentation is changed or added (if applicable)

Description of change

This creates a way to make a goss Config programatically with defaults
suitable to use as a package.

This also merges the RuntimeConfig with Config as these had overlapping
uses, simplify some timeout handling and optionally surpress output when
adding resources to a goss file

This stops short of overhauling all std output and instead just focus
on the things package users are likely to want to do - programatically
add resources and validate them.

Additionally a new output format 'structured' is added that has a
matching data type that defines it's output which makes it easier
to use the result sets from goss programatically, this is handy when
one wants to write tooling to process CI output from goss in go

@ripienaar
Copy link
Collaborator Author

ripienaar commented Feb 18, 2020

This is a draft PR - d739600 builds on #546 and finally makes resources add and validation usable as a package

Once #546 is merged I'll polish this up and make it into a full PR.

@ripienaar
Copy link
Collaborator Author

@ripienaar ripienaar mentioned this pull request Feb 18, 2020
This also merges the RuntimeConfig with Config as these had overlapping
uses, simplify some timeout handling and surpress output when adding
resources to a goss file

This stops short of overhauling all std output and instead just focus
on the things package users are likely to want to do - programatically
add resources and validate them.

Additionally a new output format 'structured' is added that has a
matching data type that defines it's output which makes it easier
to use the result sets from goss programatically
@ripienaar ripienaar marked this pull request as ready for review February 26, 2020 06:32
@ripienaar
Copy link
Collaborator Author

@aelsabbahy good to go on this

@ripienaar
Copy link
Collaborator Author

I've been traveling for a week so been off the radar, back now, is there anything else left for me to do here?

@ripienaar
Copy link
Collaborator Author

Appears this PR is now gone out of date due to non attention, am I just expected to keep rebasing and rebasing while you keep merging other PRs and not this one?

With such a large piece of the code base being touched it's worth getting this one in to limit the knock on effect of continuously having to keep updating/rebasing/fixing this one

Copy link
Contributor

@pedroMMM pedroMMM left a comment

Choose a reason for hiding this comment

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

@ripienaar I am very sorry that no one has taken a look at your PR yet! It's shameful that we dropped the ball there.

But I have taken a look a now and everything seems to be perfectly fine it's impressive work. 👍

@aelsabbahy
Copy link
Member

Hello, no rebase is necessary. I've been making sure I don't merge anything that conflicts with this PR as there's a lot of changes here.

Smaller changes I've merged in to cut a release. This will be the first PR merged if there's any conflicting PRs

@ripienaar
Copy link
Collaborator Author

thanks, would be good to get this merged for me as I can then continue to work on the what I need this for based on your master.

@aelsabbahy aelsabbahy merged commit a17ce0f into goss-org:master Mar 23, 2020
@aelsabbahy
Copy link
Member

Thanks for this. Awesome set of changes so far.

BenjaminHerbert pushed a commit to BenjaminHerbert/goss that referenced this pull request May 28, 2020
This also merges the RuntimeConfig with Config as these had overlapping
uses, simplify some timeout handling and surpress output when adding
resources to a goss file

This stops short of overhauling all std output and instead just focus
on the things package users are likely to want to do - programatically
add resources and validate them.

Additionally a new output format 'structured' is added that has a
matching data type that defines it's output which makes it easier
to use the result sets from goss programatically

Co-authored-by: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com>
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