diff options
author | 2019-11-21 16:53:38 +0800 | |
---|---|---|
committer | 2019-11-21 17:17:32 +0800 | |
commit | b301e35367f860fae335c85227795008b531d79b (patch) | |
tree | f7505b957aeffcb6de2e584908cb7dcd48bbd191 /catalog/packages/tests/test_pnf_descriptor.py | |
parent | 1e1ba6cb568bbf426175ee8d5fa25c07d87678f1 (diff) |
1.Update API endpoint; 2. update swagger information.
Issue-ID: MODELING-277
Change-Id: I6b3252ebc61d6bdf0ece483688a44f3838901940
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/packages/tests/test_pnf_descriptor.py')
-rw-r--r-- | catalog/packages/tests/test_pnf_descriptor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog/packages/tests/test_pnf_descriptor.py b/catalog/packages/tests/test_pnf_descriptor.py index 8af8614..7abd46c 100644 --- a/catalog/packages/tests/test_pnf_descriptor.py +++ b/catalog/packages/tests/test_pnf_descriptor.py @@ -15,14 +15,14 @@ import copy import json -import mock import os import shutil - +import mock from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient + from catalog.packages.biz.pnf_descriptor import PnfDescriptor from catalog.packages.const import PKG_STATUS from catalog.packages.tests.const import pnfd_data @@ -281,6 +281,6 @@ class TestPnfDescriptor(TestCase): PnfPackageModel(pnfPackageId="8", pnfdId="10").save() mock_parse_pnfd.return_value = json.JSONEncoder().encode({"c": "d"}) req_data = {"csarId": "8", "inputs": []} - resp = self.client.post("/api/catalog/v1/parserpnfd", req_data, format='json') + resp = self.client.post("/api/parser/v1/parserpnfd", req_data, format='json') self.assertEqual(resp.status_code, status.HTTP_202_ACCEPTED) self.assertEqual({"model": '{"c": "d"}'}, resp.data) |