Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
NFV - Network Functions Virtualisation
api-tests
Commits
ba8920d0
Commit
ba8920d0
authored
4 years ago
by
Najam UI Hassan
Browse files
Options
Downloads
Patches
Plain Diff
Update ApiVersion.robot
parent
c90050ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!199
Merge "3.3.1 dev" into "release 3" master
,
!193
Merge 2.7.1 dev into Master, for TST010ed271 publication
,
!133
SOL005 NS Lifecycle Management - Implementation of deltas between v2.7.1 and v2.6.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SOL005/NSLifecycleManagement-API/ApiVersion.robot
+213
-213
213 additions, 213 deletions
SOL005/NSLifecycleManagement-API/ApiVersion.robot
with
213 additions
and
213 deletions
SOL005/NSLifecycleManagement-API/ApiVersion.robot
+
213
−
213
View file @
ba8920d0
*** Settings ***
*** Settings ***
Resource
environment/variables.txt
Resource
environment/variables.txt
Library
REST
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
ssl_verify=false
Library
REST
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
ssl_verify=false
Library
DependencyLibrary
Library
DependencyLibrary
Library
JSONLibrary
Library
JSONLibrary
Library
JSONSchemaLibrary
schemas/
Library
JSONSchemaLibrary
schemas/
*** Test Cases ***
*** Test Cases ***
POST API Version - Method not implemented
POST API Version - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.1
[
Documentation
]
Test ID: 5.3.2.25.1
...
Test title: POST API version - Method not implemented
...
Test title: POST API version - Method not implemented
...
Test objective: The objective is to test that POST method is not implemented
...
Test objective: The objective is to test that POST method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
POST API Version
POST API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
GET API Version
GET API Version
[
Documentation
]
Test ID: 5.3.2.25.2
[
Documentation
]
Test ID: 5.3.2.25.2
...
Test title: GET API Version
...
Test title: GET API Version
...
Test objective: The objective is to test that GET method successfully return ApiVersionInformation
...
Test objective: The objective is to test that GET method successfully return ApiVersionInformation
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
GET API Version
GET API Version
Check HTTP Response Status Code Is
200
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
ApiVersionInformation
Check HTTP Response Body Json Schema Is
ApiVersionInformation
PUT API Version - Method not implemented
PUT API Version - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.3
[
Documentation
]
Test ID: 5.3.2.25.3
...
Test title: PUT API Version - Method not implemented
...
Test title: PUT API Version - Method not implemented
...
Test objective: The objective is to test that PUT method is not implemented
...
Test objective: The objective is to test that PUT method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
PUT API Version
PUT API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
PATCH API Version - Method not implemented
PATCH API Version - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.4
[
Documentation
]
Test ID: 5.3.2.25.4
...
Test title: PATCH API Version - Method not implemented
...
Test title: PATCH API Version - Method not implemented
...
Test objective: The objective is to test that PATCH method is not implemented
...
Test objective: The objective is to test that PATCH method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
PATCH API Version
PATCH API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
DELETE API Version - Method not implemented
DELETE API Version - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.5
[
Documentation
]
Test ID: 5.3.2.25.5
...
Test title: DELETE API Version - Method not implemented
...
Test title: DELETE API Version - Method not implemented
...
Test objective: The objective is to test that DELETE method is not implemented
...
Test objective: The objective is to test that DELETE method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
DELETE API Version
DELETE API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
POST API Version with apiMajorVerion - Method not implemented
POST API Version with apiMajorVerion - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.6
[
Documentation
]
Test ID: 5.3.2.25.6
...
Test title: POST API version with apiMajorVerion - Method not implemented
...
Test title: POST API version with apiMajorVerion - Method not implemented
...
Test objective: The objective is to test that POST method is not implemented
...
Test objective: The objective is to test that POST method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
POST API Version
POST API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
GET API Version with apiMajorVerion
GET API Version with apiMajorVerion
[
Documentation
]
Test ID: 5.3.2.25.7
[
Documentation
]
Test ID: 5.3.2.25.7
...
Test title: GET API Version with apiMajorVerion
...
Test title: GET API Version with apiMajorVerion
...
Test objective: The objective is to test that GET method successfully return ApiVersionInformation
...
Test objective: The objective is to test that GET method successfully return ApiVersionInformation
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
GET API Version
GET API Version
Check HTTP Response Status Code Is
200
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
ApiVersionInformation
Check HTTP Response Body Json Schema Is
ApiVersionInformation
PUT API Version with apiMajorVerion - Method not implemented
PUT API Version with apiMajorVerion - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.8
[
Documentation
]
Test ID: 5.3.2.25.8
...
Test title: PUT API Version with apiMajorVerion - Method not implemented
...
Test title: PUT API Version with apiMajorVerion - Method not implemented
...
Test objective: The objective is to test that PUT method is not implemented
...
Test objective: The objective is to test that PUT method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
PUT API Version
PUT API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
PATCH API Version with apiMajorVerion - Method not implemented
PATCH API Version with apiMajorVerion - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.9
[
Documentation
]
Test ID: 5.3.2.25.9
...
Test title: PATCH API Version with apiMajorVerion - Method not implemented
...
Test title: PATCH API Version with apiMajorVerion - Method not implemented
...
Test objective: The objective is to test that PATCH method is not implemented
...
Test objective: The objective is to test that PATCH method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
PATCH API Version
PATCH API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
DELETE API Version with apiMajorVerion - Method not implemented
DELETE API Version with apiMajorVerion - Method not implemented
[
Documentation
]
Test ID: 5.3.2.25.10
[
Documentation
]
Test ID: 5.3.2.25.10
...
Test title: DELETE API Version with apiMajorVerion - Method not implemented
...
Test title: DELETE API Version with apiMajorVerion - Method not implemented
...
Test objective: The objective is to test that DELETE method is not implemented
...
Test objective: The objective is to test that DELETE method is not implemented
...
Pre-conditions: none
...
Pre-conditions: none
...
Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1
...
Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1
...
Config ID: Config_prod_VNFM
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
DELETE API Version
DELETE API Version
Check HTTP Response Status Code Is
405
Check HTTP Response Status Code Is
405
*** Keywords ***
*** Keywords ***
POST API Version
POST API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/api_version
Post
${apiRoot}
/
${apiName}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
GET API Version
GET API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/api_version
Get
${apiRoot}
/
${apiName}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PUT API Version
PUT API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Put
${apiRoot}
/
${apiName}
/api_version
Put
${apiRoot}
/
${apiName}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PATCH API Version
PATCH API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Patch
${apiRoot}
/
${apiName}
/api_version
Patch
${apiRoot}
/
${apiName}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
DELETE API Version
DELETE API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/api_version
Delete
${apiRoot}
/
${apiName}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
POST API Version with apiMajorVersion
POST API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
GET API Version with apiMajorVersion
GET API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PUT API Version with apiMajorVersion
PUT API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PATCH API Version with apiMajorVersion
PATCH API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
DELETE API Version with apiMajorVersion
DELETE API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_version
s
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
Should Be Equal As Strings
${response['status']}
${expected_status}
Should Be Equal As Strings
${response['status']}
${expected_status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
[
Arguments
]
${input}
${schema}
=
Catenate
${input}
.schema.json
${schema}
=
Catenate
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
Log
Json Schema Validation OK
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