Skip to content

Commit

Permalink
resolve issues with tests and old references
Browse files Browse the repository at this point in the history
  • Loading branch information
whitej6 committed Sep 28, 2023
1 parent 44b9fe0 commit b452064
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nautobot_firewall_models/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions nautobot_firewall_models/tests/test_capirca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions nautobot_firewall_models/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b452064

Please sign in to comment.