mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-04-19 16:01:14 +00:00
wip tests
This commit is contained in:
parent
fc45a7bab1
commit
5ba200af3d
3 changed files with 43 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
data/*
|
||||
data/*
|
||||
tests/certs/
|
||||
|
|
23
tests/docker-compose.yml
Normal file
23
tests/docker-compose.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
prosody:
|
||||
image: prosody
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "5222:5222"
|
||||
- "5223:5223"
|
||||
- "5269:5269"
|
||||
- "5281:5281"
|
||||
environment:
|
||||
DOMAIN: prosody
|
||||
PROSODY_ADMINS: "admin@prosody, admin2@prosody"
|
||||
extra_hosts:
|
||||
- "conference.prosody:127.0.0.1"
|
||||
- "pubsub.prosody:127.0.0.1"
|
||||
- "proxy.prosody:127.0.0.1"
|
||||
- "upload.prosody:127.0.0.1"
|
||||
volumes:
|
||||
- ./certs:/usr/local/etc/prosody/certs
|
||||
#- ./data:/usr/local/var/lib/prosody
|
18
tests/test.zsh
Executable file
18
tests/test.zsh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/zsh
|
||||
|
||||
# generate certs for testing
|
||||
|
||||
generateCert() {
|
||||
DOMAIN="$1"
|
||||
mkdir -p certs/"$DOMAIN"
|
||||
cd certs/"$DOMAIN"
|
||||
openssl req -x509 -newkey rsa:4096 -keyout privkey.pem -out fullchain.pem -days 365 -subj "/CN=$DOMAIN" -nodes
|
||||
chmod 777 *.pem
|
||||
cd ../../
|
||||
}
|
||||
|
||||
generateCert "prosody"
|
||||
generateCert "conference.prosody"
|
||||
generateCert "pubsub.prosody"
|
||||
generateCert "proxy.prosody"
|
||||
generateCert "upload.prosody"
|
Loading…
Reference in a new issue