1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#5306: Standardize device/VM assignment for IP addresses & secrets

This commit is contained in:
Jeremy Stretch
2020-12-02 10:53:40 -05:00
parent 2b0ddd2a98
commit f504d1aa99
3 changed files with 41 additions and 12 deletions

View File

@@ -103,10 +103,10 @@ class SecretTestCase(
device = Device.objects.get(name='Device 1')
csv_data = (
"assigned_object_type,assigned_object_id,role,name,plaintext",
f"device,{device.pk},Secret Role 1,Secret 4,abcdefghij",
f"device,{device.pk},Secret Role 1,Secret 5,abcdefghij",
f"device,{device.pk},Secret Role 1,Secret 6,abcdefghij",
"device,role,name,plaintext",
f"{device.name},Secret Role 1,Secret 4,abcdefghij",
f"{device.name},Secret Role 1,Secret 5,abcdefghij",
f"{device.name},Secret Role 1,Secret 6,abcdefghij",
)
# Set the session_key cookie on the request