diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-08-15 14:48:02 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-08-15 14:48:02 +0800 |
commit | 098b7e99394fcbaaff005239a2143836c02b03e0 (patch) | |
tree | 33164427c0081460132e0a570a151575d32465d7 /lcm/lcm/jobs | |
parent | e3f942cc4182d82284c421e345c7bd6081eec497 (diff) |
Remove vfc-gvnfm-vnflcm openo labels
As the seed code comes from openo, there are many
openo labels in vfc-gvnfm-vnflcm, for example, in
the Rest URL, now remove the openo labels.
Change-Id: Iba041d18f626603d4e21b9f9ea60fdcfe31e41da
Issue-ID: VFC-85
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm/lcm/jobs')
-rw-r--r-- | lcm/lcm/jobs/tests.py | 2 | ||||
-rw-r--r-- | lcm/lcm/jobs/urls.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lcm/lcm/jobs/tests.py b/lcm/lcm/jobs/tests.py index 9957b9cf..df466563 100644 --- a/lcm/lcm/jobs/tests.py +++ b/lcm/lcm/jobs/tests.py @@ -28,5 +28,5 @@ class JobsViewTest(TestCase): def test_job(self): JobModel(jobid=self.job_id, jobtype='VNF', jobaction='INST', resid='1').save() JobStatusModel(indexid=1, jobid=self.job_id, status='inst', progress=20, descp='inst').save() - response = self.client.get("/openoapi/vnflcm/v1/vnf_lc_ops/%s?responseId=123456jhj" % self.job_id) + response = self.client.get("/api/vnflcm/v1/vnf_lc_ops/%s?responseId=123456jhj" % self.job_id) self.failUnlessEqual(status.HTTP_200_OK, response.status_code)
\ No newline at end of file diff --git a/lcm/lcm/jobs/urls.py b/lcm/lcm/jobs/urls.py index f2ab2bbd..0aeb7fa8 100644 --- a/lcm/lcm/jobs/urls.py +++ b/lcm/lcm/jobs/urls.py @@ -17,7 +17,7 @@ from rest_framework.urlpatterns import format_suffix_patterns from lcm.jobs.views import JobView urlpatterns = patterns('', - url(r'^openoapi/vnflcm/v1/vnf_lc_ops/(?P<job_id>[0-9a-zA-Z_-]+)$', JobView.as_view()), + url(r'^api/vnflcm/v1/vnf_lc_ops/(?P<job_id>[0-9a-zA-Z_-]+)$', JobView.as_view()), ) urlpatterns = format_suffix_patterns(urlpatterns) |