16874: Fix test.
authorPeter Amstutz <peter.amstutz@curii.com>
Fri, 25 Sep 2020 22:04:29 +0000 (18:04 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Fri, 25 Sep 2020 22:04:29 +0000 (18:04 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

services/api/test/functional/arvados/v1/users_controller_test.rb

index ea5d5b1436bd256506cc1c23061dfd81eb8a763f..e0f7b8970dfd34f2a161a75336ef4a3bc964acd1 100644 (file)
@@ -609,6 +609,23 @@ class Arvados::V1::UsersControllerTest < ActionController::TestCase
   test "setup user with send notification param true and verify email" do
     authorize_with :admin
 
+    Rails.configuration.Users.UserSetupMailText = %{
+<% if not @user.full_name.empty? -%>
+<%= @user.full_name %>,
+<% else -%>
+Hi there,
+<% end -%>
+
+Your Arvados shell account has been set up. Please visit the virtual machines page <% if Rails.configuration.Services.Workbench1.ExternalURL %>at
+
+<%= Rails.configuration.Services.Workbench1.ExternalURL %><%= "/" if !Rails.configuration.Services.Workbench1.ExternalURL.to_s.end_with?("/") %>users/<%= @user.uuid%>/virtual_machines <% else %><% end %>
+
+for connection instructions.
+
+Thanks,
+The Arvados team.
+}
+
     post :setup, params: {
       send_notification_email: 'true',
       user: {