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: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ This application relies on a configuration structure stored on the configured ta
23
23
| durationLimit | number. threshold, in milliseconds, over which a response time will trigger a failed availability test. to not be confused with `HTTP_CLIENT_TIMEOUT` env variable | yes |
24
24
| tags | json stringifyied. dictionary of tags to be added to the tracked metrics | yes |
25
25
| headers | json stringifyied. dictionary of headers to be sent in the http request | no |
26
-
| bodyCompareStrategy | strategy to be used when compating received response body to `expectedBoddy`. Possible values: `contains`, `containsKeys`, `listOfTypes`, `typeOf`| no |
26
+
| bodyCompareStrategy | strategy to be used when compating received response body to `expectedBoddy`. Possible values listed in the table below *Detail on compareStrategy*| no |
27
27
| expectedBody | json stringifyied. expected body type/content. used in conjunction with `bodyCompareStrategy`| no |
28
28
29
29
Note on the `type`: any value is accepted, it will be traced in the application insight availability panel as "runLocation".
| contains | checks if all the fields defined in the expected body are present in the actual body, and if their value are equal (recursively). On object arrays, checks if the received array has exactly the same element of the expected, using this `contains` on each element for comparison. On primitive arrays, checks if all the expected elements are included n the received, using `Array.includes()` for comparison | objects |
40
-
| containsKeys | checks if all the fields defined in the expected body are present in the actual body, and if their value are of the expected type (recursively). Values associable to object keys: `bool``string``number``array`, `object`. You can also define the array content type, using `["number"]`| objects |
41
-
| listOfTypes | checks if the response is a list containing the types defined in the `body` field. Uses the `containsKeys` logic to check each element of the list | array |
42
-
| typeOf | checks if the response type is as expected. supports all types returned by javascript `typeof`| any |
| contains | checks if all the fields defined in the expected body are present in the actual body, and if their value are equal (recursively). On object arrays, checks if the received array has exactly the same element of the expected, using this `contains` on each element for comparison. On primitive arrays, checks if all the expected elements are included n the received, using `Array.includes()` for comparison | objects |
40
+
| containsKeys | checks if all the fields defined in the expected body are present in the actual body, and if their value are of the expected type (recursively). Values associable to object keys: `bool``string``number``array`, `object`. You can also define the array content type, using `["number"]`| objects |
41
+
| listOfTypes | checks if the response is a list containing the types defined in the `body` field. Uses the `containsKeys` logic to check each element of the list | array |
42
+
| typeOf | checks if the response type is as expected. supports all types returned by javascript `typeof`| any |
43
+
| xmlContains | like contains; parses the reponse xml as json and then compares it to the expected | any |
44
+
| xmlContainsKeys | like containsKeys; but parses the reponse xml as json and then compares it to the expected | any |
0 commit comments