Lets get the tests working

This commit is contained in:
2026-04-23 12:09:35 +00:00
parent d1222a6baa
commit b6e558e6dd
4 changed files with 12 additions and 5 deletions

View File

@@ -24,6 +24,13 @@ Is derived from https://github.com/OpenSMTPD/OpenSMTPD-extras/blob/master/extras
* Database creation * Database creation
```
CREATE USER 'OpenSMTPD'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE OpenSMTPD;
GRANT ALL PRIVILEGES ON OpenSMTPD.* TO 'OpenSMTPD'@'localhost';
FLUSH PRIVILEGES;
```
* Database initialization * Database initialization
* How to run the test suite * How to run the test suite

View File

@@ -26,7 +26,7 @@ development:
# Do not set this db to the same as development or production. # Do not set this db to the same as development or production.
test: test:
<<: *default <<: *default
database: opensmtpd_test database: OpenSMTPD_test
# As with config/credentials.yml, you never want to store sensitive information, # As with config/credentials.yml, you never want to store sensitive information,
# like your database password, in your source code. If your source code is # like your database password, in your source code. If your source code is

View File

@@ -3,9 +3,9 @@
one: one:
email: bob@example.net email: bob@example.net
password: MyString password: MyString
domain: one domain: domainone
two: two:
email: alice@example.org email: alice@example.org
password: MyString password: MyString
domain: two domain: domaintwo

View File

@@ -1,7 +1,7 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one: domainone:
domain: example.net domain: example.net
two: domaintwo:
domain: example.org domain: example.org