Skip to content

Commit

Permalink
Fixes netbox-community#15717: Allow VM with Site to Cluster without Site
Browse files Browse the repository at this point in the history
  • Loading branch information
nopg committed Apr 18, 2024
1 parent c4209ad commit 10c1419
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions netbox/dcim/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,6 @@ def test_device_mismatched_site_cluster(self):
# Device with site, cluster non-site should pass
Device(name='device1', site=sites[0], device_type=device_type, role=device_role, cluster=clusters[2]).full_clean()

# Device with non-site cluster only should pass
Device(name='device1', site=sites[0], device_type=device_type, role=device_role, cluster=clusters[2]).full_clean()

# Device with mismatched site & cluster should fail
with self.assertRaises(ValidationError):
Device(name='device1', site=sites[0], device_type=device_type, role=device_role, cluster=clusters[1]).full_clean()
Expand Down

0 comments on commit 10c1419

Please sign in to comment.