diff --git a/docs/lab/connector_coding_lab.md b/docs/lab/connector_coding_lab.md index 6ccb59958..61cf1b7f9 100644 --- a/docs/lab/connector_coding_lab.md +++ b/docs/lab/connector_coding_lab.md @@ -306,22 +306,22 @@ async def create_results_connection(self, query, offset, length): * Copy the code block for the MySQL connector's [`run_search` function](https://github.com/opencybersecurityalliance/stix-shifter/blob/develop/stix_shifter_modules/mysql/stix_transmission/api_client.py#L43) +**Test the Results command using the CLI tool** + +```bash +python main.py transmit lab_connector '{"host": "localhost", "database":"demo_db", "options": {"table":"demo_table"}}' '{"auth": {"username":"root", "password":""}}' results "SELECT * FROM demo_table WHERE source_ipaddr = '10.0.0.9'" 0 100 +``` + ### Delete * Deleting a query is not supported by the datasource API so no action is needed. -**Test the Status command with the CLI tool** +**Test the Delete command with the CLI tool** ```bash python main.py transmit lab_connector '{"host": "localhost", "database":"demo_db", "options": {"table":"demo_table"}}' '{"auth": {"username":"root", "password":""}}' delete "SELECT * FROM demo_table WHERE source_ipaddr = '10.0.0.9'" ``` -**Test the Results command using the CLI tool** - -```bash -python main.py transmit lab_connector '{"host": "localhost", "database":"demo_db", "options": {"table":"demo_table"}}' '{"auth": {"username":"root", "password":""}}' results "SELECT * FROM demo_table WHERE source_ipaddr = '10.0.0.9'" 0 100 -``` - ## Results Translation ### 11. Implement data source results to STIX translation