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
fcc1ef8e
Commit
fcc1ef8e
authored
Jun 12, 2020
by
Elian Kraja
Browse files
Fix issue
#115
parent
c31a01c0
Changes
24
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFFaultManagement-API/Alarms.robot
View file @
fcc1ef8e
...
...
@@ -359,7 +359,7 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
GET Alarms Task with filter "id"
...
...
SOL002/VNFFaultManagement-API/Subscriptions.robot
View file @
fcc1ef8e
...
...
@@ -401,7 +401,7 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
Get subscriptions with filter "id"
...
...
SOL002/VNFIndicator-API/Subscriptions.robot
View file @
fcc1ef8e
...
...
@@ -264,5 +264,5 @@ Check Notification Endpoint
Clear
Requests
${callback_endpoint}
Check
LINK
in
Header
${linkURL}=
Get
Value
From
Json
${response
.
headers}
$..Link
${linkURL}=
Get
Value
From
Json
${response
['
headers
']
}
$..Link
Should
Not
Be
Empty
${linkURL}
\ No newline at end of file
SOL002/VNFIndicator-API/VNFIndicators.robot
View file @
fcc1ef8e
...
...
@@ -302,5 +302,5 @@ Check HTTP Response Body vnfIndicators Matches the requested attribute-based fil
Should Be True
"
${response['body'][0]['name']}
"=="
@{var_name}
[1]" and "
${response['body'][0]['vnfInstanceId']}
"=="
@{var_id}
[1]"
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot
View file @
fcc1ef8e
...
...
@@ -235,8 +235,8 @@ Check Postcondition Indicators for VNF instance Exist
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/indicators/
${vnfInstanceId}
Should Be Equal
${response
.
status
_code
}
200
Should Be Equal
${response
['
status
']
}
200
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
\ No newline at end of file
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
View file @
fcc1ef8e
...
...
@@ -27,7 +27,7 @@ Check HTTP Response Status Code Is
Log
Status code validated
Check Operation Occurrence Id
${vnfLcmOpOccId}
=
Get Value From Json
${response
.
headers}
$..Location
${vnfLcmOpOccId}
=
Get Value From Json
${response
['
headers
']
}
$..Location
Should Not Be Empty
${vnfLcmOpOccId}
Check HTTP Response Body Json Schema Is
...
...
@@ -39,12 +39,12 @@ Check HTTP Response Body Json Schema Is
Check resource Instantiated
Check VNF Instance
${vnfInstanceId}
Check HTTP Response Status Code Is
200
Check VNF Status
${response
.
body
.
instantiationState}
INSTANTIATED
Check VNF Status
${response
['
body
']['
instantiationState
']
}
INSTANTIATED
Check resource not Instantiated
Check VNF Instance
${vnfInstanceId}
Check HTTP Response Status Code Is
200
Check VNF Status
${response
.
body
.
instantiationState}
NOT_INSTANTIATED
Check VNF Status
${response
['
body
']['
instantiationState
']
}
NOT_INSTANTIATED
Check VNF Instance
[
Arguments
]
${vnfId}
...
...
@@ -70,7 +70,7 @@ Check operation resource state is FINALLY_FAILED
Check HTTP Response Header Contains
[
Arguments
]
${CONTENT_TYPE}
Should Contain
${response
.
headers}
${CONTENT_TYPE}
Should Contain
${response
['
headers
']
}
${CONTENT_TYPE}
Log
Header is present
POST Create a new vnfInstance
...
...
@@ -924,7 +924,7 @@ GET test endpoint
Verify Mock Expectation
${req}
Clear Requests
${callback_endpoint}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
Check Subscription resource exist
...
...
SOL002/VNFPerformanceManagement-API/PMJobs.robot
View file @
fcc1ef8e
...
...
@@ -383,7 +383,7 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
SOL002/VNFPerformanceManagement-API/Thresholds.robot
View file @
fcc1ef8e
...
...
@@ -243,7 +243,7 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
...
...
SOL002/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
fcc1ef8e
...
...
@@ -348,5 +348,5 @@ Check Notification Endpoint
Clear Requests
${callback_endpoint}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
View file @
fcc1ef8e
...
...
@@ -25,7 +25,7 @@ Check Postcondition FaultManagement Subscription Is Set
Set Suite Variable
${response}
${output}
Check HTTP Response Status Code Is
200
Check Operation Occurrence Id
${opOccId}
=
Get Value From Json
${response
.
headers}
$..Location
${opOccId}
=
Get Value From Json
${response
['
headers
']
}
$..Location
Should Not Be Empty
${opOccId}
Check Postcondition VNF fault management alarms Exists
Log
Checking that alarms exists
...
...
@@ -403,7 +403,7 @@ DELETE Individual Subscription
Set Global Variable
${response}
${outputResponse}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
Get subscriptions with filter "id"
...
...
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
fcc1ef8e
...
...
@@ -408,7 +408,7 @@ Check Postcondition Indicators for VNF instance Exist
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/indicators/
${vnfInstanceId}
Should Be Equal
${response
.
status
_code
}
200
Should Be Equal
${response
['
status
']
}
200
Get Individual Indicator for a VNF instance
...
...
@@ -569,5 +569,5 @@ Check Notification Endpoint
Clear Requests
${callback_endpoint}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
SOL003/VNFLifecycleManagement-API/CreateVNFWorkflow.robot
View file @
fcc1ef8e
...
...
@@ -39,7 +39,7 @@ Check Postcondition VNF Instance Created status is
[
Arguments
]
${status}
Check VNF Instance
${vnfInstanceId}
Check HTTP Response Status Code Is
200
Check VNF Status
${response
.
body
.
instantiationState}
${status}
Check VNF Status
${response
['
body
']['
instantiationState
']
}
${status}
Check Operation Notification For VNF Instance Creation
Check VNF Instance Operation Notification
VnfIdentifierCreationNotification
${vnfInstanceId}
SOL003/VNFLifecycleManagement-API/InstantiateVNFTaskWorkflow.robot
View file @
fcc1ef8e
...
...
@@ -57,7 +57,7 @@ Check Postcondition VNF Status
Check VNF Instance
${vnfInstanceId}
Should Not Be Empty
${response}
Check HTTP Response Status Code Is
200
Should Be Equal
${response
.
body
.id
}
${vnfInstanceId}
Should Be Equal
${response
['
body
']['id']
}
${vnfInstanceId}
Check HTTP Response Header Contains
Content-Type
Check HTTP Response Body Json Schema Is
vnfInstance.schema.json
Check VNF Status
${response.body.instantiationState}
${status}
\ No newline at end of file
Check VNF Status
${response['body']['instantiationState']}
${status}
\ No newline at end of file
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
fcc1ef8e
...
...
@@ -27,11 +27,11 @@ Check HTTP Response Status Code Is
Log
Status code validated
Check Operation Occurrence IdS
${vnfLcmOpOccId}
=
Get Value From Json
${response
.
headers}
$..Location
${vnfLcmOpOccId}
=
Get Value From Json
${response
['
headers
']
}
$..Location
Should Not Be Empty
${vnfLcmOpOccId}
Check Operation Occurrence Id existence
${vnfLcmOpOccId}
=
Get Value From Json
${response
.
headers}
$..Location
${vnfLcmOpOccId}
=
Get Value From Json
${response
['
headers
']
}
$..Location
Should Not Be Empty
${vnfLcmOpOccId}
Check HTTP Response Body Json Schema Is
...
...
@@ -43,12 +43,12 @@ Check HTTP Response Body Json Schema Is
Check resource Instantiated
Check VNF Instance
${vnfInstanceId}
Check HTTP Response Status Code Is
200
Check VNF Status
${response
.
body
.
instantiationState}
INSTANTIATED
Check VNF Status
${response
['
body
']['
instantiationState
']
}
INSTANTIATED
Check resource not Instantiated
Check VNF Instance
${vnfInstanceId}
Check HTTP Response Status Code Is
200
Check VNF Status
${response
.
body
.
instantiationState
}
NOT_INSTANTIATED
Check VNF Status
${response
['
body
']['
instantiationState
']}
NOT_INSTANTIATED
Check VNF Instance
[
Arguments
]
${vnfId}
...
...
@@ -96,7 +96,7 @@ Get Vnf Ext Link Id
Check HTTP Response Header Contains
[
Arguments
]
${CONTENT_TYPE}
Should Contain
${response
.
headers}
${CONTENT_TYPE}
Should Contain
${response
['
headers
']
}
${CONTENT_TYPE}
Log
Header is present
Send VNF Scale Out Request
...
...
@@ -1150,5 +1150,5 @@ GET test endpoint
Clear Requests
${callback_endpoint}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
SOL003/VNFLifecycleOperationGranting-API/Grants.robot
View file @
fcc1ef8e
...
...
@@ -158,7 +158,7 @@ Check HTTP Response Status Code Is
Log
Status code validated
Check Operation Occurrence Id existence
${occId}
=
Get Value From Json
${response
.
headers}
$..Location
${occId}
=
Get Value From Json
${response
['
headers
']
}
$..Location
Should Not Be Empty
${occId}
Check HTTP Response Header Contains
...
...
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
fcc1ef8e
...
...
@@ -778,7 +778,7 @@ Check Notification Endpoint
Clear Requests
${callback_endpoint}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
Get all OnBoarded VNF Packages
...
...
SOL003/VNFPerformanceManagement-API/PMJobs.robot
View file @
fcc1ef8e
...
...
@@ -383,5 +383,5 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
\ No newline at end of file
SOL003/VNFPerformanceManagement-API/Thresholds.robot
View file @
fcc1ef8e
...
...
@@ -241,6 +241,6 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
SOL003/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
fcc1ef8e
...
...
@@ -345,5 +345,5 @@ Check Notification Endpoint
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${notification_request}
Clear Requests
${callback_endpoint}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
\ No newline at end of file
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/VRQANOperationKeywords.robot
View file @
fcc1ef8e
...
...
@@ -178,6 +178,6 @@ Send Delete request for Virtualised Resources Quota Available Notification subsc
Set Global Variable
${response}
${outputResponse}
Check LINK in Header
${linkURL}
=
Get Value From Json
${response
.
headers}
$..Link
${linkURL}
=
Get Value From Json
${response
['
headers
']
}
$..Link
Should Not Be Empty
${linkURL}
\ No newline at end of file
Prev
1
2
Next
Elian Kraja
@kraja
mentioned in issue
#112 (closed)
·
Jun 12, 2020
mentioned in issue
#112 (closed)
mentioned in issue #112
Toggle commit list
Elian Kraja
@kraja
mentioned in issue
#117 (closed)
·
Jun 12, 2020
mentioned in issue
#117 (closed)
mentioned in issue #117
Toggle commit list
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