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
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Miguel Angel Reina Ortega
api-tests
Commits
7698216c
Commit
7698216c
authored
6 years ago
by
mengxuan.zhao
Browse files
Options
Downloads
Patches
Plain Diff
bug fix in SOL003 VNF lc mngt scaleout workflow
parent
4cff22f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SOL003/VNFLifecycleManagement-API/ScaleVNFTaskWorkflow.robot
+1
-0
1 addition, 0 deletions
SOL003/VNFLifecycleManagement-API/ScaleVNFTaskWorkflow.robot
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
+4
-8
4 additions, 8 deletions
...FLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
with
5 additions
and
8 deletions
SOL003/VNFLifecycleManagement-API/ScaleVNFTaskWorkflow.robot
+
1
−
0
View file @
7698216c
...
...
@@ -38,6 +38,7 @@ Scale out a VNF Instance
*** Keywords ***
Initialize System
Create Sessions
${scaleInfo}
=
Get Vnf Scale Info
${vnfInstanceId}
Precondition Checks
...
...
This diff is collapsed.
Click to expand it.
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
+
4
−
8
View file @
7698216c
...
...
@@ -39,12 +39,9 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check resource Instantiated
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
String
response body instantiationState
INSTANTIATED
Check VNF Instance
${vnfInstanceId}
Check HTTP Response Status Code Is
200
Check VNF Status
${response.body.instantiationState}
INSTANTIATED
Check VNF Instance
[
Arguments
]
${vnfId}
...
...
@@ -77,8 +74,7 @@ Send VNF Scale Out Request
${body}
=
Get File
json/scaleVnfOutRequest.json
${json}
=
evaluate
json.loads('''
${body}
''')
json
${aspectId}
=
Set Variable
${json.aspectId}
${scaleOutResponse}
=
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
[
Return
]
${scaleOutResponse}
${response}
=
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
Create a new Grant - Synchronous mode
[
Arguments
]
${vnfInstanceId}
${vnfLcmOpOccId}
${operation}
...
...
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