box_walk: Tester 1's guest address is read from the guest (DHCP: .101 -> .148 on 2026-10-23), like 9202's; the test pins both DHCP rows
gates / gates (push) Successful in 54s
gates / gates (push) Successful in 54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
This commit is contained in:
1 parent
3898593594
commit
3d98779869
4 files changed
+24
-15
No files matched your search
@@ -416,7 +416,8 @@ class BoxWalkTargets(unittest.TestCase):
|
||||
for name, row in bw.TARGETS.items():
|
||||
self.assertEqual(set(row), {"hp", "ssh", "jump", "guest", "base", "domain"}, name)
|
||||
self.assertTrue(row["base"] is None or row["base"].startswith("https://"), name)
|
||||
self.assertIsNone(bw.TARGETS["9202"]["base"], "9202 is DHCP: its address is read from the guest, never typed")
|
||||
for dhcp in ("9202", "tester-1"): # Tester 1's guest moved .101 -> .148 on 2026-10-23
|
||||
self.assertIsNone(bw.TARGETS[dhcp]["base"], "%s is DHCP: its address is read from the guest, never typed" % dhcp)
|
||||
|
||||
def test_the_default_stays_scratch_9202(self):
|
||||
bw = self.load({"BASE": "https://192.0.2.1"})
|
||||
@@ -429,7 +430,7 @@ class BoxWalkTargets(unittest.TestCase):
|
||||
self.assertEqual((bw.HP, bw.GUEST, bw.BASE), ("demo-hp", "9201", "https://192.168.0.155"))
|
||||
|
||||
def test_the_tester_1_box_is_reached_through_the_hp_box(self):
|
||||
bw = self.load({"TARGET": "tester-1"})
|
||||
bw = self.load({"TARGET": "tester-1", "BASE": "https://192.0.2.1"})
|
||||
self.assertEqual((bw.HP, bw.GUEST, bw.DOMAIN), ("tester-1", "9201", "enkicsifelhom.hu"))
|
||||
a = bw.ssh_args()
|
||||
self.assertEqual(a[a.index("-J") + 1], "demo-hp")
|
||||
|
||||
Reference in new issue
Block a user