-
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.
feat: Allow continuous fuzzing when running in template fuzzing
- Loading branch information
Showing
31 changed files
with
247 additions
and
82 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
17 changes: 17 additions & 0 deletions
17
src/main/java/com/endava/cats/fuzzer/special/mutators/api/BodyMutator.java
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 @@ | ||
package com.endava.cats.fuzzer.special.mutators.api; | ||
|
||
import com.endava.cats.model.CatsHeader; | ||
|
||
import java.util.Collection; | ||
|
||
/** | ||
* Marker interface for mutators that mutate the request body. | ||
*/ | ||
public interface BodyMutator extends Mutator { | ||
|
||
|
||
@Override | ||
default Collection<CatsHeader> mutate(Collection<CatsHeader> headers) { | ||
return headers; | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/endava/cats/fuzzer/special/mutators/api/HeadersMutator.java
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,13 @@ | ||
package com.endava.cats.fuzzer.special.mutators.api; | ||
|
||
/** | ||
* Marker interface for mutators that mutate the request headers. | ||
*/ | ||
public interface HeadersMutator extends Mutator { | ||
|
||
@Override | ||
default String mutate(String inputJson, String selectedField) { | ||
return inputJson; | ||
} | ||
|
||
} |
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
4 changes: 2 additions & 2 deletions
4
src/main/java/com/endava/cats/fuzzer/special/mutators/impl/NullStringMutator.java
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
Oops, something went wrong.