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

Commit f2ec419

Browse files
stishkinstas
and
stas
authored
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

+3-2
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

+3-1
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

+4-2
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

+4-1
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

+4-1
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

+2-1
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

+3-1
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

+3-1
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

+3-1
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

+4-1
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.

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

+3-1
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 a `petstore3` 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+
This sample creates four jobs: Compile, Test, Fuzz and Reaplay.
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. Output of Fuzz run is used for Replay run. Replay run replays all bugs found by 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/schemathesis/running-against-raft/readme.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ created for you.
99
The **run.py** script gives an example of how you can substitute your deployment name using the CLI
1010
so that the job definition can stay generic.
1111

12-
From the CLI directory run the sample with the command:
13-
```python
12+
From the CLI directory to run this sample in you Azure RAFT deployment execute the sample with the command:
13+
```
1414
python run.py
1515
```
16+
17+
To run this sample in your local docker service. You have to have RAFT Azure service deployed, since this is used as a service under test in this sample.
18+
```
19+
python run.py --local
20+
```
21+
1622
or, using the CLI use (assuming a deployment name of `demo`):
1723
```json
1824
python raft.py job create --file samples/zap/running-against-raft/zap.json --substitute "{\"{defaults.deploymentName}\" : \"demo\"}"

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ In this sample, the job description JSON will cause RAFT to execute ZAP against
44
RAFT service itself, defining a common file share called **raft**. This can be helpful
55
when you want to collect results from multiple job runs under a single file share.
66

7-
You can run the sample by calling `python run.py`.
7+
You can run the sample in you RAFT Azure deployment by calling `python run.py`.
8+
9+
You can run the sample in your local docker service by calling `python run.py --local`. But you have to have RAFT Azure service deployed, since it is used as a service under test by the sample.

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ The raft-zap.py script gives an example of how you can substitute your deploymen
1111
so that the job definition can stay generic.
1212

1313
From the CLI directory run the sample with the command:
14-
```python
14+
```
1515
python run.py
1616
```
1717
or, using the CLI use (assuming a deployment name of `demo`):
1818
```json
1919
python raft.py job create --file samples/zap/running-against-raft/zap.json --substitute "{\"{defa
20-
ults.deploymentName}\" : \"demo\"}"
20+
ults.deploymentName}\" : \"demo\"}"
21+
22+
23+
You can also run this in your local docker service by running, but you have to have RAFT Azure service deployed, since it is used as a service under test by the sample
24+
```
25+
python run.py --local
26+
```

0 commit comments

Comments
 (0)