diff options
Diffstat (limited to 'resources/testscripts/F-version/vnf/vnf_upload.py')
-rw-r--r-- | resources/testscripts/F-version/vnf/vnf_upload.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/testscripts/F-version/vnf/vnf_upload.py b/resources/testscripts/F-version/vnf/vnf_upload.py index 074f298c..33b39dff 100644 --- a/resources/testscripts/F-version/vnf/vnf_upload.py +++ b/resources/testscripts/F-version/vnf/vnf_upload.py @@ -1,9 +1,11 @@ import requests import sys +from testscripts.const import MSB_BASE_URL, VNF_CSAR_PATH + id = sys.argv[1] requests.packages.urllib3.disable_warnings() -url = 'https://192.168.235.89:30283/api/vnfpkgm/v1/vnf_packages/' + id + '/package_content' -resp = requests.put(url, files={'file': open(r"C:\Users\86187\Desktop\vfc-tests\vgw.csar", 'rb')}, verify=False) +url = MSB_BASE_URL + '/api/vnfpkgm/v1/vnf_packages/' + id + '/package_content' +resp = requests.put(url, files={'file': open(VNF_CSAR_PATH, 'rb')}, verify=False) print(resp.status_code) |