# See the License for the specific language governing permissions and
# limitations under the License.
-from rest_framework import status
+import json
+
+import mock
from django.test import TestCase
+from rest_framework import status
from rest_framework.test import APIClient
-import mock
-import json
+from lcm.ns.biz.ns_instant import BuildInWorkflowThread
+from lcm.ns.biz.ns_instant import InstantNSService
from lcm.pub.database.models import NSInstModel
-from lcm.ns.ns_instant import InstantNSService
-from lcm.ns.ns_instant import BuildInWorkflowThread
from lcm.pub.utils import restcall
}
self.nsd_model = json.dumps({
"model": json.dumps({
- "vnfs": [{
+ "ns_vnfs": [{
"vnf_id": "vnf1",
"properties": {
"id": "vnfd1",
"vl_id": "5"
}]
}],
- "vls": [{
+ "ns_vls": [{
"vl_id": "5",
"properties": {}
}]
})
})
self.updated_nsd_model = {
- "vnfs": [{
+ "ns_vnfs": [{
"dependencies": [{
"vl_id": "5"
}],
"id": "vnfd1"
}
}],
- "vls": [{
+ "ns_vls": [{
"vl_id": "5",
"properties": {
"location_info": {