Lets get the tests working
This commit is contained in:
@@ -24,6 +24,13 @@ Is derived from https://github.com/OpenSMTPD/OpenSMTPD-extras/blob/master/extras
|
||||
|
||||
* Database creation
|
||||
|
||||
```
|
||||
CREATE USER 'OpenSMTPD'@'localhost' IDENTIFIED BY 'password';
|
||||
CREATE DATABASE OpenSMTPD;
|
||||
GRANT ALL PRIVILEGES ON OpenSMTPD.* TO 'OpenSMTPD'@'localhost';
|
||||
FLUSH PRIVILEGES;
|
||||
```
|
||||
|
||||
* Database initialization
|
||||
|
||||
* How to run the test suite
|
||||
|
||||
@@ -26,7 +26,7 @@ development:
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
<<: *default
|
||||
database: opensmtpd_test
|
||||
database: OpenSMTPD_test
|
||||
|
||||
# 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
|
||||
|
||||
4
test/fixtures/credentials.yml
vendored
4
test/fixtures/credentials.yml
vendored
@@ -3,9 +3,9 @@
|
||||
one:
|
||||
email: bob@example.net
|
||||
password: MyString
|
||||
domain: one
|
||||
domain: domainone
|
||||
|
||||
two:
|
||||
email: alice@example.org
|
||||
password: MyString
|
||||
domain: two
|
||||
domain: domaintwo
|
||||
|
||||
4
test/fixtures/domains.yml
vendored
4
test/fixtures/domains.yml
vendored
@@ -1,7 +1,7 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
domainone:
|
||||
domain: example.net
|
||||
|
||||
two:
|
||||
domaintwo:
|
||||
domain: example.org
|
||||
|
||||
Reference in New Issue
Block a user