Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MEC Robot Test Suite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MEC - Multi-access Edge Computing
MEC Robot Test Suite
Commits
c02ba824
Commit
c02ba824
authored
1 year ago
by
piscione
Browse files
Options
Downloads
Patches
Plain Diff
TTF027: Updated DNS TCs for MEC011v3.2.1
parent
cf27f859
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Merge of TT027 branch into master
Pipeline
#15479
canceled
9 months ago
Stage: external
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MEC011/SRV/DNS/PlatDnsRules.robot
+57
-29
57 additions, 29 deletions
MEC011/SRV/DNS/PlatDnsRules.robot
MEC011/SRV/DNS/environment/variables.txt
+4
-2
4 additions, 2 deletions
MEC011/SRV/DNS/environment/variables.txt
with
61 additions
and
31 deletions
MEC011/SRV/DNS/PlatDnsRules.robot
+
57
−
29
View file @
c02ba824
...
...
@@ -21,23 +21,37 @@ TP_MEC_MEC011_SRV_DNS_001_OK
...
Check that the IUT responds with a list of active DNS rules
...
when queried by a MEC Application
...
...
Reference
ETSI GS MEC 011
V2
.2.1, clause
7
.2.
9.3.1
...
OpenAPI
https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
...
Reference
"
ETSI GS MEC 011
3
.2.1, clause
5
.2.
8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.9.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
Get list of active DNS rules
${APP_INSTANCE_ID}
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
DnsRuleList
TP_MEC_MEC011_SRV_DNS_001_NF
[
Documentation
]
...
Check that the IUT responds with a list of active DNS rules
...
when queried by a MEC Application
...
...
Reference
"ETSI GS MEC 011 3.2.1, clause 5.2.8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.9.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
Get list of active DNS rules
${NOT_EXISTENT_APP_INSTANCE_ID}
Check HTTP Response Status Code Is
404
TP_MEC_MEC011_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
.2.1, clause
7
.2.
10.3.1
...
OpenAPI
https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
...
Reference
"
ETSI GS MEC 011
3
.2.1, clause
5
.2.
8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
Get individual DNS rule
${APP_INSTANCE_ID}
${DNS_RULE_ID}
Check HTTP Response Status Code Is
200
...
...
@@ -45,13 +59,15 @@ TP_MEC_MEC011_SRV_DNS_002_OK
Check Response Contains
${response['body']}
dnsRuleId
${DNS_RULE_ID}
TP_MEC_MEC011_SRV_DNS_002_NF
[
Documentation
]
...
Check that the IUT responds with an error when
...
a request for an unknown URI is sent by a MEC Application
...
...
Reference
ETSI GS MEC 011 V2.2.1, clause 7.2.10.3.1
...
Reference
"ETSI GS MEC 011 3.2.1, clause 5.2.8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
Get individual DNS rule
${APP_INSTANCE_ID}
${NON_ESISTENT_DNS_RULE_ID}
Check HTTP Response Status Code Is
404
...
...
@@ -59,16 +75,17 @@ TP_MEC_MEC011_SRV_DNS_002_NF
TP_MEC_MEC011_SRV_DNS_003_OK
[
Documentation
]
...
Check that the IUT
updates
a specific DNS rule
...
when
command
ed by a MEC Application
...
Check that the IUT
responds with the information on
a specific DNS rule
...
when
queri
ed by a MEC Application
...
...
Reference
ETSI GS MEC 011
V2
.2.1, clause
7
.2.
10.3.2
...
OpenAPI
https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
...
Reference
"
ETSI GS MEC 011
3
.2.1, clause
5
.2.
8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.1"
[
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 Response Contains
${response['body']}
dnsRuleId
${DNS_RULE_ID}
Check Response Contains
${response['body']}
ipAddress
${SOME_IP_ADDRESS}
...
...
@@ -77,8 +94,9 @@ TP_MEC_MEC011_SRV_DNS_003_BR
...
Check that the IUT responds with an error when
...
a request with incorrect parameters is sent by a MEC Application
...
...
Reference
ETSI GS MEC 011 V2.2.1, clause 7.2.10.3.2
...
OpenAPI
https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
...
Reference "ETSI GS MEC 011 3.2.1, clause 5.2.8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
Update a DNS Rule
${APP_INSTANCE_ID}
${DNS_RULE_ID}
DnsRuleUpdateError
...
...
@@ -90,8 +108,9 @@ TP_MEC_MEC011_SRV_DNS_003_NF
...
Check that the IUT responds with an error when
...
a request for an unknown URI is sent by a MEC Application
...
...
Reference
ETSI GS MEC 011 V2.2.1, clause 7.2.10.3.2
...
OpenAPI
https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
...
Reference "ETSI GS MEC 011 3.2.1, clause 5.2.8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
Update a DNS Rule
${APP_INSTANCE_ID}
${NON_ESISTENT_DNS_RULE_ID}
DnsRuleUpdate
...
...
@@ -99,17 +118,17 @@ TP_MEC_MEC011_SRV_DNS_003_NF
#
TP_MEC_MEC011_SRV_DNS_003_PF
#
[Documentation]
#
... Check that the IUT responds with an error when
#
... a request sent by a MEC Application doesn't comply with a required condition
#
...
#
... Reference
ETSI GS MEC 011
V2
.2.1, clause
7
.2.
10.3.2
#
...
OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
#
#
[Tags] PIC_MEC_PLAT PIC_SERVICES
#
Update a DNS Rule with invalid etag ${APP_INSTANCE_ID} ${DNS_RULE_ID} DnsRuleUpdate
#
Check HTTP Response Status Code Is 412
TP_MEC_MEC011_SRV_DNS_003_PF
[
Documentation
]
...
Check that the IUT responds with an error when
...
a request sent by a MEC Application doesn't comply with a required condition
...
...
Reference
"
ETSI GS MEC 011
3
.2.1, clause
5
.2.
8",
...
"ETSI GS MEC 011 3.2.1, clause 7.1.2.3",
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
Update a DNS Rule with invalid etag
${APP_INSTANCE_ID}
${DNS_RULE_ID}
DnsRuleUpdate
Check HTTP Response Status Code Is
412
...
...
@@ -138,6 +157,7 @@ Update a DNS Rule
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"If-Match": "
${VALID_ETAG}
"}
${file}
=
Catenate
SEPARATOR=
jsons/
${content}
.json
${body}
=
Get File
${file}
PUT
${apiRoot}
/
${apiName}
/
${apiVersion}
/applications/
${appInstanceId}
/dns_rules/
${dnsRuleId}
${body}
...
...
@@ -147,4 +167,12 @@ Update a DNS Rule
Update a DNS Rule with invalid etag
[
Arguments
]
${appInstanceId}
${dnsRuleId}
${content}
Set Headers
{"If-Match": "
${INVALID_ETAG}
"}
Update a DNS Rule
${appInstanceId}
${dnsRuleId}
${content}
\ No newline at end of file
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"If-Match": "
${INVALID_ETAG}
"}
${file}
=
Catenate
SEPARATOR=
jsons/
${content}
.json
${body}
=
Get File
${file}
PUT
${apiRoot}
/
${apiName}
/
${apiVersion}
/applications/
${appInstanceId}
/dns_rules/
${dnsRuleId}
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
MEC011/SRV/DNS/environment/variables.txt
+
4
−
2
View file @
c02ba824
...
...
@@ -7,13 +7,15 @@ ${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${apiRoot}
${apiName} mec_app_support
${apiVersion} v
1
${apiVersion} v
2
# Specific variables
${APP_INSTANCE_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${NOT_EXISTENT_APP_INSTANCE_ID} NOT_EXISTENT_APP_INSTANCE_ID
${DNS_RULE_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${NON_ESISTENT_DNS_RULE_ID} NON_ESISTENT_DNS_RULE_ID
${INVALID_ETAG} INVALID_ETAG
${INVALID_ETAG} INVALID_ETAG
${VALID_ETAG} abcdef
${SOME_IP_ADDRESS} 146.241.7.3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment