You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ These utility scripts are available in the `scripts` directory:
137
137
*`add-gateway.sh`: Creates a new Tyk Gateway container, using the same configuration as the base Tyk deployment Gateway
138
138
*`common.sh`: Contains functions useful for bootstrap scripts
139
139
*`export.sh`: Uses the Dashboard API to export API and Policy definitions, overwriting data used to bootstrap the base Tyk deployment
140
-
*`test.sh`: Uses a Newman container to run the Postman collection tests for only the **Tyk** deployment
140
+
*`test.sh`: Uses a Newman container to run the Postman collection tests for all deployment that are currently bootstrapped
141
141
*`test-all.sh`: As `test.sh`, but runs for all deployments
142
142
*`update-hosts.sh`: Adds the necessary hosts to the `/etc/hosts` file
143
143
@@ -299,6 +299,14 @@ Once the tests are finished, the `delete` function can be called to remove the k
299
299
tyk.dashboardApi.tools.apiKey.delete(pm);
300
300
```
301
301
302
+
## Test Automation
303
+
304
+
Deployments are included in test scripts (`scripts/test.sh` and `scripts/test-all.sh`) if all of the following criteria are met:
305
+
306
+
- A Postman collection is found in the deployment
307
+
- The collection does *not* contain a variable `test-runner-ignore` with the value `true`
308
+
- The collection contains tests
309
+
302
310
## Testing Responses
303
311
304
312
The Tyk Demo Postman collection contains many requests, each of which demonstrate a particular piece of functionality. Testing the responses generated by these requests provides validation that the desired result was achieved.
log_message "Sending a test request to provide Kibana with data, as Tyk bootstrap requests will not have been picked up by the Pump from this deployment"
0 commit comments