7961 update tests

This commit is contained in:
Arthur 2022-10-21 10:01:12 -07:00
parent 5fbcdc721c
commit 755c18dc10
3 changed files with 84 additions and 0 deletions

View File

@ -32,6 +32,13 @@ class TenantGroupTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
"Tenant Group 6,tenant-group-6,Sixth tenant group",
)
cls.csv_update_data = (
"name,description",
"Tenant Group 7,Fourth tenant group7",
"Tenant Group 8,Fifth tenant group8",
"Tenant Group 9,Sixth tenant group9",
)
cls.bulk_edit_data = {
'description': 'New description',
}
@ -74,6 +81,13 @@ class TenantTestCase(ViewTestCases.PrimaryObjectViewTestCase):
"Tenant 6,tenant-6",
)
cls.csv_update_data = (
"name,description",
"Tenant 7,New description 7",
"Tenant 8,New description 8",
"Tenant 9,New description 9",
)
cls.bulk_edit_data = {
'group': tenant_groups[1].pk,
}
@ -109,6 +123,13 @@ class ContactGroupTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
"Contact Group 6,contact-group-6,Sixth contact group",
)
cls.csv_update_data = (
"name,description",
"Contact Group 7,Fourth contact group7",
"Contact Group 8,Fifth contact group8",
"Contact Group 9,Sixth contact group9",
)
cls.bulk_edit_data = {
'description': 'New description',
}
@ -142,6 +163,13 @@ class ContactRoleTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
"Contact Role 6,contact-role-6",
)
cls.csv_update_data = (
"name,description",
"Contact Role 7,New description 7",
"Contact Role 8,New description 8",
"Contact Role 9,New description 9",
)
cls.bulk_edit_data = {
'description': 'New description',
}
@ -182,6 +210,13 @@ class ContactTestCase(ViewTestCases.PrimaryObjectViewTestCase):
"Contact Group 1,Contact 6",
)
cls.csv_update_data = (
"name,comments",
"Contact Group 7,New comments 7",
"Contact Group 8,New comments 8",
"Contact Group 9,New comments 9",
)
cls.bulk_edit_data = {
'group': contact_groups[1].pk,
}

View File

@ -38,6 +38,13 @@ class ClusterGroupTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
"Cluster Group 6,cluster-group-6,Sixth cluster group",
)
cls.csv_update_data = (
"name,description",
"Cluster Group 7,Fourth cluster group7",
"Cluster Group 8,Fifth cluster group8",
"Cluster Group 9,Sixth cluster group9",
)
cls.bulk_edit_data = {
'description': 'New description',
}
@ -71,6 +78,13 @@ class ClusterTypeTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
"Cluster Type 6,cluster-type-6,Sixth cluster type",
)
cls.csv_update_data = (
"name,description",
"Cluster Type 7,Fourth cluster type7",
"Cluster Type 8,Fifth cluster type8",
"Cluster Type 9,Sixth cluster type9",
)
cls.bulk_edit_data = {
'description': 'New description',
}
@ -126,6 +140,13 @@ class ClusterTestCase(ViewTestCases.PrimaryObjectViewTestCase):
"Cluster 6,Cluster Type 1,active",
)
cls.csv_update_data = (
"name,comments",
"Cluster 7,New comments 7",
"Cluster 8,New comments 8",
"Cluster 9,New comments 9",
)
cls.bulk_edit_data = {
'group': clustergroups[1].pk,
'type': clustertypes[1].pk,
@ -221,6 +242,13 @@ class VirtualMachineTestCase(ViewTestCases.PrimaryObjectViewTestCase):
"Virtual Machine 6,active,Site 1,Cluster 1,",
)
cls.csv_update_data = (
"name,comments",
"Virtual Machine 7,New comments 7",
"Virtual Machine 8,New comments 8",
"Virtual Machine 9,New comments 9",
)
cls.bulk_edit_data = {
'site': sites[1].pk,
'cluster': clusters[1].pk,
@ -327,6 +355,13 @@ class VMInterfaceTestCase(ViewTestCases.DeviceComponentViewTestCase):
f"Virtual Machine 2,Interface 6,{vrfs[0].pk}",
)
cls.csv_update_data = (
f"name,description",
f"Interface 7,New description 7",
f"Interface 8,New description 8",
f"Interface 9,New description 9",
)
cls.bulk_edit_data = {
'enabled': False,
'mtu': 2000,

View File

@ -37,6 +37,13 @@ class WirelessLANGroupTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
"Wireless LAN Group 6,wireless-lan-group-6,Sixth wireless LAN group",
)
cls.csv_update_data = (
"name,description",
"Wireles sLAN Group 7,Fourth wireless LAN group7",
"Wireless LAN Group 8,Fifth wireless LAN group8",
"Wireless LAN Group 9,Sixth wireless LAN group9",
)
cls.bulk_edit_data = {
'description': 'New description',
}
@ -84,6 +91,13 @@ class WirelessLANTestCase(ViewTestCases.PrimaryObjectViewTestCase):
f"Wireless LAN Group 2,WLAN6,{tenants[2].name}",
)
cls.csv_update_data = (
f"ssid",
f"WLAN7",
f"WLAN8",
f"WLAN9",
)
cls.bulk_edit_data = {
'description': 'New description',
}