-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2663df3
commit 232e4e4
Showing
16 changed files
with
6,588 additions
and
30 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
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
173 changes: 173 additions & 0 deletions
173
example/docker_compose/conf/fakeapi/config/example.dockerized.json
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,173 @@ | ||
{ | ||
"port": 9876, | ||
"host": "0.0.0.0", | ||
"endpoints": [ | ||
{ | ||
"method": "GET", | ||
"path_pattern": "/", | ||
"behaviour": [ | ||
{ | ||
"name": "slower", | ||
"config": { | ||
"max_bytes_per_second": 20, | ||
"flush_bytes": 2 | ||
} | ||
}, | ||
{ | ||
"name": "status_distributor", | ||
"config": { | ||
"code_distribution": [ | ||
{"key": 200, "val": 0.5}, | ||
{"key": 201, "val": 0.3} | ||
], | ||
"seed": 1 | ||
} | ||
}, | ||
{ | ||
"name": "delayer", | ||
"config": { | ||
"delay_millis_distribution": [ | ||
{"key": 0, "val": 0.05}, | ||
{"key": 10, "val": 0.2}, | ||
{"key": 50, "val": 0.0}, | ||
{"key": 100, "val": 0.75} | ||
], | ||
"seed": 1 | ||
} | ||
} | ||
], | ||
"content": { | ||
"source": "directory", | ||
"config": { | ||
"dir": "/etc/reqstatsrv/data" | ||
} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path_pattern": "/drop/", | ||
"behaviour": [ | ||
{ | ||
"name": "connection_closer", | ||
"config": { | ||
"freq": 0.5, | ||
"seed": 3 | ||
} | ||
} | ||
], | ||
"content" : { | ||
"source": "file", | ||
"config": { | ||
"path": "/etc/reqstatsrv/data/bar.json" | ||
} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path_pattern": "/delayed/", | ||
"behaviour": [ | ||
{ | ||
"name": "delayer", | ||
"config": { | ||
"delay_millis_distribution": [ | ||
{"key": 0, "val": 0.0}, | ||
{"key": 10, "val": 0.0}, | ||
{"key": 50, "val": 0.0}, | ||
{"key": 100, "val": 0.25}, | ||
{"key": 200, "val": 0.25}, | ||
{"key": 700, "val": 0.5} | ||
], | ||
"seed": 1 | ||
} | ||
}, | ||
{ | ||
"name": "status_distributor", | ||
"config": { | ||
"code_distribution": [ | ||
{"key": 200, "val": 0.7}, | ||
{"key": 201, "val": 0.3} | ||
], | ||
"seed": 1 | ||
} | ||
} | ||
], | ||
"content": { | ||
"source": "directory", | ||
"config": { | ||
"dir": "/etc/reqstatsrv/data" | ||
} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path_pattern": "/file", | ||
"behaviour": [], | ||
"content": { | ||
"source": "file", | ||
"config": { | ||
"path": "/etc/reqstatsrv/data/bar.json" | ||
} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path_pattern": "/stats", | ||
"behaviour": [ | ||
|
||
], | ||
"content": { | ||
"source": "stats", | ||
"config": {} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path_pattern": "/suslik", | ||
"behaviour": [ | ||
{ | ||
"name": "status_distributor", | ||
"config": { | ||
"code_distribution": [ | ||
{"key": 200, "val": 0.6}, | ||
{"key": 201, "val": 0.2}, | ||
{"key": 202, "val": 0.2} | ||
], | ||
"seed": 1 | ||
} | ||
} | ||
|
||
], | ||
"content": { | ||
"source": "status_content_selector", | ||
"config": { | ||
"default_content": { | ||
"source": "stats", | ||
"config": {} | ||
}, | ||
"status_contents": [ | ||
{ | ||
"from": 201, | ||
"to": 202, | ||
"content": { | ||
"source": "file", | ||
"config": { | ||
"path": "/etc/reqstatsrv/data/201_created.json" | ||
} | ||
} | ||
}, | ||
{ | ||
"from": 202, | ||
"to": 203, | ||
"content": { | ||
"source": "file", | ||
"config": { | ||
"path": "/etc/reqstatsrv/data/202_accepted.json" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
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,4 @@ | ||
{ | ||
"result": 201, | ||
"desc": "something created" | ||
} |
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,3 @@ | ||
{ | ||
"batch_process_id": "A629S99IAKSRtT" | ||
} |
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,5 @@ | ||
{ | ||
"source": "bar.json", | ||
"dummy_string": "something here", | ||
"dummy_number": 42.0 | ||
} |
3 changes: 3 additions & 0 deletions
3
example/docker_compose/conf/fakeapi/data/delayed/something.json
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,3 @@ | ||
{ | ||
"foo": "bar" | ||
} |
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,3 @@ | ||
{ | ||
"foo": "bar" | ||
} |
Oops, something went wrong.