# SyTest Docker Images
These Dockerfiles create containers for running SyTest in various
configurations. SyTest is not included in these images (see
[Selecting a checkout of SyTest](#selecting-a-sytest-checkout)),
but its dependencies are.
Included currently is:
- `matrixdotorg/sytest` Base container with SyTest dependencies installed
- Tagged by underlying Debian/Ubuntu image: `focal`, `buster` or `testing`
- `matrixdotorg/sytest-synapse`: Runs SyTest against Synapse
- Tagged by underlying Debian/Ubunutu image: `focal`, `buster` or `testing`
## Target-specific details
### Synapse
The `sytest-synapse` images expect a checkout of the synapse git repository to
be mounted at `/src`; additionally, server logs will be written to `/logs`, so
it is useful to mount a volume there too.
For example:
```
docker run --rm -it -v /path/to/synapse\:/src:ro -v /path/to/where/you/want/logs\:/logs matrixdotorg/sytest-synapse:buster
```
The following environment variables can be set with `-e` to control the test run:
- `POSTGRES`: set non-empty to test against a PostgreSQL database instead of SQLite.
- `MULTI_POSTGRES`: set non-empty (along with `POSTGRES`) to test against multiple
PostgreSQL databases where the main store and state store are split.
- `WORKERS`: set non-empty to test a worker-mode deployment rather than a
monolith. Requires `POSTGRES`.
- `ASYNCIO_REACTOR`: set non-empty to test with the Twisted asyncio reactor enabled
- `OFFLINE`: set non-empty to avoid updating the python or perl dependencies.
- `BLACKLIST`: set non-empty to change the default blacklist file to the
specified path relative to the Synapse directory
- `TIMEOUT_FACTOR`: sets a number that test timeouts are multiplied by.
An example of running Synapse in worker mode:
```
docker run --rm -it -e POSTGRES=1 -e WORKERS=1 -v /path/to/synapse\:/src:ro \
-v /path/to/where/you/want/logs\:/logs matrixdotorg/sytest-synapse:buster
```
### Dendrite
The `sytest-dendrite` images expect a checkout of the dendrite git repository to
be mounted at `/src`; additionally, server logs will be written to `/logs`, so
it is useful to mount a volume there too.
```
docker run --rm -it -v /path/to/dendrite\:/src:ro -v /path/to/where/you/want/logs\:/logs matrixdotorg/sytest-dendrite
```
## Selecting a checkout of Sytest
The images do not contain a copy of Sytest; by default, they download
an appropriate branch of Sytest. Normally this is either a branch with
the same name as that of the target homeserver, or `develop`.
This can be overridden with the environment variable `SYTEST_BRANCH`,
for example:
```
docker run --rm -it \
-e SYTEST_BRANCH="my-sytest-branch"
-v /path/to/synapse\:/src:ro -v /path/to/where/you/want/logs\:/logs
matrixdotorg/sytest-synapse:buster
```
If the branch referred to by `SYTEST_BRANCH` does not exist, `develop` is used
instead.
If you would like to run tests with an existing checkout of Sytest, add a
volume to the docker command mounting the checkout to the `/sytest` folder in
the container:
```
docker run --rm -it -v /path/to/synapse\:/src:ro -v /path/to/where/you/want/logs\:/logs \
-v /path/to/code/sytest\:/sytest:ro matrixdotorg/sytest-synapse:buster
```
## Running a single test file, and other sytest commandline options
You can pass arguments to sytest by adding them at the end of the
docker command. For example:
```
docker run --rm -it ... matrixdotorg/sytest-synapse:buster tests/20profile-events.pl
```
## Building the containers
These are automatically built and deployed on the `develop` branch by GitHub Actions.
See `.github/workflows.docker.yml` for the gory details.
## Loading sytest plugins at start
To utilize sytest plugins and automatically load them on start set the `PLUGINS` environment variable.
This should be one or more URLs to tar.gz files separated by whitespaces.
The bootstrap script will search for `${SYTEST_TARGET}_sytest.sh` in all plugins. This can be used to
execute custom scripts like the ones in `/scripts/`
```
docker run --rm -it -e PLUGINS="https://host/path/to/hs_plugin.tar.gz https://host2/path/to/output_plugin.tar.gz"
```
没有合适的资源?快使用搜索试试~ 我知道了~
Matrix家庭服务器的黑盒集成测试_Perl_下载.zip
共224个文件
pl:165个
pm:32个
sh:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 167 浏览量
2023-04-13
23:58:03
上传
评论
收藏 385KB ZIP 举报
温馨提示
Matrix家庭服务器的黑盒集成测试_Perl_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
Matrix家庭服务器的黑盒集成测试_Perl_下载.zip (224个子文件)
CODEOWNERS 116B
cpanfile 1KB
tls-selfsigned.crt 1KB
ca.crt 1KB
tls.dh 424B
synapse.Dockerfile 4KB
base.Dockerfile 2KB
dendrite.Dockerfile 637B
.dockerignore 26B
.dir-locals.el 225B
.gitignore 172B
tls-selfsigned.key 2KB
ca.key 2KB
LICENSE 10KB
README.md 4KB
dendrite-setup.md 137B
36state.pl 39KB
30room-join.pl 38KB
60version_upgrade.pl 32KB
run-tests.pl 31KB
35room-invite.pl 30KB
40devicelists.pl 30KB
08-cross-signing.pl 29KB
15lazy-members.pl 29KB
06state.pl 28KB
06-device-lists.pl 26KB
13guestaccess.pl 21KB
30history-visibility.pl 21KB
01message-pushed.pl 21KB
34room-backfill.pl 20KB
33room-members.pl 19KB
52soft-fail.pl 19KB
11register.pl 19KB
33room-get-missing-events.pl 17KB
48admin.pl 16KB
12thirdpartyinvite.pl 16KB
04timeline.pl 15KB
01public.pl 15KB
01register.pl 15KB
06invite.pl 15KB
07-backup.pl 15KB
00prepare.pl 14KB
05aliases.pl 14KB
13ui-auth.pl 14KB
31room-state.pl 14KB
01keys.pl 14KB
04messages.pl 13KB
09archived.pl 12KB
30room-create.pl 12KB
42tags.pl 11KB
70publicroomslist.pl 11KB
09synced.pl 11KB
50server-acl-endpoints.pl 10KB
39redactions.pl 10KB
12device_management.pl 9KB
01state.pl 9KB
03joined.pl 9KB
34room-messages.pl 9KB
03members-remote.pl 9KB
31room-send.pl 9KB
17peeking.pl 9KB
02ghost.pl 8KB
32room-versions.pl 8KB
02add_rules.pl 8KB
11leaving.pl 8KB
05lookup3pe.pl 7KB
44account_data.pl 7KB
10redactions.pl 7KB
49ignore.pl 7KB
01change-password.pl 7KB
02login.pl 7KB
50no-deextrem-outliers.pl 6KB
01unicode.pl 6KB
03events-initial.pl 6KB
01-upload-key.pl 6KB
06publicroomlist.pl 6KB
16room-summary.pl 6KB
21receipts.pl 6KB
01http-server.pl 6KB
40presence.pl 6KB
05wildcard.pl 6KB
03_unread_count.pl 6KB
08levels.pl 6KB
01directmessage.pl 6KB
54identity.pl 5KB
38receipts.pl 5KB
02members-local.pl 5KB
01as-create.pl 5KB
11typing.pl 5KB
00expect_http_fail.pl 5KB
50context.pl 5KB
05homeserver.pl 5KB
41power-levels.pl 5KB
07invited.pl 4KB
07ban.pl 4KB
20typing.pl 4KB
32room-getevent.pl 4KB
36room-levels.pl 4KB
08_rejected_pushers.pl 4KB
10archived-ban.pl 4KB
共 224 条
- 1
- 2
- 3
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9153
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 数据库管理工具:dbeaver-ce-23.2.4-stable.x86-64.rpm
- 含小数的十进制转N进制源代码.rar
- 数据库管理工具:dbeaver-ce-23.2.4-macos-x86-64.dmg
- python的字符界面程序
- 数据库管理工具:dbeaver-ce-23.2.3-stable.x86-64.rpm
- 数据库管理工具:dbeaver-ce-23.2.3-macos-x86-64.dmg
- 数据库管理工具:dbeaver-ce-23.2.3-macos-aarch64.dmg
- 乐播投屏 5.9.02版.apk
- 数据库管理工具:dbeaver-ce-23.2.1-x86-64-setup.exe
- 高分项目,基于Unity3D开发实现的贪吃蛇游戏,内含完整源码+资源+视频教程
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功