Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit f2ec419

Browse files
stishkinstas
andauthored
Update documentation to match v4 (#201)
Co-authored-by: stas <[email protected]>
1 parent eddc3cc commit f2ec419

File tree

17 files changed

+274
-133
lines changed

17 files changed

+274
-133
lines changed

cli/samples/dredd/petstore/readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
This sample runs [dredd](https://github.com/apiaryio/dredd) on the `petstore` - the basic Open API sample app. `Dredd` is deployed alongside `petstore` service docker container.
44

5-
You can run the sample by executing `raft.py job create --file dredd.json --poll 10`
5+
You can run the sample in your RAFT Azure deployment by executing `raft.py job create --file dredd.json --poll 10`.
6+
You can run the sample in your local docker by executing `raft_local.py job create --file dredd.json --network host`.
67

7-
When the job reaches the `Created` state it will print a link to Azure storage file share that will contain reports produced by `dredd` and logs from `petstore` service.
8+
When the job reaches the `Created` state it will print a link to Azure storage file share that will contain reports produced by `dredd` and logs from `petstore` service.

cli/samples/dredd/raft/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This sample runs [dredd](https://github.com/apiaryio/dredd) on the your deployment of the `raft` service.
44

5-
You can run the sample by executing `python run.py`. The python script extracts your raft endpoint definition from `defaults.json`, patches the `dredd.json` job configuration file with the `raft` service endpoint and executes the job. Since any deployment of the `raft` service requires authentication when calling it's APIs - job configuration file passes `MSAL` as the authentication method. Check the secrets of the keyvault deployed as part of the `raft` service for definition of the service principal that is used by `dredd` to authenticate against raft.
5+
You can run the sample using your local docker service using `python run.py --local` command.
6+
7+
You can run the sample in your RAFT Azure dpeloyment by executing `python run.py`. The python script extracts your raft endpoint definition from `defaults.json`, patches the `dredd.json` job configuration file with the `raft` service endpoint and executes the job. Since any deployment of the `raft` service requires authentication when calling it's APIs - job configuration file passes `MSAL` as the authentication method. Check the secrets of the keyvault deployed as part of the `raft` service for definition of the service principal that is used by `dredd` to authenticate against raft.
68

79
When the job reaches the `Created` state it will print a link to Azure storage file share that will contain reports produced by `dredd`.

cli/samples/multiple-tools/readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#### multiple-tools
22

3-
This sample runs all tools supported by `raft`.
3+
This sample runs all tools supported by `raft`. It runs some of the tools against your Azure RAFT deployment.
44

5-
You can run the sample by executing `python run.py`.
5+
You can run the sample in your local docker service by executing `python run.py --local`, but you have to have RAFT Azure deployment available, since it is going to be used as a service under test.
6+
7+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
68

79
Python script extracts your raft endpoint definition from `defaults.json`, patches `compile.yaml` job configuration file with the `raft` service endpoint and executes the compile job. It also runs `dredd` on `https://petstore.swagger.io` endpoint. Since any deployment of the `raft` service requires authentication when calling it's APIs - `fuzz.json` job configuration file passes `MSAL` as authentication method to `ZAP` and `RESTler` tasks. Check secrets of the keyvault deployed as part of the `raft` service for definition of the service principal that is used by `ZAP` and `RESTler` to authenticate against raft.
810

cli/samples/restler/no-authentication-common-file-share/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ file share.
88

99
The **rootFileshare** is a great way to organize related jobs together.
1010

11-
You can run the sample by executing `python run.py`. This sample creates three jobs: Compile, Fuzz, Replay. The script pipes output of Compile job into Fuzz by mounting a output file-share from Compile step as an input read-only file-share to Fuzz step. Then Fuzz step output file-share is mounted are read-only file-share to Replay step.
11+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
12+
You can run the sample in your local docker service by executing `python run.py --local`.
13+
14+
This sample creates three jobs: Compile, Fuzz, Replay. The script pipes output of Compile job into Fuzz by mounting a output file-share from Compile step as an input read-only file-share to Fuzz step. Then Fuzz step output file-share is mounted are read-only file-share to Replay step.
1215

1316
Each step will print Results URL to the console - this is a URL that you can paste in a web browser to access Azure file share produced by the job run. For Compile step the results file-share will contain RESTler compile step output. For Fuzz step the results file-share contains all RESTler output plus all bugs found by the job. For Replay step file-share contains logs after reproducing all the bugs found by Fuzz step.
1417

cli/samples/restler/no-authentication/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ In the **fuzz.json** file notice that there are two tasks defined. These tasks r
1313
task has a duration defined which means the task will run no longer than this duration. The `test-fuzz-lean` task,
1414
or any RESTler `test` task, should not define a duration.
1515

16-
You can run the sample by executing `python run.py`. This sample creates three jobs: Compile, Fuzz, Replay. The script pipes output of Compile job into Fuzz by mounting a output file-share from Compile step as an input read-only file-share to Fuzz step. Then Fuzz step output file-share is mounted are read-only file-share to Replay step.
16+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
17+
You can run the sample in your local docker service by executing `python run.py --local`.
18+
19+
This sample creates three jobs: Compile, Fuzz, Replay. The script pipes output of Compile job into Fuzz by mounting a output file-share from Compile step as an input read-only file-share to Fuzz step. Then Fuzz step output file-share is mounted are read-only file-share to Replay step.
1720

1821
Each step will print Results URL to the console - this is a URL that you can paste in a web browser to access Azure file share produced by the job run. For Compile step the results file-share will contain RESTler compile step output. For Fuzz step the results file-share contains all RESTler output plus all bugs found by the job. For Replay step file-share contains logs after reproducing all the bugs found by Fuzz step.
1922

cli/samples/restler/running-60-tasks/readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ allows for up to 60 containers to run. In this sample the python script spawns p
1010

1111
This sample shows you how simple it is to create multiple tasks configured on the fly.
1212

13-
You can run the sample by executing `python run.py`.
13+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
14+
You can run the sample in your local docker service by executing `python run.py --local`.

cli/samples/restler/running-against-raft-common-file-share-yaml/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
This sample runs [RESTler](https://github.com/microsoft/restler-fuzzer) on your RAFT deployment. All configurations are defined as yaml files.
44

5-
You can run the sample by executing `python run.py`. This sample creates three jobs: Compile, Test and Fuzz.
5+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
6+
You can run the sample in your local docker service by executing `python run.py --local`. You still have to have Azure RAFT service deployed, since this is service under test.
7+
This sample creates three jobs: Compile, Test and Fuzz.
68
The script pipes output of Compile job into Test and then into Fuzz jobs by mounting a output file-share from Compile step as an input read-only file-share to Fuzz step.
79

810
Each step will print Results URL to the console - this is a URL that you can paste in a web browser to access Azure file share produced by the job run. For Compile step the results file-share will contain RESTler compile step output. For Fuzz step the results file-share contains all RESTler output plus all bugs found by the job. For Replay step file-share contains logs after reproducing all the bugs found by Fuzz step.

cli/samples/restler/running-against-raft-common-file-share/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
This sample runs [RESTler](https://github.com/microsoft/restler-fuzzer) on your RAFT deployment.
44

5-
You can run the sample by executing `python run.py`. This sample creates three jobs: **Compile**, **Test** and **Fuzz**.
5+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
6+
You can run the sample in your local docker service by executing `python run.py --local`. You still have to have Azure RAFT service deployed, since this is service under test.
7+
This sample creates three jobs: **Compile**, **Test** and **Fuzz**.
68
The script pipes output of **Compile** job into **Test** and then into **Fuzz** jobs by mounting a output file-share from **Compile** step as an input read-only file-share to **Fuzz** step.
79

810
Each step will print Results URL to the console - this is a URL that you can paste in a web browser to access Azure file share produced by the job run. For **Compile** step the results file-share will contain RESTler compile step output. For **Fuzz** step the results file-share contains all RESTler output plus all bugs found by the job. For **Replay** step file-share contains logs after reproducing all the bugs found by **Fuzz** step.

cli/samples/restler/running-against-raft/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ RAFT service itself using authentication.
88
You will notice in the **compile.json** job definition values in the `customerPayload` dictionary. This
99
dictionary is given to RESTler and it's values are used as fuzzing values in the REST calls.
1010

11-
You can run the sample by executing `python run.py`. This sample creates three jobs: Compile, Test and Fuzz.
11+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
12+
You can run the sample in your local docker service by executing `python run.py --local`. You still have to have Azure RAFT service deployed, since this is service under test.
13+
This sample creates three jobs: Compile, Test and Fuzz.
1214
The script pipes output of Compile job into Test and then into Fuzz jobs by mounting a output file-share from Compile step as an input read-only file-share to Fuzz step.
1315

1416
Each step will print Results URL to the console - this is a URL that you can paste in a web browser to access Azure file share produced by the job run. For Compile step the results file-share will contain RESTler compile step output. For Fuzz step the results file-share contains all RESTler output plus all bugs found by the job. For Replay step file-share contains logs after reproducing all the bugs found by Fuzz step.

cli/samples/restler/self-contained/swagger-petstore/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
This sample runs [RESTler](https://github.com/microsoft/restler-fuzzer) on a `petstore` docker container deployed alongside RESTler container.
44

5-
You can run the sample by executing `python run.py`. This sample creates four jobs: Compile, Test, Fuzz and Reaplay.
5+
You can run the sample in your Azure RAFT deployment by executing `python run.py`.
6+
You can run the sample in your local docker service by executing `python run.py --local`.
7+
8+
This sample creates four jobs: Compile, Test, Fuzz and Reaplay.
69
The script pipes output of Compile job into Test and then into Fuzz jobs by mounting a output file-share from Compile step as an input read-only file-share to Fuzz step. Output of Fuzz run is used for Replay run. Replay run replays all bugs found by Fuzz step.
710

811
Each step will print Results URL to the console - this is a URL that you can paste in a web browser to access Azure file share produced by the job run. For Compile step the results file-share will contain RESTler compile step output. For Fuzz step the results file-share contains all RESTler output plus all bugs found by the job. For Replay step file-share contains logs after reproducing all the bugs found by Fuzz step.

0 commit comments

Comments
 (0)