@@ -176,7 +176,7 @@ def test_update_record(self):
176176 service_type = "_type._tcp.local."
177177 service_server = "ash-1.local."
178178 service_text = b"path=/~matt1/"
179- service_address = "10.0.1 .2"
179+ service_address = "10.7.4 .2"
180180 service_v6_address = "2001:db8::1"
181181 service_v6_second_address = "6001:db8::1"
182182
@@ -304,7 +304,7 @@ def mock_record_update_incoming_msg(
304304
305305 # service SRV updated
306306 service_updated_event .clear ()
307- service_server = "ash-2 .local."
307+ service_server = "spare-rig .local."
308308 _inject_response (zeroconf , mock_record_update_incoming_msg (r .ServiceStateChange .Updated ))
309309 service_updated_event .wait (wait_time )
310310 assert service_added_count == 1
@@ -333,7 +333,7 @@ def mock_record_update_incoming_msg(
333333
334334 # service A updated
335335 service_updated_event .clear ()
336- service_address = "10.0.1 .3"
336+ service_address = "10.7.4 .3"
337337 # Verify we match on uppercase
338338 service_server = service_server .upper ()
339339 _inject_response (zeroconf , mock_record_update_incoming_msg (r .ServiceStateChange .Updated ))
@@ -346,7 +346,7 @@ def mock_record_update_incoming_msg(
346346 service_updated_event .clear ()
347347 service_server = "ash-3.local."
348348 service_text = b"path=/~matt3/"
349- service_address = "10.0.1 .3"
349+ service_address = "10.7.4 .3"
350350 _inject_response (zeroconf , mock_record_update_incoming_msg (r .ServiceStateChange .Updated ))
351351 service_updated_event .wait (wait_time )
352352 assert service_added_count == 1
@@ -602,8 +602,8 @@ def send(out, addr=const._MDNS_ADDR, port=const._MDNS_PORT, v6_flow_scope=()):
602602 0 ,
603603 0 ,
604604 {"path" : "/~paulsm/" },
605- "ash-2 .local." ,
606- addresses = [socket .inet_aton ("10.0.1 .2" )],
605+ "spare-rig .local." ,
606+ addresses = [socket .inet_aton ("10.7.4 .2" )],
607607 )
608608 task = await aio_zeroconf_registrar .async_register_service (info )
609609 await task
@@ -703,8 +703,8 @@ def send(out, addr=const._MDNS_ADDR, port=const._MDNS_PORT, v6_flow_scope=()):
703703 0 ,
704704 0 ,
705705 {"path" : "/~paulsm/" },
706- "ash-2 .local." ,
707- addresses = [socket .inet_aton ("10.0.1 .2" )],
706+ "spare-rig .local." ,
707+ addresses = [socket .inet_aton ("10.7.4 .2" )],
708708 )
709709 task = await aio_zeroconf_registrar .async_register_service (info )
710710 await task
@@ -875,8 +875,8 @@ def on_service_state_change(zeroconf, service_type, state_change, name):
875875 0 ,
876876 0 ,
877877 {"path" : "/~paulsm/" },
878- "ash-2 .local." ,
879- addresses = [socket .inet_aton ("10.0.1 .2" )],
878+ "spare-rig .local." ,
879+ addresses = [socket .inet_aton ("10.7.4 .2" )],
880880 )
881881
882882 zc .register_service (info_service )
@@ -915,9 +915,9 @@ def on_service_state_change(zeroconf, service_type, state_change, name):
915915 browser = ServiceBrowser (zc , type_ , [on_service_state_change ])
916916
917917 desc = {"path" : "/~paulsm/" }
918- address_parsed = "10.0.1 .2"
918+ address_parsed = "10.7.4 .2"
919919 address = socket .inet_aton (address_parsed )
920- info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "ash-2 .local." , addresses = [address ])
920+ info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "spare-rig .local." , addresses = [address ])
921921
922922 _inject_response (
923923 zc ,
@@ -986,9 +986,9 @@ def update_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-de
986986 browser = r .ServiceBrowser (zc , type_ , None , listener )
987987
988988 desc = {"path" : "/~paulsm/" }
989- address_parsed = "10.0.1 .2"
989+ address_parsed = "10.7.4 .2"
990990 address = socket .inet_aton (address_parsed )
991- info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "ash-2 .local." , addresses = [address ])
991+ info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "spare-rig .local." , addresses = [address ])
992992
993993 _inject_response (
994994 zc ,
@@ -1047,9 +1047,9 @@ def update_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-de
10471047 browser = r .ServiceBrowser (zc , type_ , None , listener )
10481048
10491049 desc = {"path" : "/~paulsm/" }
1050- address_parsed = "10.0.1 .2"
1050+ address_parsed = "10.7.4 .2"
10511051 address = socket .inet_aton (address_parsed )
1052- info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "ash-2 .local." , addresses = [address ])
1052+ info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "spare-rig .local." , addresses = [address ])
10531053
10541054 _inject_response (
10551055 zc ,
@@ -1106,8 +1106,8 @@ def update_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-de
11061106 browser = r .ServiceBrowser (zc , type_ , None , listener )
11071107 try :
11081108 desc = {"path" : "/~paulsm/" }
1109- address = socket .inet_aton ("10.0.1 .2" )
1110- info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "ash-2 .local." , addresses = [address ])
1109+ address = socket .inet_aton ("10.7.4 .2" )
1110+ info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "spare-rig .local." , addresses = [address ])
11111111
11121112 _inject_response (
11131113 zc ,
@@ -1438,17 +1438,17 @@ def update_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-de
14381438 browser = r .ServiceBrowser (zc , type_ , None , listener )
14391439
14401440 desc = {"path" : "/~paulsm/" }
1441- address_parsed = "10.0.1 .2"
1441+ address_parsed = "10.7.4 .2"
14421442 address = socket .inet_aton (address_parsed )
1443- info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "ash-2 .local." , addresses = [address ])
1443+ info = ServiceInfo (type_ , registration_name , 80 , 0 , 0 , desc , "spare-rig .local." , addresses = [address ])
14441444 should_not_match = ServiceInfo (
14451445 not_match_type_ ,
14461446 not_match_registration_name ,
14471447 80 ,
14481448 0 ,
14491449 0 ,
14501450 desc ,
1451- "ash-2 .local." ,
1451+ "spare-rig .local." ,
14521452 addresses = [address ],
14531453 )
14541454
@@ -1526,7 +1526,7 @@ def update_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-de
15261526 browser = r .ServiceBrowser (zc , type_ , None , listener )
15271527
15281528 desc = {"path" : "/~paul2/" }
1529- address_parsed = "10.0.1 .3"
1529+ address_parsed = "10.7.4 .3"
15301530 address = socket .inet_aton (address_parsed )
15311531 info = ServiceInfo (
15321532 type_ ,
@@ -1679,8 +1679,8 @@ def send(out, addr=const._MDNS_ADDR, port=const._MDNS_PORT, v6_flow_scope=()):
16791679 0 ,
16801680 0 ,
16811681 {"path" : "/~paulsm/" },
1682- "ash-2 .local." ,
1683- addresses = [socket .inet_aton ("10.0.1 .2" )],
1682+ "spare-rig .local." ,
1683+ addresses = [socket .inet_aton ("10.7.4 .2" )],
16841684 )
16851685 task = await aio_zeroconf_registrar .async_register_service (info )
16861686 await task
@@ -1746,8 +1746,8 @@ def send(out, addr=const._MDNS_ADDR, port=const._MDNS_PORT, v6_flow_scope=()):
17461746 0 ,
17471747 0 ,
17481748 {"path" : "/~paulsm/" },
1749- "ash-2 .local." ,
1750- addresses = [socket .inet_aton ("10.0.1 .2" )],
1749+ "spare-rig .local." ,
1750+ addresses = [socket .inet_aton ("10.7.4 .2" )],
17511751 )
17521752 task = await aio_zeroconf_registrar .async_register_service (info )
17531753 await task
0 commit comments