Skip to content

Commit

Permalink
fix coding lab (#1578)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdazam1942 authored Sep 11, 2023
1 parent fe09cbb commit df8dee5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/lab/connector_coding_lab.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df8dee5

Please sign in to comment.