|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Public Member Functions | |
| setUpClass (cls) | |
| tearDownClass (cls) | |
| setUp (self) | |
| tearDown (self) | |
| keep (self, c) | |
| runner (self) | |
| feed (self, n, base) | |
| test_a_attach_triggers_post_retrieve_query (self) | |
| test_b_bad_key_and_scope_refused (self) | |
| test_c_websocket_and_udp_modules (self) | |
| test_d_takeover_by_same_device_then_detach (self) | |
| test_e_lease_expiry_and_reattach (self) | |
Public Attributes | |
| dir = tempfile.mkdtemp(prefix="py-remotemodule-", dir=os.environ.get("PSY_TEST_DIR")) | |
| log = open(os.path.join(cls.dir, "psyclone.log"), "w") | |
| proc | |
| key = probe.machine_key("pybot", "modules.attach.Asr,modules.attach.Tts,modules.attach.Vad") | |
| tts_key = probe.machine_key("pytts", "modules.attach.Tts") | |
| list | clients = [] |
Definition at line 178 of file test_remote_module.py.
| test_remote_module.Live.feed | ( | self, | |
| n, | |||
| base ) |
Definition at line 228 of file test_remote_module.py.
References keep().
Referenced by test_a_attach_triggers_post_retrieve_query(), test_remote_module_dynamic.Live.test_a_dynamic_contract_under_allow(), test_remote_module_dynamic.Live.test_b_resume_after_a_dropped_link(), test_remote_module_dynamic.Live.test_c_dropped_beyond_the_buffer(), test_c_websocket_and_udp_modules(), test_remote_module_dynamic.Live.test_d_lease_expiry_resends_the_desired_set(), and test_d_takeover_by_same_device_then_detach().
| test_remote_module.Live.keep | ( | self, | |
| c ) |
Definition at line 220 of file test_remote_module.py.
References cmlabs::RequestGateway.clients, test_client.TcpEcho.clients, test_keepalive.KaTcp.clients, and clients.
Referenced by feed(), test_a_attach_triggers_post_retrieve_query(), test_remote_module_dynamic.Live.test_a_dynamic_contract_under_allow(), test_b_bad_key_and_scope_refused(), test_remote_module_dynamic.Live.test_b_resume_after_a_dropped_link(), test_remote_module_dynamic.Live.test_c_dropped_beyond_the_buffer(), test_c_websocket_and_udp_modules(), test_remote_module_dynamic.Live.test_d_lease_expiry_resends_the_desired_set(), test_d_takeover_by_same_device_then_detach(), and test_e_lease_expiry_and_reattach().
| test_remote_module.Live.runner | ( | self | ) |
Handlers off the reader thread, so they may call the blocking operations.
Definition at line 224 of file test_remote_module.py.
| test_remote_module.Live.setUp | ( | self | ) |
Definition at line 213 of file test_remote_module.py.
| test_remote_module.Live.setUpClass | ( | cls | ) |
Definition at line 180 of file test_remote_module.py.
| test_remote_module.Live.tearDown | ( | self | ) |
Definition at line 216 of file test_remote_module.py.
References cmlabs::RequestGateway.clients, test_client.TcpEcho.clients, test_keepalive.KaTcp.clients, and clients.
| test_remote_module.Live.tearDownClass | ( | cls | ) |
Definition at line 203 of file test_remote_module.py.
References cmlabs::MessageIndex.dir, dir, log, and proc.
| test_remote_module.Live.test_a_attach_triggers_post_retrieve_query | ( | self | ) |
Definition at line 234 of file test_remote_module.py.
References cmsdk::EventStreamFrameParser.feed(), cmsdk::EventStreamFrameParser.feed(), cmsdk::HTTPChunkedDecoder.feed(), cmsdk::HTTPChunkedDecoder.feed(), cmsdk::SSEEventParser.feed(), cmsdk::SSEEventParser.feed(), feed(), keep(), cmlabs::ContextMapEntry.key, cmlabs::CrankMapEntry.key, cmlabs::FilterSpec.key, cmlabs::ProcessMapEntry.key, cmlabs::QuerySpec.key, cmlabs::QueueMapEntry.key, cmlabs::RequestMapEntry.key, cmlabs::RetrieveSpec.key, cmlabs::TopicMapEntry.key, cmlabs::TrackPlayerMessageEntry.key, cmlabs::TypeMapEntry.key, Entry.key, key, and test_remote_module.wait_for().
| test_remote_module.Live.test_b_bad_key_and_scope_refused | ( | self | ) |
Definition at line 270 of file test_remote_module.py.
References keep(), cmlabs::ContextMapEntry.key, cmlabs::CrankMapEntry.key, cmlabs::FilterSpec.key, cmlabs::ProcessMapEntry.key, cmlabs::QuerySpec.key, cmlabs::QueueMapEntry.key, cmlabs::RequestMapEntry.key, cmlabs::RetrieveSpec.key, cmlabs::TopicMapEntry.key, cmlabs::TrackPlayerMessageEntry.key, cmlabs::TypeMapEntry.key, Entry.key, key, and tts_key.
| test_remote_module.Live.test_c_websocket_and_udp_modules | ( | self | ) |
Definition at line 281 of file test_remote_module.py.
References cmsdk::EventStreamFrameParser.feed(), cmsdk::EventStreamFrameParser.feed(), cmsdk::HTTPChunkedDecoder.feed(), cmsdk::HTTPChunkedDecoder.feed(), cmsdk::SSEEventParser.feed(), cmsdk::SSEEventParser.feed(), feed(), keep(), cmlabs::ContextMapEntry.key, cmlabs::CrankMapEntry.key, cmlabs::FilterSpec.key, cmlabs::ProcessMapEntry.key, cmlabs::QuerySpec.key, cmlabs::QueueMapEntry.key, cmlabs::RequestMapEntry.key, cmlabs::RetrieveSpec.key, cmlabs::TopicMapEntry.key, cmlabs::TrackPlayerMessageEntry.key, cmlabs::TypeMapEntry.key, Entry.key, key, tts_key, and test_remote_module.wait_for().
| test_remote_module.Live.test_d_takeover_by_same_device_then_detach | ( | self | ) |
Definition at line 298 of file test_remote_module.py.
References cmsdk::EventStreamFrameParser.feed(), cmsdk::EventStreamFrameParser.feed(), cmsdk::HTTPChunkedDecoder.feed(), cmsdk::HTTPChunkedDecoder.feed(), cmsdk::SSEEventParser.feed(), cmsdk::SSEEventParser.feed(), feed(), keep(), cmlabs::ContextMapEntry.key, cmlabs::CrankMapEntry.key, cmlabs::FilterSpec.key, cmlabs::ProcessMapEntry.key, cmlabs::QuerySpec.key, cmlabs::QueueMapEntry.key, cmlabs::RequestMapEntry.key, cmlabs::RetrieveSpec.key, cmlabs::TopicMapEntry.key, cmlabs::TrackPlayerMessageEntry.key, cmlabs::TypeMapEntry.key, Entry.key, key, and test_remote_module.wait_for().
| test_remote_module.Live.test_e_lease_expiry_and_reattach | ( | self | ) |
Definition at line 320 of file test_remote_module.py.
References keep(), and test_remote_module.wait_for().
| list test_remote_module.Live.clients = [] |
Definition at line 214 of file test_remote_module.py.
Referenced by keep(), test_remote_module_dynamic.Live.keep(), tearDown(), and test_remote_module_dynamic.Live.tearDown().
| test_remote_module.Live.dir = tempfile.mkdtemp(prefix="py-remotemodule-", dir=os.environ.get("PSY_TEST_DIR")) |
Definition at line 181 of file test_remote_module.py.
Referenced by tearDownClass(), and test_remote_module_dynamic.Live.tearDownClass().
| test_remote_module.Live.key = probe.machine_key("pybot", "modules.attach.Asr,modules.attach.Tts,modules.attach.Vad") |
Definition at line 198 of file test_remote_module.py.
Referenced by test_a_attach_triggers_post_retrieve_query(), test_b_bad_key_and_scope_refused(), test_c_websocket_and_udp_modules(), and test_d_takeover_by_same_device_then_detach().
| test_remote_module.Live.log = open(os.path.join(cls.dir, "psyclone.log"), "w") |
Definition at line 185 of file test_remote_module.py.
Referenced by tearDownClass(), and test_remote_module_dynamic.Live.tearDownClass().
| test_remote_module.Live.proc |
Definition at line 186 of file test_remote_module.py.
Referenced by tearDownClass(), and test_remote_module_dynamic.Live.tearDownClass().
| test_remote_module.Live.tts_key = probe.machine_key("pytts", "modules.attach.Tts") |
Definition at line 199 of file test_remote_module.py.
Referenced by test_b_bad_key_and_scope_refused(), and test_c_websocket_and_udp_modules().