From b4520641743fe186ed42888160d8298e4f9aeaa6 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Thu, 28 Sep 2023 13:32:05 -0500 Subject: [PATCH] resolve issues with tests and old references --- nautobot_firewall_models/tests/test_api.py | 2 +- nautobot_firewall_models/tests/test_capirca.py | 4 ++-- nautobot_firewall_models/tests/test_filters.py | 4 ++-- nautobot_firewall_models/tests/test_models.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nautobot_firewall_models/tests/test_api.py b/nautobot_firewall_models/tests/test_api.py index f85b934e..9ceeb6d4 100644 --- a/nautobot_firewall_models/tests/test_api.py +++ b/nautobot_firewall_models/tests/test_api.py @@ -365,7 +365,7 @@ def setUpTestData(cls): """Create test data for API calls.""" fixtures.assign_policies() policy = models.Policy.objects.first() - location = Location.objects.get(name="DFW") + location = Location.objects.get(name="DFW02") dev_role = Role.objects.get(name="WAN") status = Status.objects.get(name="Active") platform = Platform.objects.get(name="Juniper") diff --git a/nautobot_firewall_models/tests/test_capirca.py b/nautobot_firewall_models/tests/test_capirca.py index 53309652..d6c93418 100644 --- a/nautobot_firewall_models/tests/test_capirca.py +++ b/nautobot_firewall_models/tests/test_capirca.py @@ -286,7 +286,7 @@ def setUp(self) -> None: create_capirca_env() self.active = Status.objects.get(name="Active") self.decomm = Status.objects.get(name="Decommissioned") - self.device_obj = Device.objects.get(name="DFW-WAN00") + self.device_obj = Device.objects.get(name="DFW02-WAN00") namespace = Namespace.objects.get(name="global") self.dev_name = self.device_obj.platform.network_driver @@ -629,7 +629,7 @@ class TestDevicePolicyToCapirca(TestCase): def setUp(self) -> None: """Setup test data.""" create_capirca_env() - self.device_obj = Device.objects.get(name="DFW-WAN00") + self.device_obj = Device.objects.get(name="DFW02-WAN00") @skip("Not implemented until policy method provided to merge queries provided") def test_dynamic_group_and_device(self): diff --git a/nautobot_firewall_models/tests/test_filters.py b/nautobot_firewall_models/tests/test_filters.py index d160f8e5..b69b96ef 100644 --- a/nautobot_firewall_models/tests/test_filters.py +++ b/nautobot_firewall_models/tests/test_filters.py @@ -18,8 +18,8 @@ class CapircaPolicyModelTestCase(TestCase): def setUp(self): """Set up base objects.""" create_capirca_env() - self.dev01 = Device.objects.get(name="DFW-WAN00") - dev02 = Device.objects.get(name="HOU-WAN00") + self.dev01 = Device.objects.get(name="DFW02-WAN00") + dev02 = Device.objects.get(name="HOU02-WAN00") models.CapircaPolicy.objects.create(device=self.dev01) models.CapircaPolicy.objects.create(device=dev02) diff --git a/nautobot_firewall_models/tests/test_models.py b/nautobot_firewall_models/tests/test_models.py index 21f059f7..b77f29a4 100644 --- a/nautobot_firewall_models/tests/test_models.py +++ b/nautobot_firewall_models/tests/test_models.py @@ -346,7 +346,7 @@ def setUp(self) -> None: def test_capirca_creates_model(self): """Test method to create model.""" - device_obj = Device.objects.get(name="DFW-WAN00") + device_obj = Device.objects.get(name="DFW02-WAN00") cap_obj = CapircaPolicy.objects.create(device=device_obj) svc = "PGSQL = 5432/tcp" self.assertIn(svc, cap_obj.svc)