To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorCommand-line interface
Installation: npm install -g gavel
- Background
-
- Given
-
you record expected raw HTTP messages:
curl -s --trace - http://httpbin.org/ip | curl-trace-parser > expected
- And
-
you record real raw HTTP messages:
curl -s --trace - http://httpbin.org/ip | curl-trace-parser > real
- Scenarios
-
- Read and validate real raw HTTP message from STDIN
-
- When
-
you validate the message using the following Gavel command:
cat real | gavel expected
- Then
- exit status is 0
- Exit status for invalid message
-
- When
-
a header is missing in real messages:
cat real | grep -v 'Access-Control-Allow-Origin' > real_without_cors
- And
-
you validate the message using the following Gavel command:
cat real_without_cors | curl-trace-parser | gavel expected
- Then
- exit status is 1
Last published about 3 years ago by honzajavorek.