X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2FREADME.md;h=4cde5323255c72ab2cfcd33c8f6d1c40cc46761e;hb=5343c3097bd7ae1c1c8d5f0409803c0c60034805;hp=24dfc9dc37dd8ee0ef887c25c830db2d825d3748;hpb=803d48989d7824309602393763142320cdbbc0d2;p=nonrtric.git diff --git a/test/common/README.md b/test/common/README.md index 24dfc9dc..4cde5323 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -742,15 +742,17 @@ Test of GET '/policy_status' or V2 GET '/policies/{policy_id}/status'. | arg list | |--| -| ` (STD [])|(OSC )` | +| ` (STD|STD2 |EMPTY [|EMPTY])|(OSC )` | | parameter | description | | --------- | ----------- | | `` | Expected http response code | | `` | Id of the policy | | `STD` | Indicator of status of Standarized A1 | +| `STD2` | Indicator of status of Standarized A1 version 2 | | `` | Enforcement status | | `` | Optional reason | +| `EMPTY` | Indicator of empty string status or reason | | `OSC` | Indicator of status of Non-Standarized OSC A1 | | `` | Instance status | | `` | Deleted status, true or false | @@ -890,6 +892,30 @@ Test of PUT '/services/keepalive' or V2 PUT '/v2/services/{service_id}/keepalive | `` | Expected http response code | | `` | Service name | +## Function: api_put_configuration() ## +Test of PUT '/v2/configuration' + +| arg list | +|--| +| ` | + +| parameter | description | +| --------- | ----------- | +| `` | Expected http response code | +| `` | Path json config file | + +## Function: api_get_configuration() ## +Test of GET '/v2/configuration' + +| arg list | +|--| +| []` | + +| parameter | description | +| --------- | ----------- | +| `` | Expected http response code | +| `` | Path json config file to compare the retrieved config with | + # Description of functions in ricsimulator_api_functions.sh # The functions below only use the admin interface of the simulator, no usage of the A1 interface. @@ -1115,6 +1141,22 @@ Checks the status of a policy # Description of functions in ecs_api_function.sh # +## Function: ecs_equal ## +Tests if a variable value in the ECS is equal to a target value. +Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to 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 'a1-interface' repo for more details. + +| arg list | +|--| +| ` [ ]` | + +| parameter | description | +| --------- | ----------- | +| `` | Variable name in ecs | +| `` | Target value for the variable | +| `` | Max time to wait for the variable to reach the target value | + ## Function: ecs_api_a1_get_job_ids() ## Test of GET '/A1-EI​/v1​/eitypes​/{eiTypeId}​/eijobs' and optional check of the array of returned job ids. To test the response code only, provide the response code parameter as well as a type id and an owner id. @@ -1329,14 +1371,13 @@ To test, provide all parameters. The list of type/schema pair may be empty. | arg list | |--| -| ` (EMPTY | [ ]+)` | +| ` (EMPTY | [ ]+)` | | parameter | description | | --------- | ----------- | | `` | Expected http response code | | `` | Id of the producer | -| `` | Callback for create job | -| `` | Callback for delete job | +| `` | Callback for create/delete job | | `` | Callback for producer supervision | | `` | Id of the EI type | | `` | Path to a schema file | @@ -1456,6 +1497,20 @@ Check a job in the prodstub towards the list of provided parameters. | `` | Target url for data delivery | | `` | Path to a job template file | +## Function: prodstub_delete_jobdata() ## +Delete the job parameters, job data, for a job. + +| arg list | +|--| +| ` ` | + +| parameter | description | +| --------- | ----------- | +| `` | Expected http response code | +| `` | Id of the producer | +| `` | Id of the job | + + ## Function: prodstub_equal ## Tests if a variable value in the prodstub is equal to a target value. Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.