Modify vfc-lcm variable name to hump 17/18417/4
authorying.yunlong <ying.yunlong@zte.com.cn>
Thu, 12 Oct 2017 02:53:24 +0000 (10:53 +0800)
committeryunlong ying <ying.yunlong@zte.com.cn>
Fri, 13 Oct 2017 00:56:29 +0000 (00:56 +0000)
Change-Id: Ia42c7dd5f8d5bffb3413abfcab093c34477448c6
Issue-ID: VFC-528
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
docs/APIs/NSLCM_API/NSLCM_API_Specification_v0.1.rst
lcm/ns/ns_create.py
lcm/ns/ns_delete.py
lcm/ns/ns_heal.py
lcm/ns/ns_instant.py
lcm/ns/ns_terminate.py
lcm/ns/tests/test_ns_create.py
lcm/ns/views.py
lcm/swagger/vfc.nslcm.swagger.json

index 66df2f4..ff9e621 100644 (file)
@@ -569,11 +569,11 @@ NS LCM API
          "context":{\r
             "type": "object",\r
             "properties": {\r
-              "global-customer-id":{\r
+              "globalCustomerId":{\r
                  "type": "string",\r
                  "description": "the global customer id"\r
               },\r
-              "service-type":{\r
+              "serviceType":{\r
                  "type": "string",\r
                  "description": "service type"\r
               }\r
index c7f4a68..e18a926 100644 (file)
@@ -32,8 +32,8 @@ class CreateNSService(object):
         self.csar_id = csar_id
         self.ns_name = ns_name
         self.description = description
-        self.global_customer_id = ignore_case_get(context, 'global-customer-id')
-        self.service_type = ignore_case_get(context, 'service-type')
+        self.global_customer_id = ignore_case_get(context, 'globalCustomerId')
+        self.service_type = ignore_case_get(context, 'serviceType')
         self.ns_inst_id = ''
         self.ns_package_id = ''
 
index a4ecab3..131cb76 100644 (file)
@@ -11,8 +11,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-
-
 import logging
 import traceback
 
index d777191..3efa588 100644 (file)
@@ -11,7 +11,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-
 import logging
 import threading
 import traceback
index 23c5ba3..b0994d2 100644 (file)
@@ -11,7 +11,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-
 import json
 import logging
 import time
index e2f1931..0e87e48 100644 (file)
@@ -11,7 +11,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-
 import json
 import logging
 import math
index 55397bb..e462e1c 100644 (file)
@@ -46,8 +46,8 @@ class TestNsInstantiate(TestCase):
         mock_call_req.side_effect = [r1_query_nspackage_from_catalog, r2_create_ns_to_aai]
         data = {
             "context": {
-                "global-customer-id": "global-customer-id-test1",
-                "service-type": "service-type-test1"
+                "globalCustomerId": "global-customer-id-test1",
+                "serviceType": "service-type-test1"
             },
             "csarId": self.nsd_id,
             "nsName": "ns",
index 4c403d1..03a5763 100644 (file)
@@ -11,8 +11,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-
-
 import json
 import logging
 import os
index 4b28cec..e8a8390 100644 (file)
             }\r
           }\r
         }\r
-      },      \r
+      },\r
       "delete": {\r
         "tags": [\r
           "ns"\r
       "properties": {\r
         "context":{\r
           "type": "object",\r
-           "properties": {          \r
-              "global-customer-id":{\r
+           "properties": {\r
+              "globalCustomerId":{\r
                  "type": "string",\r
                  "description": "the global customer id"\r
               },\r
-              "service-type":{\r
+              "serviceType":{\r
                  "type": "string",\r
                  "description": "service type"\r
               }\r
             "jobId": {\r
                "type": "string"\r
              },\r
-            "responseDescriptor": \r
+            "responseDescriptor":\r
             {\r
                 "type":"object",\r
                 "properties": {\r