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
|
* 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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
4
test/fixtures/credentials.yml
vendored
4
test/fixtures/credentials.yml
vendored
@@ -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
|
||||||
|
|||||||
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
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user