Skip to content

Commit 1d5e7fc

Browse files
committed
debug
1 parent acfbf25 commit 1d5e7fc

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

test/fixtures/networking_firewalls_123.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"updated":"2018-01-01T00:01:01",
66
"status":"enabled",
77
"rules":{
8+
"version":2,
9+
"fingerprint":"4ef67a29",
810
"outbound":[],
911
"outbound_policy":"DROP",
1012
"inbound":[],
11-
"inbound_policy":"DROP",
12-
"version":2,
13-
"fingerprint":"4ef67a29"
13+
"inbound_policy":"DROP"
1414
},
1515
"tags":[]
16-
}
16+
}

test/unit/fixtures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def get_fixture(self, url):
2020
"""
2121
Returns the test fixture data loaded at the given URL
2222
"""
23+
print(f"Getting fixture for URL: {url}")
2324
return self.fixtures[url]
2425

2526
def _load_fixtures(self):
@@ -49,3 +50,4 @@ def _load_fixtures(self):
4950
for obj in data["data"]:
5051
if "id" in obj: # tags, obj-buckets don't have ids
5152
self.fixtures[fixture_url + "/" + str(obj["id"])] = obj
53+
print(f"Loaded fixtures for URLs: {list(self.fixtures.keys())}")

test/unit/objects/firewall_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class FirewallTest(ClientBaseCase):
99
Tests methods of the Firewall class
1010
"""
1111

12-
def test_get_rules(self):
12+
def test_get_rules_from_firewall(self):
1313
"""
1414
Test that the rules can be retrieved from a Firewall
1515
"""
@@ -20,8 +20,8 @@ def test_get_rules(self):
2020
self.assertEqual(rules.inbound_policy, "DROP")
2121
self.assertEqual(len(rules.outbound), 0)
2222
self.assertEqual(rules.outbound_policy, "DROP")
23-
self.assertEqual(rules.version, 2)
2423
self.assertEqual(rules.fingerprint, "4ef67a29")
24+
self.assertEqual(rules.version, 2)
2525

2626
def test_update_rules(self):
2727
"""

0 commit comments

Comments
 (0)