-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation with latest fuzzers and arguments
- Loading branch information
Showing
6 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
hide_table_of_contents: true | ||
--- | ||
|
||
# Custom HTTP methods | ||
|
||
| Item | Description | | ||
|:------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| **Full Fuzzer Name** | CustomHttpMethodsFuzzer | | ||
| **Log Key** | **CHM** | | ||
| **Description** | This fuzzer will send happy path requests for custom HTTP methods not specific to REST APIs such as: `diff`, `verify`, `publish`, etc. The expectation is that APIs will reject the request. | | ||
| **Enabled by default?** | Yes | | ||
| **Expected result** | `405` | | ||
| **Fuzzing logic** | Iteratively **sends** a happy path request for each path and the following HTTP methods: `DIFF, VERIFY, PUBLISH, UNPUBLISH, BATCH, VIEW, PURGE, DEBUG, SUBSCRIBE, UNSUBSCRIBE, MERGE, INDEX` | | ||
| **Conditions when this fuzzer will be skipped** | None | | ||
| **HTTP methods that will be skipped** | All REST HTTP methods | | ||
| **Reporting** | Reports `error` if: *1.* response code is `404`; *2.* response code is documented, but not expected; *3.* any unexpected exception. <br/><br/> Reports `warn` if: *1.* response code is expected and documented, but not matches response schema; *2.* response code is expected, but not documented; *3.* response code is `501`. <br/><br/> Reports `success` if: *1.* response code is expected, documented and matches response schema. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
sidebar_position: 18 | ||
description: Mutators | ||
--- | ||
|
||
# CATS Response Codes | ||
|
||
In order to preserve consistency, CATS has some custom HTTP response codes it uses mainly to signal communication issues. | ||
They are all in the `9XX` range. The current defined ones are as follows: | ||
|
||
- `952` - the server might close the connection earlier than expected; part of the response might be sent, but not all | ||
- `953` - connection is refused; typically might indicate that the service is not available or there is a typo in the server name | ||
- `954` - read timeout; typically when reading the response takes longer that the current set timeout; you might want to increase the `--readTimeout` argument | ||
- `955` - write timeout; typically when writing the request takes longer that the current set timeout; you might want to increase the `--writeTimeout` argument | ||
- `956` - connection timeout; typically when establishing a connection takes longer that the current set timeout; you might want to increase the `--connectionTimeout` argument | ||
- `957` - protocol communication exception; typically when the service might write some malformed data into the response; might indicate an issue with the service | ||
- `999` - when something unexpected happened which is not part of the above errors | ||
|
||
If the entire communication is successful i.e. request was fully sent and response was fully consumed the HTTP response code will be used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 17 | ||
sidebar_position: 18 | ||
description: Mutators | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters