Home
last modified time | relevance | path

Searched refs:server (Results 1 – 25 of 63) sorted by relevance

123

/openthread-3.6.0/tests/scripts/thread-cert/
Dtest_srp_lease.py72 server = self.nodes[SERVER]
79 server.srp_server_set_enabled(True)
80 server.srp_server_set_lease_range(LEASE, LEASE, KEY_LEASE, KEY_LEASE)
81 server.start()
83 self.assertEqual(server.get_state(), 'leader')
101 self.check_host_and_service(server, client)
112 self.assertEqual(server.srp_server_get_host('my-host')['deleted'], 'true')
113 … self.assertEqual(server.srp_server_get_service('my-service', '_ipps._tcp')['deleted'], 'true')
119 self.check_host_and_service(server, client)
130 self.assertEqual(len(server.srp_server_get_hosts()), 0)
[all …]
Dtest_srp_name_conflicts.py76 server = self.nodes[SERVER]
84 server.srp_server_set_enabled(True)
85 server.start()
87 self.assertEqual(server.get_state(), 'leader')
124 server_service = server.srp_server_get_services()[0]
133 server_host = server.srp_server_get_hosts()[0]
155 self.assertEqual(len(server.srp_server_get_services()), 1)
156 self.assertEqual(len(server.srp_server_get_hosts()), 1)
176 self.assertEqual(len(server.srp_server_get_services()), 1)
177 self.assertEqual(len(server.srp_server_get_hosts()), 1)
[all …]
Dtest_srp_server_reboot_port.py70 server = self.nodes[SERVER]
81 server.srp_server_set_enabled(True)
82 server.start()
84 self.assertEqual(server.get_state(), 'router')
93 self.assertTrue(server.has_ipaddr(client.srp_client_get_server_address()))
99 old_port = server.get_srp_server_port()
100 server.srp_server_set_enabled(False)
102 server.srp_server_set_enabled(True)
104 self.assertEqual(old_port, server.get_srp_server_port())
113 self.check_host_and_service(server, client, '2001::1')
[all …]
Dtest_srp_ttl.py69 server = self.nodes[SERVER]
76 server.srp_server_set_enabled(True)
77 server.srp_server_set_lease_range(120, 240, KEY_LEASE, KEY_LEASE)
78 server.start()
80 self.assertEqual(server.get_state(), 'leader')
100 server.srp_server_set_ttl_range(120, 240)
101 server.srp_server_set_lease_range(120, 240, KEY_LEASE, KEY_LEASE)
110 server.srp_server_set_ttl_range(60, 120)
111 server.srp_server_set_lease_range(120, 240, KEY_LEASE, KEY_LEASE)
120 server.srp_server_set_ttl_range(60, 120)
[all …]
Dtest_dnssd.py78 server = self.nodes[SERVER]
86 server.start()
88 self.assertEqual(server.get_state(), 'leader')
89 server.srp_server_set_enabled(True)
106 …self._config_srp_client_services(client1, server, 'ins1', 'host1', 11111, 1, 1, client1_addrs, ",_…
107 … self._config_srp_client_services(client2, server, 'ins2', 'HOST2', 22222, 2, 2, client2_addrs)
108 …self._config_srp_client_services(client3, server, 'ins3', 'host3', 33333, 3, 3, client3_addrs, ",_…
113 answers = client1.dns_resolve(f"host1.{DOMAIN}".upper(), server.get_mleid(), 53)
117 answers = client1.dns_resolve(f"host2.{DOMAIN}", server.get_mleid(), 53)
173 … service_instances = client1.dns_browse(f'{SERVICE}.{DOMAIN}'.upper(), server.get_mleid(), 53)
[all …]
Dtest_srp_server_anycast_mode.py89 server = self.nodes[SERVER]
96 server.start()
98 self.assertEqual(server.get_state(), 'leader')
115 server.srp_server_set_addr_mode(addr_mode)
118 server.srp_server_set_anycast_seq_num(SRP_SERVER_ANYCAST_SEQ_NUM)
119 … self.assertEqual(server.srp_server_get_anycast_seq_num(), SRP_SERVER_ANYCAST_SEQ_NUM)
121 self.assertEqual(server.srp_server_get_addr_mode(), addr_mode)
122 server.srp_server_set_enabled(True)
153 server_alocs = server.get_ip6_address(config.ADDRESS_TYPE.ALOC)
158 self.assertIn(client.srp_client_get_server_address(), server.get_mleid())
[all …]
Dtest_srp_register_single_service.py70 server = self.nodes[SERVER]
77 server.srp_server_set_enabled(True)
78 server.start()
80 self.assertEqual(server.get_state(), 'leader')
99 self.check_host_and_service(server, client, '2001::1')
113 server_services = server.srp_server_get_services()
121 server_hosts = server.srp_server_get_hosts()
140 self.check_host_and_service(server, client, '2001::1')
149 self.check_host_and_service(server, client, '2001::2')
164 server_services = server.srp_server_get_services()
[all …]
Dtest_srp_auto_host_address.py68 server = self.nodes[SERVER]
78 server.start()
80 self.assertEqual(server.get_state(), 'router')
85 server.srp_server_set_enabled(True)
107 self.check_registered_addresses(client, server)
118 self.check_registered_addresses(client, server)
129 self.check_registered_addresses(client, server)
142 self.check_registered_addresses(client, server)
154 self.check_registered_addresses(client, server)
167 self.check_registered_addresses(client, server)
[all …]
Dtest_srp_client_remove_host.py68 server = self.nodes[SERVER]
74 server.start()
76 self.assertEqual(server.get_state(), 'leader')
82 server.srp_server_set_enabled(True)
104 server_hosts = server.srp_server_get_hosts()
112 server_services = server.srp_server_get_services()
135 server_services = server.srp_server_get_services()
150 server_hosts = server.srp_server_get_hosts()
156 server_services = server.srp_server_get_services()
171 self.assertEqual(len(server.srp_server_get_services()), 0)
[all …]
Dtest_srp_sub_type.py68 server = self.nodes[SERVER]
73 server.start()
75 self.assertEqual(server.get_state(), 'leader')
81 server.srp_server_set_enabled(True)
91 self.check_service_on_client_and_server(server, client)
100 server_services = server.srp_server_get_services()
112 self.check_service_on_client_and_server(server, client)
114 def check_service_on_client_and_server(self, server, client): argument
127 server_services = server.srp_server_get_services()
Dtest_dnssd_name_with_special_chars.py72 server = self.nodes[SERVER]
77 server.start()
79 self.assertEqual(server.get_state(), 'leader')
85 server.srp_server_set_enabled(True)
94 self.__check_service_discovery(server, client)
96 def __check_service_discovery(self, server, client): argument
98 client.dns_set_config(server.get_rloc())
Dtest_srp_client_change_lease.py78 server = self.nodes[SERVER]
85 server.srp_server_set_enabled(True)
86 server.srp_server_set_lease_range(LEASE_TIME, LEASE_TIME, KEY_LEASE_TIME, KEY_LEASE_TIME)
87 server.start()
89 self.assertEqual(server.get_state(), 'leader')
107 self.check_host_and_service(server, client)
109server.srp_server_set_lease_range(NEW_LEASE_TIME, NEW_LEASE_TIME, KEY_LEASE_TIME, KEY_LEASE_TIME)
140 def check_host_and_service(self, server, client): argument
Dtest_srp_many_services_mtu_check.py72 server = self.nodes[SERVER]
77 server.start()
79 self.assertEqual(server.get_state(), 'leader')
85 server.srp_server_set_enabled(True)
119 server_services = server.srp_server_get_services()
133 server_services = server.srp_server_get_services()
Dtest_srp_register_500_services.py99 server = self.nodes[SERVER]
114 server.srp_server_set_enabled(True)
115 server.start()
117 self.assertEqual(server.get_state(), 'leader')
150 self._check_server_hosts_and_services(server)
176 def _check_server_hosts_and_services(self, server): argument
177 server_services = server.srp_server_get_services()
Dtest_srp_register_services_diff_lease.py70 server = self.nodes[SERVER]
76 server.start()
78 self.assertEqual(server.get_state(), 'leader')
84 server.srp_server_set_enabled(True)
102 services = server.srp_server_get_services()
120 server_services = server.srp_server_get_services()
148 server_services = server.srp_server_get_services()
162 server_services = server.srp_server_get_services()
184 server_services = server.srp_server_get_services()
206 server_services = server.srp_server_get_services()
[all …]
/openthread-3.6.0/src/cli/
DREADME_SRP_SERVER.md25 Usage: `srp server help`
27 Print SRP server help menu.
30 > srp server help
47 Usage: `srp server addrmode [unicast|anycast]`
49 Get or set the address mode used by the SRP server.
51 Address mode specifies how the address and port number are determined by the SRP server and this is…
56 > srp server addrmode
64 > srp server addrmode anycast
67 > srp server addrmode
74 Usage: `srp server auto [enable|disable]`
[all …]
DREADME_SRP_CLIENT.md13 - [server](#server)
162 Set host name (can be set when the host is removed or not yet registered with server).
224 - `Registered`: item is registered with server.
231 Remove host info and all services from server.
234 …boolean value indicating whether or not to send an update message to the server when host info is …
245 …o and all services on client (unlike `host remove`, with `host clear` no update is sent to server).
292 ### server subsection
294 Usage: `srp client server`
296 Print the server socket address (IPv6 address and port number).
299 > srp client server
[all …]
DREADME_SRP.md45 > srp server enable
120 Check the host & service on the server node:
123 > srp server host
128 > srp server service
154 Confirm on the server node that the service has been removed:
157 > srp server service
174 Confirm on the server node that no host or service entries are listed:
177 > srp server host
179 > srp server service
/openthread-3.6.0/tests/scripts/thread-cert/border_router/
Dtest_advertising_proxy.py77 server = self.nodes[BR]
80 server.srp_server_set_enabled(False)
84 self.assertEqual(server.srp_server_get_state(), 'disabled')
85 server.srp_server_set_enabled(True)
86 server.srp_server_set_lease_range(LEASE, LEASE, KEY_LEASE, KEY_LEASE)
87 server.start()
89 self.assertEqual('leader', server.get_state())
90 self.assertEqual(server.srp_server_get_state(), 'running')
107 self.check_host_and_service(server, client, '2001::1', 'my-service')
108 self.check_host_and_service(server, client, '2001::1', 'my-service-1')
[all …]
Dtest_plat_udp_accessiblity.py93 def _testDhcp6ClientAfterReset(self, server, client, reset_device): argument
97 server.add_prefix(DHCP6_PREFIX, 'pdros')
99 server.register_netdata()
112 if reset_device == server:
114 server.add_prefix(DHCP6_PREFIX, 'pdros')
116 server.register_netdata()
Dtest_dnssd_instance_name_with_space.py84 server = br1 = self.nodes[BR1]
95 server.srp_server_set_enabled(True)
109 server_addr = server.get_ip6_address(config.ADDRESS_TYPE.OMR)[0]
119 … self._verify_service_browse_result(client.dns_browse(SERVICE_FULL_NAME, server=br1.get_rloc()))
120 … self._verify_service_browse_result(client.dns_browse(SERVICE_FULL_NAME, server=br2.get_rloc()))
121 …self._verify_service_browse_result(client.dns_browse(SERVICE_FULL_NAME.lower(), server=br2.get_rlo…
/openthread-3.6.0/tests/toranj/cli/
Dtest-400-srp-client-server.py46 server = cli.Node() variable
54 server.form('srp-test')
55 verify(server.get_state() == 'leader')
57 client.join(server)
61 verify(server.srp_server_get_state() == 'disabled')
62 verify(server.srp_server_get_addr_mode() == 'unicast')
67 server.srp_server_enable()
75 verify(len(server.srp_server_get_hosts()) > 0)
84 verify(client.srp_client_get_server_address() == server.get_mleid_ip_addr())
102 verify(server.srp_server_get_state() == 'running')
[all …]
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ecjpake.data13 ECJPAKE round one: server, valid
184 ECJPAKE round two server: valid
187 ECJPAKE round two server: trailing byte
190 ECJPAKE round two server: no data
193 ECJPAKE round two server: length of forst point too small
196 ECJPAKE round two server: length of first point too big
199 ECJPAKE round two server: no first point data
202 ECJPAKE round two server: first point is zero
205 ECJPAKE round two server: unknown first point format
208 ECJPAKE round two server: nothing after first point
[all …]
/openthread-3.6.0/tools/otci/tests/
Dtest_otci.py346 def _test_otci_dns(self, client: OTCI, server: OTCI):
353 client.dns_set_config(server=(server.get_ipaddr_rloc(), 53),
359 'server': (server.get_ipaddr_rloc(), 53),
376 def _test_otci_srp(self, client: OTCI, server: OTCI):
377 self.assertEqual('disabled', server.srp_server_get_state())
378 self.assertEqual('default.service.arpa.', server.srp_server_get_domain())
379 server.srp_server_set_domain('example1.com')
380 self.assertEqual('example1.com.', server.srp_server_get_domain())
381 server.srp_server_set_domain('example2.com.')
382 self.assertEqual('example2.com.', server.srp_server_get_domain())
[all …]
/openthread-3.6.0/tools/harness-simulation/posix/sniffer_sim/
Dsniffer.py220 server = grpc.server(futures.ThreadPoolExecutor(max_workers=2))
221 sniffer_pb2_grpc.add_SnifferServicer_to_server(SnifferServicer(max_nodes_num), server)
223 server.add_insecure_port(address_port)
225 server.start()
228 server.stop(1)
233 server.wait_for_termination()

123