|
|
@@ -334,9 +334,6 @@ class VLANTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|
|
class ServiceTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|
|
model = Service
|
|
|
|
|
|
- # Disable inapplicable tests
|
|
|
- test_import_objects = None
|
|
|
-
|
|
|
# TODO: Resolve URL for Service creation
|
|
|
test_create_object = None
|
|
|
|
|
|
@@ -366,6 +363,13 @@ class ServiceTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|
|
'tags': 'Alpha,Bravo,Charlie',
|
|
|
}
|
|
|
|
|
|
+ cls.csv_data = (
|
|
|
+ "device,name,protocol,port,description",
|
|
|
+ "Device 1,Service 1,TCP,1,First service",
|
|
|
+ "Device 1,Service 2,TCP,2,Second service",
|
|
|
+ "Device 1,Service 3,UDP,3,Third service",
|
|
|
+ )
|
|
|
+
|
|
|
cls.bulk_edit_data = {
|
|
|
'protocol': ServiceProtocolChoices.PROTOCOL_UDP,
|
|
|
'port': 888,
|