From 883a839692ff432fe9b3a266d1d6c1c45dd44ed5 Mon Sep 17 00:00:00 2001 From: c4ch3c4d3 Date: Fri, 21 Aug 2026 08:41:17 -0500 Subject: [PATCH] test: cover recon identity associations --- tests/test_recon.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/test_recon.py b/tests/test_recon.py index dd9c612..2113e7d 100644 --- a/tests/test_recon.py +++ b/tests/test_recon.py @@ -1164,7 +1164,6 @@ class ReconReportTest(unittest.TestCase): self.assertIn('AE:77:C0:EB:31:41', text) self.assertIn('handshake', text) self.assertNotIn('ProbeOnlySSID', text) - def test_html_report_includes_gps_when_locked(self): with mock.patch.object(server, '_gps_status_data', return_value={'lock': True, 'lat': 37.7, @@ -1190,6 +1189,19 @@ class ReconReportTest(unittest.TestCase): self.assertEqual(status, 503) +class ReconFrontendTest(unittest.TestCase): + def test_recon_view_supports_identity_and_confirmed_associations(self): + path = os.path.join(os.path.dirname(__file__), '..', 'payload', 'user', + 'remote_access', 'pager-webui', 'www', 'js', 'views.js') + with open(path, encoding='utf-8') as source_file: + source = source_file.read() + for expected in ( + "identity: true", "clients: true", "associated_ssid", + "device_identity", "associations", "Confirmed Clients", + "No confirmed clients", "reconLoadCols", "Object.assign"): + self.assertIn(expected, source) + + class ReconArchivesTest(unittest.TestCase): """Read-only history from pineapd-rotated databases (error-*-recon.db)."""