diff options
author | Fu Jinhua <fu.jinhua@zte.com.cn> | 2017-09-14 10:35:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-14 10:35:24 +0000 |
commit | 8fa86b9e82224b890a56292c2408e6b804e9bd00 (patch) | |
tree | f0ea4d47f06c5b3a3a60a472a45e33a38d927ad7 | |
parent | 71b431c40322fcbd8ec31c32a13c66ee18abc1e7 (diff) | |
parent | 380697c5101dd1bea2f5cc8330512dd6ef70dfce (diff) |
Merge "Add test param for ns create"
-rw-r--r-- | lcm/ns/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/ns/views.py b/lcm/ns/views.py index 84bcd014..dbf285e7 100644 --- a/lcm/ns/views.py +++ b/lcm/ns/views.py @@ -53,6 +53,8 @@ class CreateNSView(APIView): def post(self, request): logger.debug("Enter CreateNS: %s", request.data) + if ignore_case_get(request.data, 'test') == "test": + return Response(data={'nsInstanceId': "test"}, status=status.HTTP_201_CREATED) nsd_id = ignore_case_get(request.data, 'nsdId') ns_name = ignore_case_get(request.data, 'nsName') description = ignore_case_get(request.data, 'description') |