diff options
Diffstat (limited to 'resources/testscripts/F-version/ns_instance/terminate.py')
-rw-r--r-- | resources/testscripts/F-version/ns_instance/terminate.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/testscripts/F-version/ns_instance/terminate.py b/resources/testscripts/F-version/ns_instance/terminate.py index 9d214c8c..4b1ca31c 100644 --- a/resources/testscripts/F-version/ns_instance/terminate.py +++ b/resources/testscripts/F-version/ns_instance/terminate.py @@ -2,6 +2,8 @@ import json import httplib2 import sys +from testscripts.const import MSB_BASE_URL + id = sys.argv[1] data = { "gracefulTerminationTimeout": 600, @@ -12,7 +14,7 @@ ca_certs = None auth_type = "rest_no_auth" http = httplib2.Http(ca_certs=ca_certs, disable_ssl_certificate_validation=(auth_type == "rest_no_auth")) http.follow_all_redirects = True -resp, resp_content = http.request('https://192.168.235.89:30283/api/nslcm/v1/ns/' + id + '/terminate', +resp, resp_content = http.request(MSB_BASE_URL + '/api/nslcm/v1/ns/' + id + '/terminate', method="POST", body=json.dumps(data), headers=headers) |