Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
fd44ec14
Commit
fd44ec14
authored
Feb 18, 2021
by
Elian Kraja
Browse files
Fix issue
#155
parent
02d14ee1
Changes
25
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFIndicator-API/Subscriptions.robot
View file @
fd44ec14
...
...
@@ -254,7 +254,7 @@ Check Postcondition VNF Indicator Subscription Is Set
Check
HTTP
Response
Body
Subscriptions
Match
the
requested
Attribute-Based
Filter
Log
Check
Response
includes
VNF
Indicators
according
to
filter
@{words}
=
Split
String
${POS_FILTER}
,
${SEP
E
RATOR}
@{words}
=
Split
String
${POS_FILTER}
${SEP
A
RATOR}
Should
Be
Equal
As
Strings
${response['body'][0]['callbackUri']}
@{words}[1]
Create
Sessions
...
...
SOL002/VNFIndicator-API/VNFIndicators.robot
View file @
fd44ec14
...
...
@@ -296,9 +296,9 @@ Check Postcondition VNF Indicators Exist
Check HTTP Response Body vnfIndicators Matches the requested attribute-based filter
Log
Check Response includes VNF Indicators according to filter
@{attr}
=
Split String
${POS_FILTER}
,
${VAR_SEP
E
RATOR}
@{var_name}
=
Split String
@{attr}
[0]
,
${SEP
E
RATOR}
@{var_id}
=
Split String
@{attr}
[1]
,
${SEP
E
RATOR}
@{attr}
=
Split String
${POS_FILTER}
${VAR_SEP
A
RATOR}
@{var_name}
=
Split String
@{attr}
[0]
${SEP
A
RATOR}
@{var_id}
=
Split String
@{attr}
[1]
${SEP
A
RATOR}
Should Be True
"
${response['body'][0]['name']}
"=="
@{var_name}
[1]" and "
${response['body'][0]['vnfInstanceId']}
"=="
@{var_id}
[1]"
Check LINK in Header
...
...
SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot
View file @
fd44ec14
...
...
@@ -227,7 +227,7 @@ Check HTTP Response Body Includes Requested VNF Instance ID
Check HTTP Response Body Matches Attribute-Based Filter
Log
Check Response includes VNF Indicators according to filter
@{words}
=
Split String
${POS_FIELDS}
,
${SEP
E
RATOR}
@{words}
=
Split String
${POS_FIELDS}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['name']}
@{words}
[1]
Check Postcondition Indicators for VNF instance Exist
...
...
SOL002/VNFIndicator-API/environment/subscriptions.txt
View file @
fd44ec14
...
...
@@ -7,4 +7,4 @@ ${NEG_FILTER} callback=http://127.0.0.1/subscribe
${response}= httpresponse
${total_polling_time} 2 min
${polling_interval} 10 sec
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
SOL002/VNFIndicator-API/environment/vnfIndicatorinVnfInstance.txt
View file @
fd44ec14
...
...
@@ -4,4 +4,4 @@ ${erroneousVnfInstanceId} erroneousVnfInstanceId
${POS_FIELDS} name=vnfIndicator
${NEG_FIELDS} wrongName=any_value
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
SOL002/VNFIndicator-API/environment/vnfIndicators.txt
View file @
fd44ec14
...
...
@@ -3,6 +3,6 @@ ${POS_FIELDS} name=vnfIndicator&vnfInstanceId=80b0deba-c398-445b-bef0-ac0fe7
${NEG_FIELDS} wrongName=wrongValue
${response} some_response_object
${vnfIndicators} =
${SEP
E
RATOR} =
${VAR_SEP
E
RATOR} &
${SEP
A
RATOR} =
${VAR_SEP
A
RATOR} &
${POS_FILTER} =
\ No newline at end of file
SOL002/VNFPerformanceManagement-API/PMJobs.robot
View file @
fd44ec14
...
...
@@ -352,7 +352,7 @@ Check HTTP Response Body Matches all_fields selector
Check HTTP Response Body Matches filter
Log
Checking that attribute-based filter is matched
@{words}
=
Split String
${POS_FILTER}
,
${SEP
E
RATOR}
@{words}
=
Split String
${POS_FILTER}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['objectInstanceIds']}
@{words}
[1]
Check HTTP Response Body Does Not Contain reports
...
...
SOL002/VNFPerformanceManagement-API/Thresholds.robot
View file @
fd44ec14
...
...
@@ -222,7 +222,7 @@ Check Postcondition Threshold Exists
Check HTTP Response Body Thresholds match the requested attribute-based filter
Log
Checking that attribute-based filter is matched
@{words}
=
Split String
${FILTER_OK}
,
${SEP
E
RATOR}
@{words}
=
Split String
${FILTER_OK}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['objectInstanceId']}
@{words}
[1]
Check HTTP Response Status Code Is
...
...
SOL002/VNFPerformanceManagement-API/environment/pmJobs.txt
View file @
fd44ec14
...
...
@@ -3,4 +3,4 @@ ${POS_FILTER} objectInstanceIds=1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${NEG_FILTER} criteriaPmJob=erroneousAttributeName
${fields} criteria,reports
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
SOL002/VNFPerformanceManagement-API/environment/thresholds.txt
View file @
fd44ec14
...
...
@@ -2,4 +2,4 @@
${FILTER_OK} objectInstanceId=1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${FILTER_KO} criterias=erroneousFilter
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
fd44ec14
...
...
@@ -334,9 +334,9 @@ Check Postcondition VNF Indicators Exist
Check HTTP Response Body vnfIndicators Matches the requested attribute-based filter
Log
Check Response includes VNF Indicators according to filter
@{attr}
=
Split String
${POS_FIELDS}
,
${VAR_SEP
E
RATOR}
@{var_name}
=
Split String
@{attr}
[0]
,
${SEP
E
RATOR}
@{var_id}
=
Split String
@{attr}
[1]
,
${SEP
E
RATOR}
@{attr}
=
Split String
${POS_FIELDS}
${VAR_SEP
A
RATOR}
@{var_name}
=
Split String
@{attr}
[0]
${SEP
A
RATOR}
@{var_id}
=
Split String
@{attr}
[1]
${SEP
A
RATOR}
Should Be True
"
${response['body'][0]['name']}
"=="
@{var_name}
[1]" and "
${response['body'][0]['vnfInstanceId']}
"=="
@{var_id}
[1]"
Get all indicators for a VNF instance
...
...
SOL003/VNFIndicator-API/environment/vnfIndicators.txt
View file @
fd44ec14
*** Variables ***
${POS_FIELDS} name=vnfIndicator&vnfInstanceId=80b0deba-c398-445b-bef0-ac0fe733e3d0
${NEG_FIELDS} wrongName=wrongValue
${SEPERATOR} =
${VAR_SEPERATOR} &
\ No newline at end of file
${VAR_SEPARATOR} &
${SEPARATOR} =
\ No newline at end of file
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
fd44ec14
...
...
@@ -55,9 +55,9 @@ GET VNF Packages with attribute-based filter
Check HTTP Response Body VnfPkgsInfo Matches the requested Attribute-Based Filter
Log
Checking that attribute-based filter is matched
@{attr}
=
Split String
${POS_FILTER}
,
${VAR_SEP
E
RATOR}
@{var_id}
=
Split String
@{attr}
[0]
,
${SEP
E
RATOR}
@{var_provider}
=
Split String
@{attr}
[1]
,
${SEP
E
RATOR}
@{attr}
=
Split String
${POS_FILTER}
${VAR_SEP
A
RATOR}
@{var_id}
=
Split String
@{attr}
[0]
${SEP
A
RATOR}
@{var_provider}
=
Split String
@{attr}
[1]
${SEP
A
RATOR}
Should Be True
"
${response['body'][0]['vnfdId']}
"=="
@{var_id}
[1]" and "
${response['body'][0]['vnfProvider']}
"=="
@{var_provider}
[1]"
GET VNF Packages with invalid attribute-based filter
...
...
@@ -664,7 +664,7 @@ Check HTTP Response Body Is Empty
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log
Check Response includes VNF Package Management according to filter
@{words}
=
Split String
${filter_ok}
,
${SEP
E
RATOR}
@{words}
=
Split String
${filter_ok}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['callbackUri']}
@{words}
[1]
Check HTTP Response Body PkgmSubscription Attributes Values Match the Issued Subscription
...
...
SOL003/VNFPackageManagement-API/environment/vnfPackages.txt
View file @
fd44ec14
...
...
@@ -3,5 +3,5 @@ ${POS_FILTER} vnfdId=41fdd38a-3d4c-465c-83e0-f80e014425f8 ,vnfProvider=NXW
${NEG_FILTER} nfvId=41fdd38a-3d4c-465c-83e0-f80e014425f8 # Negative case, using wrong name of field
${fields} softwareImages,additionalArtifacts
${response} httpresponse
${SEPERATOR} =
${VAR_SEPERATOR} &
\ No newline at end of file
${SEPARATOR} =
${VAR_SEPARATOR} &
\ No newline at end of file
SOL003/VNFPerformanceManagement-API/PMJobs.robot
View file @
fd44ec14
...
...
@@ -351,7 +351,7 @@ Check HTTP Response Body PmJobs Matches the requested all_fields selector
Check HTTP Response Body PmJobs Matches the requested Attribute-Based Filter
Log
Checking that attribute-based filter is matched
@{words}
=
Split String
${POS_FILTER}
,
${SEP
E
RATOR}
@{words}
=
Split String
${POS_FILTER}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['objectInstanceIds']}
@{words}
[1]
Check HTTP Response Body Does Not Contain reports
...
...
SOL003/VNFPerformanceManagement-API/environment/pmJobs.txt
View file @
fd44ec14
...
...
@@ -3,4 +3,4 @@ ${POS_FILTER} objectInstanceIds=1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${NEG_FILTER} criteriaPmJob=erroneousAttributeName
${fields} criteria,objectInstanceIds
${response} httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
SOL005/NSDManagement-API/NSDManagementKeywords.robot
View file @
fd44ec14
...
...
@@ -34,7 +34,7 @@ GET Network Service Descriptors Information with attribute-based filter
Check HTTP Response Body NsdInfos Matches the requested attribute-based filter
Log
Checking that attribute-based filter is matched
@{words}
=
Split String
${NSD_NAME}
,
${SEP
E
RATOR}
@{words}
=
Split String
${NSD_NAME}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['nsdName']}
@{words}
[1]
GET Network Service Descriptors Information with invalid attribute-based filter
...
...
@@ -509,7 +509,7 @@ GET PNF Descriptors Information with attribute-based filter
Check HTTP Response Body PnfdInfos Matches the requested attribute-based filter
Log
Checking that attribute-based filter is matched
@{words}
=
Split String
${PNFD_NAME}
,
${SEP
E
RATOR}
@{words}
=
Split String
${PNFD_NAME}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['pnfdName']}
@{words}
[1]
GET PNF Descriptors Information with invalid attribute-based filter
...
...
@@ -918,7 +918,7 @@ Check HTTP Response Body Is Empty
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log
Check Response includes NSD Management Management according to filter
@{words}
=
Split String
${filter_ok}
,
${SEP
E
RATOR}
@{words}
=
Split String
${filter_ok}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['callbackUri']}
@{words}
[1]
Check HTTP Response Body NsdmSubscription Attributes Values Match the Issued Subscription
...
...
SOL005/NSDManagement-API/environment/nsDescriptors.txt
View file @
fd44ec14
...
...
@@ -31,4 +31,4 @@ ${length} 1024
${createdNsdInfoId} f27200b1-1d8b-48c2-9d98-a993b8ab117f
${NSD_NAME} nsdName=onBoardedNSD
${PNFD_NAME} pnfdName=onBoardedPNFD
${SEP
E
RATOR} =
${SEP
A
RATOR} =
SOL005/NSDManagement-API/environment/subscriptions.txt
View file @
fd44ec14
*** Variables ***
${filter_ok} callbackUri=http://172.22.1.7:9091/nsd/subscriptions
${filter_ko} nfvId=f9f130e4-05eb-4082-a676-4c97d13a883d # Not existant filter attribute-based
${SEPERATOR} =
\ No newline at end of file
SOL005/NSPerformanceManagement-API/NSPerformanceManagementKeywords.robot
View file @
fd44ec14
...
...
@@ -423,7 +423,7 @@ Check Postcondition Threshold Exists
Check HTTP Response Body Thresholds match the requested attribute-based filter
Log
Checking that attribute-based filter is matched
@{words}
=
Split String
${FILTER_OK_Threshold}
,
${SEP
E
RATOR}
@{words}
=
Split String
${FILTER_OK_Threshold}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['objectInstanceId']}
@{words}
[1]
...
...
@@ -673,7 +673,7 @@ Check HTTP Response Body Is Empty
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log
Check Response includes NS Package Management according to filter
@{words}
=
Split String
${filter_ok}
,
${SEP
E
RATOR}
@{words}
=
Split String
${filter_ok}
${SEP
A
RATOR}
Should Be Equal As Strings
${response['body'][0]['callbackUri']}
@{words}
[1]
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment