Modify test scripts of F version and add instructions about it
[vfc/nfvo/lcm.git] / resources / testscripts / F-version / vnf / vnf_download.py
1 import requests
2 import sys
3
4 from testscripts.const import MSB_BASE_URL, VNF_CSAR_PATH
5
6 requests.packages.urllib3.disable_warnings()
7 id = sys.argv[1]
8 url = MSB_BASE_URL + '/api/vnfpkgm/v1/vnf_packages/' + id + '/package_content'
9 resp = requests.get(url, verify=False)
10 local_file = open(VNF_CSAR_PATH, 'wb')
11 local_file.write(resp.content)
12 local_file.close()