diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-09-27 10:29:30 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-09-27 12:50:28 -0700 |
commit | 2d3d8dcf6ef1bd2a161c69d561c629c5ec3f59c4 (patch) | |
tree | 652fd47a183c291e96c6721f550a5f63464f6e66 /test/csit/tests/vnfsdk-marketplace/provision/sanity_test_vnfsdktestfunction.robot | |
parent | e161173e279a73134dda4c2f429605d6c9ee1fe7 (diff) |
Move CSIT to integration/csit repo
To facilite branching of CSIT tests, all CSIT test
code and scripts are relocated to the integration/csit
repo.
Change-Id: I6777cd414e43dbf2bfa6215f7e50849e1a6a2e59
Issue-ID: INT-671
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/csit/tests/vnfsdk-marketplace/provision/sanity_test_vnfsdktestfunction.robot')
-rw-r--r-- | test/csit/tests/vnfsdk-marketplace/provision/sanity_test_vnfsdktestfunction.robot | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/test/csit/tests/vnfsdk-marketplace/provision/sanity_test_vnfsdktestfunction.robot b/test/csit/tests/vnfsdk-marketplace/provision/sanity_test_vnfsdktestfunction.robot deleted file mode 100644 index 01ece239f..000000000 --- a/test/csit/tests/vnfsdk-marketplace/provision/sanity_test_vnfsdktestfunction.robot +++ /dev/null @@ -1,55 +0,0 @@ -*** settings *** -Library OperatingSystem -Library Process -Library String -Library Collections -Library RequestsLibrary -Library json - - -*** Variables *** -${csarpath} ${SCRIPTS}/../tests/vnfsdk-marketplace/provision/enterprise2DC.csar -${csarId} 0 - -*** Test Cases *** - -Upload VNF Package to VNF Repository - [Documentation] Upload the VNF Package - ${resp}= Run curl -s -X POST -H "Content-Type: multipart/form-data" -F "file=@${csarpath}" http://${REPO_IP}:8702/onapapi/vnfsdk-marketplace/v1/PackageResource/csars - Should Contain ${resp} csarId - ${csarjson}= Evaluate ${resp} - ${csarId}= Set Variable ${csarjson["csarId"]} - Set Global Variable ${csarId} - -Get VNF Package Information from Repository - Create Session refrepo http://${REPO_IP}:8702 - &{headers}= Create Dictionary Content-Type=application/json - ${resp}= Get Request refrepo /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csarId} headers=${headers} - ${response_json} json.loads ${resp.content} - ${downloadUri}= Convert To String ${response_json['downloadUri']} - Should Contain ${downloadUri} ${csarId} - Should Be Equal As Strings ${resp.status_code} 200 - -Get List Of Requests - Create Session refrepo http://${REPO_IP}:8702 - &{headers}= Create Dictionary Content-Type=application/json - ${resp}= Get Request refrepo /onapapi/vnfsdk-marketplace/v1/PackageResource/csars?name=enterprise2DC&version=1.0&type=SSAR&provider=huawei headers=${headers} - Should Be Equal As Strings ${resp.status_code} 200 - -Download VNF Package from Repository - Create Session refrepo http://${REPO_IP}:8702 - &{headers}= Create Dictionary Content-Type=application/json - ${resp}= Get Request refrepo /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csarId}/files headers=${headers} - Should Be Equal As Strings ${resp.status_code} 200 - ${downloadUri}= Convert To String ${resp.content} - ${downloadUri1}= Run curl http://${REPO_IP}:8702/onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csarId}/files - ${string}= Convert To String ${downloadUri1} - Should Contain ${downloadUri1} ' % Total % Received % Xferd Average - Should Contain ${string} ' % Total % Received % Xferd Average - -Delete VNF Package from Repository - Create Session refrepo http://${REPO_IP}:8702 - &{headers}= Create Dictionary Content-Type=application/json - ${resp}= Delete Request refrepo /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csarId} headers=${headers} - Should Be Equal As Strings ${resp.status_code} 200 - |