X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=multivimbroker%2Fmultivimbroker%2Fswagger%2Ftests.py;h=153f76643eb092a376d15051ce9807050ef3bea0;hb=refs%2Fchanges%2F31%2F28131%2F1;hp=d5b09fe2cc1b8e627b79408f5fd29e1af9ffa3b7;hpb=b1b0386b5ed988fbbf25e326c3d0ce951eff07cd;p=multicloud%2Fframework.git diff --git a/multivimbroker/multivimbroker/swagger/tests.py b/multivimbroker/multivimbroker/swagger/tests.py index d5b09fe..153f766 100644 --- a/multivimbroker/multivimbroker/swagger/tests.py +++ b/multivimbroker/multivimbroker/swagger/tests.py @@ -1,4 +1,5 @@ # Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 VMware, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -10,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. import unittest -import json +# import json from django.test import Client from rest_framework import status @@ -23,7 +24,8 @@ class SampleViewTest(unittest.TestCase): pass def test_sample(self): - response = self.client.get("/openoapi/multivim/v1/swagger.json") - self.assertEqual(status.HTTP_200_OK, response.status_code, response.content) + response = self.client.get("/api/multicloud/v0/swagger.json") + self.assertEqual(status.HTTP_200_OK, + response.status_code, response.content) # resp_data = json.loads(response.content) # self.assertEqual({"status": "active"}, resp_data)