# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
-# limitations under the License.
\ No newline at end of file
+# limitations under the License.
FAILED="failed", TERMINATING="terminating", SCALING="scaling", OPERATING="operating",
UPDATING="updating", HEALING="healing")
+# inst_req_data
inst_req_data = {
"flavourId": "flavour_1",
"instantiationLevelId": "instantiationLevel_1",
}]}
}
+
+# vnfd_rawdata
vnfd_rawdata = {
"rawData": {
"instance": {
}
}
-
+# vnfd_model_dict
vnfd_model_dict = {
'metadata': {
'vendor': u'zte',
],
}
-c1_data_get_tenant_id = { # get_tenant_id
+# get_tenant_id
+c1_data_get_tenant_id = {
"tenants": [
{
"id": "1",
}
]
}
+
+# create_volume
c2_data_create_volume = {
"id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
"name": "volume1",
"type": None,
"size": 40
}
-c3_data_get_volume = { # get_volume
+
+# get_volume
+c3_data_get_volume = {
"status": "available",
"name": "wangsong",
"attachments": [
"id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
"size": 40
}
-c4_data_create_network = { # create_network
+
+# create_network
+c4_data_create_network = {
"returnCode": 0,
"vimId": "11111",
"vimName": "11111",
"physicalNetwork": "ctrl",
"routerExternal": False
}
+
+# create_subnet
c5_data_create_subnet = {
"returnCode": 0,
"vimId": "11111",
],
"hostRoutes": []
}
+
+# create_ports
c6_data_create_port = {
"returnCode": 0,
"vimId": "11111",
"vnicType": "normal",
"securityGroups": ""
}
+
+# create_flavor
c7_data_create_flavor ={
"returnCode": 0,
"vimId": "11111",
"extraSpecs": "testtt"
}
+# list_image
c8_data_list_image = {
"vimid": "",
"vimname": "",
}
]
}
+
+# create_vm
c9_data_create_vm = {
"returnCode": 1,
"id": "3c9eebdbbfd345658269340b9ea6fb73",
"serverGroup": "fdvfdv",
"status": "ACTIVE"
}
+
+# get_vm
c10_data_get_vm = {
"returnCode": 1,
"id": "3c9eebdbbfd345658269340b9ea6fb73",
}
}
}
-}
\ No newline at end of file
+}
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
-# limitations under the License.
\ No newline at end of file
+# limitations under the License.
-# # Copyright 2017 ZTE Corporation.
-# #
-# # Licensed under the Apache License, Version 2.0 (the "License");
-# # you may not use this file except in compliance with the License.
-# # You may obtain a copy of the License at
-# #
-# # http://www.apache.org/licenses/LICENSE-2.0
-# #
-# # Unless required by applicable law or agreed to in writing, software
-# # distributed under the License is distributed on an "AS IS" BASIS,
-# # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# # See the License for the specific language governing permissions and
-# # limitations under the License.
+# Copyright 2017 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
import json
import uuid
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
import json
import uuid
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
from django.test import TestCase, Client
from rest_framework import status
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
import json
import logging
import os
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
-# limitations under the License.
\ No newline at end of file
+# limitations under the License.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
import logging
from lcm.pub.aaiapi.aai import delete_vnf
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
import json
import logging
import traceback
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
import json
import logging
import uuid
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
import json
import logging
import traceback
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
# See the License for the specific language governing permissions and\r
# limitations under the License.\r
+\r
import json\r
import logging\r
\r
class NFLCMException(Exception):
- pass
\ No newline at end of file
+ pass
if 'test' in sys.argv:
from lcm.pub.config import config
config.REG_TO_MSB_WHEN_START = False
+
DATABASES = {}
DATABASES['default'] = {
'ENGINE': 'django.db.backends.sqlite3',