goss icon indicating copy to clipboard operation
goss copied to clipboard

Native support for REST tests (feature request)

Open sshipway opened this issue 5 years ago • 3 comments

Can we add REST tests as a native check type? Not sure how this should be done, but maybe with parameters has to go in and a list of tests of outputfield-compare-value tests. This would remove the need for complex wget|jq command definitions to perform this sort of API tests.

sshipway avatar Sep 11 '19 20:09 sshipway

Feel free to create a new focused feature request ticket bases on our chat here: https://github.com/aelsabbahy/goss/issues/375#issuecomment-564853916

For jq type stuff, I was thinking of eventually adding a jmespath matcher. The one challenge currently is io.readers are handled differently than everything else in Goss and that would need to be addressed prior to jmespath matcher being useful.

aelsabbahy avatar Dec 12 '19 05:12 aelsabbahy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 09 '20 19:07 stale[bot]

Since this is the best named story, I'll make this the official story to track this.

As per my comment here: https://github.com/aelsabbahy/goss/issues/375#issuecomment-564853916

Adding the method, request-body, and url seems like a useful enhancement.

This is approved for anyone that would like to work on this. If there are further changes, we can discuss it further here.

aelsabbahy avatar Jul 09 '20 20:07 aelsabbahy

I think this might was closed by #647

Please let me know if it's not.

aelsabbahy avatar Sep 02 '22 18:09 aelsabbahy