X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2FREADME.md;h=e179f30e6ebb9ec19bb80eea43d439ac6cfc7818;hb=542d2dbfd8df1fcb011fea3d69d539c5c5fe3667;hp=5f806d69e267bdfb4b74b2740cf39f0db9700aa4;hpb=e60d04ec982c4ccb833226624ff5c3e3f311097a;p=nonrtric.git diff --git a/test/common/README.md b/test/common/README.md index 5f806d69..e179f30e 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -197,6 +197,9 @@ The script can be started with these arguments | `--override ` | Override setting from the file supplied by --env-file | | `--pre-clean` | Clean kube resouces when running docker and vice versa | | `--gen-stats` | Collect container/pod runtime statistics | +| `--delete-namespaces` | Delete kubernetes namespaces before starting tests - but only those created by the test scripts. Kube mode only. Ignored if running with prestarted apps. | +| `--delete-containers` | Delete docker containers before starting tests - but only those created by the test scripts. Docker mode only. | +| `--endpoint-stats` | Collect http endpoint statistics | | `help` | Print this info along with the test script description and the list of app short names supported | ## Function: setup_testenvironment ## @@ -402,10 +405,27 @@ With the timeout, the test waits up to the timeout seconds before setting pass o See the 'cr' dir for more details. | arg list | |--| -| ` [ ]` | +| ` [ ]` | | parameter | description | | --------- | ----------- | +| `` | Variable index to CR | +| `` | Variable name in the CR | +| `` | Target value for the variable | +| `` | Max time to wait for the variable to reach the target value | + +## Function: cr_greater_or_equal ## +Tests if a variable value in the Callback Receiver (CR) simulator is equal to or greater than a target value. +Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to or greater than the target or not. +With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not. +See the 'cr' dir for more details. +| arg list | +|--| +| ` [ ]` | + +| parameter | description | +| --------- | ----------- | +| `` | Variable index to CR | | `` | Variable name in the CR | | `` | Target value for the variable | | `` | Max time to wait for the variable to reach the target value | @@ -419,11 +439,12 @@ See the 'a1-interface' repo for more details. | arg list | |--| -| ` [ ]` | +| ` [ ]` | | parameter | description | | --------- | ----------- | +| `` | Variable index to CR | | `` | Variable name in the CR | | `` | Target substring for the variable | | `` | Max time to wait for the variable to reach the target value | @@ -434,10 +455,11 @@ Reads the value of a variable in the CR simulator. The value is intended to be p See the 'mrstub' dir for more details. | arg list | |--| -| `` | +| ` ` | | parameter | description | | --------- | ----------- | +| `` | Variable index to CR | | `` | Variable name in the CR | ## Function: cr_delay_callback ## @@ -460,11 +482,12 @@ Check the contents of all ric events received for a callback id. | arg list | |--| -| ` [ EMPTY \| ( )+ ]` | +| ` [ EMPTY \| ( )+ ]` | | parameter | description | | --------- | ----------- | | `` | Expected http response code | +| `` | Variable index for CR | | `` | Id of the callback destination | | `EMPTY` | Indicator for an empty list | | `` | Id of the ric | @@ -475,11 +498,12 @@ Check the contents of all current status events for one id from ICS | arg list | |--| -| ` [ EMPTY \| ( )+ ]` | +| ` [ EMPTY \| ( )+ ]` | | parameter | description | | --------- | ----------- | | `` | Expected http response code | +| `` | Variable index for CR | | `` | Id of the callback destination | | `EMPTY` | Indicator for an empty list | | `` | Status string | @@ -490,11 +514,12 @@ Check the contents of all current subscription events for one id from ICS | arg list | |--| -| ` [ EMPTY | ( )+ ]` | +| ` [ EMPTY | ( )+ ]` | | parameter | description | | --------- | ----------- | | `` | Expected http response code | +| `` | Variable index for CR | | `` | Id of the callback destination | | `EMPTY` | Indicator for an empty list | | `` | Id of the data type | @@ -507,7 +532,11 @@ Reset the callback receiver | arg list | |--| -| - | +| `` | + +| parameter | description | +| --------- | ----------- | +| `` | Variable index for CR | ## Function: cr_api_check_all_genric_json_events ##