[ARVADOS] updated: 31f83b25039677512509120fb385069003bdd4ca
git at public.curoverse.com
git at public.curoverse.com
Wed Feb 11 19:50:48 EST 2015
Summary of changes:
apps/workbench/test/integration/user_manage_account_test.rb | 13 +++++++++++++
1 file changed, 13 insertions(+)
via 31f83b25039677512509120fb385069003bdd4ca (commit)
from 02d728b87a397a7093827de5046e62ce50c4019d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 31f83b25039677512509120fb385069003bdd4ca
Author: Radhika Chippada <radhika at curoverse.com>
Date: Wed Feb 11 19:32:02 2015 -0500
4951: update test to also verify that an email was sent when request shell access button was clicked.
diff --git a/apps/workbench/test/integration/user_manage_account_test.rb b/apps/workbench/test/integration/user_manage_account_test.rb
index ea41543..e9ded39 100644
--- a/apps/workbench/test/integration/user_manage_account_test.rb
+++ b/apps/workbench/test/integration/user_manage_account_test.rb
@@ -142,6 +142,19 @@ class UserManageAccountTest < ActionDispatch::IntegrationTest
assert_no_text 'You do not have access to any virtual machines.'
assert_no_selector 'a', text: 'Send request for shell access'
+ # verify that the email was sent
+ user = api_fixture('users')['spectator']
+ found_email = false
+ ActionMailer::Base.deliveries.andand.each do |email|
+ full_name = (user['first_name'] || "") + " " + (user['last_name'] || "")
+ expected = "Shell account request from #{full_name} (#{user['email']}, #{user['uuid']})"
+ if email.subject.include?(expected)
+ found_email = true
+ break
+ end
+ end
+ assert_equal true, found_email, "Expected email after requesting shell access"
+
# revisit the page and verify that the Request button is no longer shown
within('.navbar-fixed-top') do
find('a', text: 'spectator').click
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list