summaryrefslogtreecommitdiffstats
path: root/resources/testscripts/F-version/ns_instance/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/testscripts/F-version/ns_instance/create.py')
-rw-r--r--resources/testscripts/F-version/ns_instance/create.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/resources/testscripts/F-version/ns_instance/create.py b/resources/testscripts/F-version/ns_instance/create.py
index e3fa51ef..852dbc32 100644
--- a/resources/testscripts/F-version/ns_instance/create.py
+++ b/resources/testscripts/F-version/ns_instance/create.py
@@ -1,17 +1,19 @@
import json
import httplib2
+from testscripts.const import MSB_BASE_URL, GLOBAL_CUSTOMER_Id, SERVICE_TYPE, CSAR_ID, NS_NAME, DESCRIPTION
+
data = {
"context": {
- "globalCustomerId": "global-customer-id-test1",
- "serviceType": "service-type-test1"
+ "globalCustomerId": GLOBAL_CUSTOMER_Id,
+ "serviceType": SERVICE_TYPE
},
- "csarId": "d5d678dc-80ef-461e-8630-d105f43b0a18",
- "nsName": "ns_vsn",
- "description": "description"
+ "csarId": CSAR_ID,
+ "nsName": NS_NAME,
+ "description": DESCRIPTION
}
-full_url = 'https://192.168.235.89:30283/api/nslcm/v1/ns'
+full_url = MSB_BASE_URL + '/api/nslcm/v1/ns'
headers = {'content-type': 'application/json', 'accept': 'application/json'}
ca_certs = None
auth_type = "rest_no_auth"