Skip to content

Commit

Permalink
feat: Use httpbin /status endpoint for markers
Browse files Browse the repository at this point in the history
The root URI is not mapped by `httpbin`, so the repsponse will contain
a large amount of HTML for the 404 page, which ends up in the log. We
now use the `/status` endpoint to reduce the data transferred in each
response to a marker request and the amount of data in the log.
  • Loading branch information
theseion committed Sep 8, 2022
1 parent 67881bf commit 75ee050
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,11 @@ func RunStage(runContext *TestRunContext, ftwCheck *check.FTWCheck, testCase tes

func markAndFlush(runContext *TestRunContext, dest *ftwhttp.Destination, stageID string) ([]byte, error) {
rline := &ftwhttp.RequestLine{
Method: "GET",
URI: "/",
Method: "GET",
// Use the `/status` endpoint of `httpbin` (http://httpbin.org), if possible,
// to minimize the amount of data transferred and in the log.
// `httpbin` is used by the CRS test setup.
URI: "/status/200",
Version: "HTTP/1.1",
}

Expand Down

0 comments on commit 75ee050

Please sign in to comment.