From b6e558e6dddb655333cc8a79bce99298edfcad9c Mon Sep 17 00:00:00 2001 From: Jez Caudle Date: Thu, 23 Apr 2026 12:09:35 +0000 Subject: [PATCH] Lets get the tests working --- README.md | 7 +++++++ config/database.yml | 2 +- test/fixtures/credentials.yml | 4 ++-- test/fixtures/domains.yml | 4 ++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b6758b2..a506e30 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/database.yml b/config/database.yml index 2979036..a26aa8b 100644 --- a/config/database.yml +++ b/config/database.yml @@ -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 diff --git a/test/fixtures/credentials.yml b/test/fixtures/credentials.yml index 7c93971..2f02833 100644 --- a/test/fixtures/credentials.yml +++ b/test/fixtures/credentials.yml @@ -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 diff --git a/test/fixtures/domains.yml b/test/fixtures/domains.yml index e11b45a..d3752b8 100644 --- a/test/fixtures/domains.yml +++ b/test/fixtures/domains.yml @@ -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