Skip to content

Commit

Permalink
add actual tests to the example readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Apr 2, 2024
1 parent aadbf56 commit 31363b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/mailhog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ Run the following commands to validate things are rolling as they should.
```bash
# Should have the mhsendmail binary
lando ssh -s php -c "ls -lsa /usr/local/bin | grep mhsendmail"
lando ssh -s nginx -c "ls -lsa /usr/local/bin | grep mhsendmail"

# Should have the MH_SENDMAIL_SMTP_ADDR set
lando ssh -s php -c "env | grep MH_SENDMAIL_SMTP_ADDR=sendmailhog:1025"
lando ssh -s nginx -c "env | grep MH_SENDMAIL_SMTP_ADDR=sendmailhog:1025"

# Should be serving the admin interface on port 80
lando ssh -s php -c "curl mailhog | grep MailHog"
lando ssh -s nginx -c "curl mailhog | grep MailHog"

# Should have mailhog set as the meUser
lando ssh -s mailhog -c "id | grep mailhog"
Expand Down

0 comments on commit 31363b1

Please sign in to comment.