Add test scripts of F version
[vfc/nfvo/lcm.git] / resources / testscripts / F-version / ns_instance / get_job_id.py
diff --git a/resources/testscripts/F-version/ns_instance/get_job_id.py b/resources/testscripts/F-version/ns_instance/get_job_id.py
new file mode 100644 (file)
index 0000000..4fbf7c9
--- /dev/null
@@ -0,0 +1,9 @@
+import requests
+import sys
+
+requests.packages.urllib3.disable_warnings()
+jobId = '1'
+if len(sys.argv) > 1:
+    jobId = sys.argv[1]
+resp = requests.get('https://192.168.235.89:30283/api/nslcm/v1/jobs/%s' % jobId, verify=False)
+print(resp.status_code, resp.json())