diff options
Diffstat (limited to 'resources/testscripts/F-version/vnf/vnf_upload.py')
-rw-r--r-- | resources/testscripts/F-version/vnf/vnf_upload.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/testscripts/F-version/vnf/vnf_upload.py b/resources/testscripts/F-version/vnf/vnf_upload.py new file mode 100644 index 00000000..074f298c --- /dev/null +++ b/resources/testscripts/F-version/vnf/vnf_upload.py @@ -0,0 +1,9 @@ +import requests +import sys + +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) +print(resp.status_code) |