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
47725eb1
Commit
47725eb1
authored
1 year ago
by
piscione
Browse files
Options
Downloads
Patches
Plain Diff
Review of DNS TCs of MEC011v3.2.1
parent
e9e1ead8
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Merge of TT027 branch into master
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MEC011/SRV/DNS/PlatDnsRules.robot
+9
-14
9 additions, 14 deletions
MEC011/SRV/DNS/PlatDnsRules.robot
MEC011/SRV/DNS/environment/variables_sandbox.txt
+46
-0
46 additions, 0 deletions
MEC011/SRV/DNS/environment/variables_sandbox.txt
with
55 additions
and
14 deletions
MEC011/SRV/DNS/PlatDnsRules.robot
+
9
−
14
View file @
47725eb1
...
...
@@ -4,18 +4,15 @@ Documentation
...
A test suite for validating DNS rules (DNS) operations.
Resource
../../../GenericKeywords.robot
Resource
environment/variables.txt
#Resource environment/variables.txt
Resource
environment/variables_sandbox.txt
Library
REST
${SCHEMA}
://
${HOST}
:
${PORT}
ssl_verify=false
Library
OperatingSystem
Default Tags
TC_MEC_SRV_DNS
*** Variables ***
*** Test Cases ***
TC_MEC_MEC011_SRV_DNS_001_OK
[
Documentation
]
...
Check that the IUT responds with a list of active DNS rules
...
...
@@ -40,7 +37,7 @@ TC_MEC_MEC011_SRV_DNS_001_NF
...
"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
[
Teardown
]
Delete MEC application instance profile
${NOT_EXISTENT_APP_INSTANCE_ID}
[
Setup
]
Delete MEC application instance profile
${NOT_EXISTENT_APP_INSTANCE_ID}
Get list of active DNS rules
${NOT_EXISTENT_APP_INSTANCE_ID}
Check HTTP Response Status Code Is
404
...
...
@@ -57,7 +54,6 @@ TC_MEC_MEC011_SRV_DNS_002_OK
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.1"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
[
Setup
]
Create a new MEC application instance profile
AppInfo
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
...
...
@@ -74,7 +70,6 @@ TC_MEC_MEC011_SRV_DNS_002_NF
...
"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
...
...
@@ -86,7 +81,7 @@ TC_MEC_MEC011_SRV_DNS_003_OK
...
...
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
"
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.
2
"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
[
Setup
]
Create a new MEC application instance profile
AppInfo
Update a DNS Rule
${APP_INSTANCE_ID}
${DNS_RULE_ID}
DnsRuleUpdate
...
...
@@ -104,7 +99,7 @@ TC_MEC_MEC011_SRV_DNS_003_BR
...
...
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
"
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.
2
"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
[
Setup
]
Create a new MEC application instance profile
AppInfo
...
...
@@ -120,7 +115,7 @@ TC_MEC_MEC011_SRV_DNS_003_NF
...
...
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
"
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.
2
"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
[
Setup
]
Create a new MEC application instance profile
AppInfo
...
...
@@ -137,7 +132,7 @@ TC_MEC_MEC011_SRV_DNS_003_PF
...
...
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
"
...
"ETSI GS MEC 011 3.2.1, clause 7.2.10.3.
2
"
[
Tags
]
PIC_MEC_PLAT
PIC_SERVICES
[
Setup
]
Create a new MEC application instance profile
AppInfo
Update a DNS Rule with invalid etag
${APP_INSTANCE_ID}
${DNS_RULE_ID}
DnsRuleUpdate
...
...
@@ -200,7 +195,7 @@ Update a DNS Rule
Set Headers
{"If-Match": "
${VALID_ETAG}
"}
${file}
=
Catenate
SEPARATOR=
jsons/
${content}
.json
${body}
=
Get File
${file}
P
UT
${apiRoot}
/
${apiName}
/
${apiVersion}
/applications/
${appInstanceId}
/dns_rules/
${dnsRuleId}
${body}
P
ut
${apiRoot}
/
${apiName}
/
${apiVersion}
/applications/
${appInstanceId}
/dns_rules/
${dnsRuleId}
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -213,6 +208,6 @@ Update a DNS Rule with invalid etag
Set Headers
{"If-Match": "
${INVALID_ETAG}
"}
${file}
=
Catenate
SEPARATOR=
jsons/
${content}
.json
${body}
=
Get File
${file}
P
UT
${apiRoot}
/
${apiName}
/
${apiVersion}
/applications/
${appInstanceId}
/dns_rules/
${dnsRuleId}
${body}
P
ut
${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_sandbox.txt
0 → 100644
+
46
−
0
View file @
47725eb1
*** Variables ***
#### Env variable for the ETSI MEC Sandbox
${SCHEMA} https
${HOST} try-mec.etsi.org
${PORT} 443
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${apiRoot} /<id_provided_by_sandbox>/mep1
${apiName} mec_app_support
${apiVersion} v1
${APP_INSTANCE_ID} f1e4d448-e277-496b-bf63-98391cfd20fb
# Specific variables
${HOST_REG_APP} 127.0.0.1
${PORT_REG_APP} 8082
${apiRoot_REG_APP}
${apiName_REG_APP} mec_app_support
${apiVersion_REG_APP} v2
${response} {}
#${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
${VALID_ETAG} abcdef
${SOME_IP_ADDRESS} 146.241.7.3
# ${SUBSCRIPTION_TYPE} MobilityProcedureSubscription
# ${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
# ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID
# ${NON_EXISTENT_APP_MOBILITY_SERVICE_ID} NON_EXISTENT_APP_MOBILITY_SERVICE_ID
# # Notifications variables
# ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar
# ${callback_port} 9091
# ${callback_uri} http://172.22.1.7:${callback_port}
# ${callback_endpoint} /amsi/subscriptions
# ${callback_endpoint_error} /subs_404
# ${total_polling_time} 2 min
# ${polling_interval} 10 sec
\ No newline at end of file
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