1.1 KiB
1.1 KiB
Commands
Basic commands for ayb development
- SMTP server:
./tests/smtp_server.sh 10026
- Note: You need to create the
cert.pem
andkey.pem
files. - Run
openssl req -nodes -new -x509 -keyout ./tests/smtp_data_10026/key.pem -out ./tests/smtp_data_10026/cert.pem
.- The only important value is the
CN
, which should be set tolocalhost
. The rest doesn't really matter, I normally useAQ
andAntartica
. - Note: You need
openssl
installed in your system to run the command (you needopenssl-devel
anyway to build ayb).
- The only important value is the
- Note: You need to create the
- Run ayb server:
cargo run -- server
.- Note: You need a valid
ayb.toml
file. - Run
cargo run -- default_server_config > ayb.toml
. - Change
smtp_port
to10026
. - Change
smtp_username
to"username"
. - Change
smtp_password
to"password"
. - Set
e2e_testing
totrue
- Note: You need a valid
- Only run SQLite tests:
cargo test client_server_integration_sqlite -- --exact
.- After E2E testing the
10026
port may still be in use. The simplest way to kill the process using the port is runningfreeport 10026
. - If freeport isn't installed, run
pip install freeport
.
- After E2E testing the