diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-03 09:09:09 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-03 09:09:09 +0000 |
commit | c384315ae1ea48df2a741874b326581ded0a97e1 (patch) | |
tree | 6f50dfdb7fb726ef3e738dc5264526cf683906a3 /qa/qa/runtime/mail_hog.rb | |
parent | e1e017ddc4d64e4777bbe663c555093a7ae0cca3 (diff) | |
download | gitlab-ce-c384315ae1ea48df2a741874b326581ded0a97e1.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/runtime/mail_hog.rb')
-rw-r--r-- | qa/qa/runtime/mail_hog.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/qa/runtime/mail_hog.rb b/qa/qa/runtime/mail_hog.rb new file mode 100644 index 00000000000..899450a1540 --- /dev/null +++ b/qa/qa/runtime/mail_hog.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true +module QA + module Runtime + module MailHog + def self.base_url + host = QA::Runtime::Env.mailhog_hostname || 'localhost' + "http://#{host}:8025" + end + + def self.api_messages_url + "#{base_url}/api/v2/messages" + end + end + end +end |