Code Review
/
vfc
/
nfvo
/
lcm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Modify test scripts of F version and add instructions about it
[vfc/nfvo/lcm.git]
/
resources
/
testscripts
/
F-version
/
ns
/
ns_download.py
1
import requests
2
import sys
3
4
from testscripts.const import MSB_BASE_URL, NS_CSAR_PATH
5
6
id = sys.argv[1]
7
url = MSB_BASE_URL + '/api/nsd/v1/ns_descriptors/' + id + '/nsd_content'
8
resp = requests.get(url)
9
local_file = open(NS_CSAR_PATH, 'wb')
10
local_file.write(resp.content)
11
local_file.close()