Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
a0172282
Commit
a0172282
authored
9 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
fix up unit test failure.
parent
5625cf0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/metabase/email/messages_test.clj
+3
-6
3 additions, 6 deletions
test/metabase/email/messages_test.clj
with
3 additions
and
6 deletions
test/metabase/email/messages_test.clj
+
3
−
6
View file @
a0172282
...
...
@@ -27,13 +27,10 @@
`
(
binding
[
email/*send-email-fn*
fake-inbox-email-fn
]
(
reset-inbox!
)
;; Push some fake settings for SMTP username + password, and restore originals when done
(
let
[
orig-username
#
(
email/email-smtp-username
)
orig-password
#
(
email/email-smtp-password
)]
(
email/email-smtp-username
"fake_smtp_username"
)
(
email/email-smtp-password
"ABCD1234!!"
)
(
let
[
orig-hostname
#
(
email/email-smtp-host
)]
(
email/email-smtp-host
"fake_smtp_host"
)
(
try
~@
body
(
finally
(
email/email-smtp-username
orig-username
#
)
(
email/email-smtp-password
orig-password
#
))))))
(
finally
(
email/email-smtp-host
orig-hostname
#
))))))
;; new user email
;; NOTE: we are not validating the content of the email body namely because it's got randomized elements and thus
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment