Skip to content

Instantly share code, notes, and snippets.

@gfarfanb
Last active July 3, 2020 22:58
Show Gist options
  • Save gfarfanb/fc33b868bb597c71c272d9b7f2815df7 to your computer and use it in GitHub Desktop.
Save gfarfanb/fc33b868bb597c71c272d9b7f2815df7 to your computer and use it in GitHub Desktop.
Gist for shTTP samples.

shTTP Samples

Gist for allow the execution of shTTP samples.

Executed commands for integration test:

#  Setting credential
./gist_comments --cred sample \
        --part -u "$1" \
        --part -p "$2"
#  Executing samples
./gist_comments flow_comment

# Flow as individual commands:
#     ./gist_comments post_comment
#     ./gist_comments get_comment
#     ./gist_comments patch_comment
#     ./gist_comments get_comment
#     ./gist_comments delete_comment --auth-basic sample
#     ./gist_comments only_def

If the integration test fails a comment like the following will be present:

Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment