MEC Robot Test Suite issueshttps://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues2020-06-08T13:12:28Zhttps://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/8Message type wrong in DNS update2020-06-08T13:12:28ZjacobvarghesMessage type wrong in DNS updateBelow test case is to update a DNS entry. But looks like the `Update a DNS Rule` statement is sending the POST mesaage instead of PUT.
```
TC_MEC_SRV_DNS_003_OK
[Documentation]
... Check that the IUT updates a specific DNS rul...Below test case is to update a DNS entry. But looks like the `Update a DNS Rule` statement is sending the POST mesaage instead of PUT.
```
TC_MEC_SRV_DNS_003_OK
[Documentation]
... Check that the IUT updates a specific DNS rule
... when commanded by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update a DNS Rule ${APP_INSTANCE_ID} ${DNS_RULE_ID} DnsRuleUpdate
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is DnsRule
# Check Result Contains ${response['body']['DnsRule']} dnsRuleId ${DNS_RULE_NAME}
# Check Result Contains ${response['body']['DnsRule']} ipAddress ${SOME_IP_ADDRESS}
Update a DNS Rule
[Arguments] ${appInstanceId} ${dnsRuleId} ${content}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
Post ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/dns_rules/${dnsRuleId} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
```https://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/7Response check on DNS testcase for individual query is not proper2020-06-08T13:12:32ZjacobvarghesResponse check on DNS testcase for individual query is not properTest suit: DNS
```
TC_MEC_SRV_DNS_002_OK
[Documentation]
... Check that the IUT responds with the information on a specific DNS rule
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 ...Test suit: DNS
```
TC_MEC_SRV_DNS_002_OK
[Documentation]
... Check that the IUT responds with the information on a specific DNS rule
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.10.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get individual DNS rule ${APP_INSTANCE_ID} ${DNS_RULE_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is DnsRule
Check Result Contains ${response['body']['DnsRule']} dnsRuleId ${DNS_RULE_ID}
```
The testcase is retrieving an individual dns record and thus the body has to be an object just like below.
```
{
"seconds": 0.002054,
"status": 200,
"body": {
"dnsRuleId": "63684d55-cd66-43a5-975b-ea503c5edb00",
"domainName": "www.example.com",
"ipAddressType": "IP_V4",
"ipAddress": "192.0.2.0",
"ttl": 30,
"state": "ACTIVE"
},
"headers": {
"Content-Type": "application/json; charset=UTF-8",
"Server": "SERVICECENTER/0.0.1",
"Vary": "Accept-Encoding, Origin",
"X-Response-Status": "200",
"Date": "Sat, 23 May 2020 05:47:40 GMT",
"Content-Length": "158"
}
}
```
Here I could see two issues in below line
`Check Result Contains ${response['body']['DnsRule']} dnsRuleId ${DNS_RULE_ID} `
1. Accessing ['DnsRule'] from body, which is different from the API specification.
2. "Check Result Contains" consider the body as a list and check for value inside it, which is wrong. The body is just an object and containes a single dns entry.
Please check and update me if i'm wrong in understanding the script.https://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/6Document installation and execution o the tests2020-10-20T10:30:58ZMichele CarignaniDocument installation and execution o the testsIn the README.md file.In the README.md file.Elian KrajaElian Krajahttps://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/5remove html files and set git to ignore them2019-09-27T09:55:41ZMichele Carignaniremove html files and set git to ignore themadd to .gitignore
**/*.html
**/*.xmladd to .gitignore
**/*.html
**/*.xmlElian KrajaElian Krajahttps://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/4Using txt or py variables?2019-11-05T18:27:05ZMichele CarignaniUsing txt or py variables?Please add examples and list pros cons.Please add examples and list pros cons.https://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/3Add CI script2019-09-17T16:21:47ZMichele CarignaniAdd CI scriptAdd a bash script that validates the syntax of all tests with Docker.Add a bash script that validates the syntax of all tests with Docker.Elian KrajaElian Krajahttps://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/2Documentation of Test cases2019-10-31T08:32:39ZMichele CarignaniDocumentation of Test casesDebug why the `...` is not working and replace it in place of `#`.Debug why the `...` is not working and replace it in place of `#`.Elian KrajaElian Krajahttps://forge.etsi.org/rep/mec/gs032p3-robot-test-suite/-/issues/1Review how to check one object in a list of many2019-10-31T08:38:29ZMichele CarignaniReview how to check one object in a list of manyProposed approach:
https://forge.etsi.org/gitlab/mec/gs032p3-robot-test-suite/blob/master/resources/GenericKeywords.robot#L35
Are other approaches possible?Proposed approach:
https://forge.etsi.org/gitlab/mec/gs032p3-robot-test-suite/blob/master/resources/GenericKeywords.robot#L35
Are other approaches possible?Elian KrajaElian Kraja