Skip to content

Commit f7725d4

Browse files
fix PTR tests
1 parent 05b181d commit f7725d4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bbot/test/test_step_1/test_scan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def test_scan(
5656
assert not scan2.in_scope("1.0.0.1")
5757

5858
dns_table = {
59-
"1.1.1.1": {"PTR": ["one.one.one.one"]},
59+
"1.1.1.1.in-addr.arpa": {"PTR": ["one.one.one.one"]},
6060
"one.one.one.one": {"A": ["1.1.1.1"]},
6161
}
6262

bbot/test/test_step_2/module_tests/test_module_affiliates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class TestAffiliates(ModuleTestBase):
88
async def setup_before_prep(self, module_test):
99
module_test.mock_dns(
1010
{
11-
"8.8.8.8": {"PTR": ["dns.google"]},
11+
"8.8.8.8.in-addr.arpa": {"PTR": ["dns.google"]},
1212
"dns.google": {"A": ["8.8.8.8"], "NS": ["ns1.zdns.google"]},
1313
"ns1.zdns.google": {"A": ["1.2.3.4"]},
1414
}

bbot/test/test_step_2/module_tests/test_module_asset_inventory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TestAsset_Inventory(ModuleTestBase):
1010
async def setup_before_prep(self, module_test):
1111
module_test.mock_dns(
1212
{
13-
"127.0.0.1": {"PTR": ["www.bbottest.notreal"]},
13+
"1.0.0.127.in-addr.arpa": {"PTR": ["www.bbottest.notreal"]},
1414
"www.bbottest.notreal": {"A": ["127.0.0.1"]},
1515
}
1616
)

0 commit comments

Comments
 (0)