Skip to content

Commit

Permalink
Document how to access the database for a homeserver after Complement…
Browse files Browse the repository at this point in the history
… runs

Spawned from #68
  • Loading branch information
MadLittleMods committed Jul 16, 2021
1 parent 91b0879 commit 3952efd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ONBOARDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,25 @@ For Goland:
* Under "Run"->"Edit Configurations..."->"Templates"->"Go Test", add `COMPLEMENT_BASE_IMAGE=complement-dendrite:latest`
* Then you can right-click on any test file or test case and "Run <test name>".



### Access database for homeserver after Complement test runs


For Synapse:

```
# You can use `docker ps -f name=complement_` to just filter to the Complement containers
$ docker ps
$ docker exec -it complement_1_hs_with_application_service.hs1_2 /bin/bash
$ apt-get update && apt-get install -y sqlite3
$ sqlite3
> .open /conf/homeserver.db
```


### What do I need to know if I'm coming from sytest?

Sytest has a concept of a `fixture` to configure the homeserver or test in a particular way, these are replaced with a `Blueprint` in Complement.
Expand Down

0 comments on commit 3952efd

Please sign in to comment.