post :create, user: {
first_name: "test_first_name",
last_name: "test_last_name",
- email: "test@abc.com"
+ email: "foo@example.com"
}
assert_response :success
created = JSON.parse(@response.body)
uuid: "this_is_agreeable",
first_name: "in_create_test_first_name",
last_name: "test_last_name",
- email: "test@abc.com"
+ email: "foo@example.com"
}
}
assert_response :success
uuid: "this_is_agreeable",
first_name: "in_create_test_first_name",
last_name: "test_last_name",
- email: "test@abc.com"
+ email: "foo@example.com"
}
}
post :setup, {
repo_name: 'test_repo',
- user: {email: 'abc@xyz.com'},
+ user: {email: 'foo@example.com'},
openid_prefix: 'https://www.google.com/accounts/o8/id'
}
response_items = JSON.parse(@response.body)['items']
response_object = find_obj_in_resp response_items, 'User', nil
assert_not_nil response_object['uuid'], 'expected uuid for the new user'
- assert_equal response_object['email'], 'abc@xyz.com', 'expected given email'
+ assert_equal response_object['email'], 'foo@example.com', 'expected given email'
# three extra links; login link, group link and repo link
verify_num_links @all_links_at_start, 3
post :setup, {
repo_name: 'test_repo',
vm_uuid: 'no_such_vm',
- user: {email: 'abc@xyz.com'},
+ user: {email: 'foo@example.com'},
openid_prefix: 'https://www.google.com/accounts/o8/id'
}
repo_name: 'test_repo',
openid_prefix: 'https://www.google.com/accounts/o8/id',
vm_uuid: @vm_uuid,
- user: {email: 'abc@xyz.com'}
+ user: {email: 'foo@example.com'}
}
assert_response :success
response_items = JSON.parse(@response.body)['items']
response_object = find_obj_in_resp response_items, 'User', nil
assert_not_nil response_object['uuid'], 'expected uuid for the new user'
- assert_equal response_object['email'], 'abc@xyz.com', 'expected given email'
+ assert_equal response_object['email'], 'foo@example.com', 'expected given email'
# three extra links; login link, group link and repo link
verify_num_links @all_links_at_start, 4
authorize_with :admin
post :setup, {
- user: {email: 'abc@xyz.com'},
+ user: {email: 'foo@example.com'},
openid_prefix: 'https://www.google.com/accounts/o8/id'
}
response_items = JSON.parse(@response.body)['items']
response_object = find_obj_in_resp response_items, 'User', nil
assert_not_nil response_object['uuid'], 'expected uuid for new user'
- assert_equal response_object['email'], 'abc@xyz.com', 'expected given email'
+ assert_equal response_object['email'], 'foo@example.com', 'expected given email'
# two extra links; login link and group link
verify_num_links @all_links_at_start, 2
vm_uuid: @vm_uuid,
user: {
first_name: 'test_first_name',
- email: 'abc@xyz.com'
+ email: 'foo@example.com'
}
}
response_items = JSON.parse(@response.body)['items']
response_object = find_obj_in_resp response_items, 'User', nil
assert_not_nil response_object['uuid'], 'expected uuid for new user'
- assert_equal response_object['email'], 'abc@xyz.com', 'expected given email'
+ assert_equal response_object['email'], 'foo@example.com', 'expected given email'
assert_equal 'test_first_name', response_object['first_name'],
'expecting first name'
openid_prefix: 'https://www.google.com/accounts/o8/id',
repo_name: 'test_repo',
user: {
- email: 'abc@xyz.com'
+ email: 'foo@example.com'
}
}
response_items = JSON.parse(@response.body)['items']
response_object = find_obj_in_resp response_items, 'User', nil
assert_not_nil response_object['uuid'], 'expected uuid for new user'
- assert_equal response_object['email'], 'abc@xyz.com', 'expected given email'
+ assert_equal response_object['email'], 'foo@example.com', 'expected given email'
verify_num_links @all_links_at_start, 3 # openid, group, and repo. no vm
# create again
post :setup, {
- user: {email: 'abc@xyz.com'},
+ user: {email: 'foo@example.com'},
openid_prefix: 'https://www.google.com/accounts/o8/id'
}
response_object2 = find_obj_in_resp response_items, 'User', nil
assert_not_equal response_object['uuid'], response_object2['uuid'],
'expected same uuid as first create operation'
- assert_equal response_object['email'], 'abc@xyz.com', 'expected given email'
+ assert_equal response_object['email'], 'foo@example.com', 'expected given email'
# extra login link only
verify_num_links @all_links_at_start, 4
post :setup, {
repo_name: 'test_repo',
- openid_prefix: 'http://www.xyz.com/account',
+ openid_prefix: 'http://www.example.com/account',
user: {
first_name: "in_create_test_first_name",
last_name: "test_last_name",
- email: "test@abc.com"
+ email: "foo@example.com"
}
}
user: {
first_name: "in_create_test_first_name",
last_name: "test_last_name",
- email: "test@abc.com"
+ email: "foo@example.com"
}
}
user: {
first_name: "in_create_test_first_name",
last_name: "test_last_name",
- email: "test@abc.com"
+ email: "foo@example.com"
},
vm_uuid: @vm_uuid,
repo_name: 'test_repo',
authorize_with :active
post :create, {
- user: {email: 'abc@xyz.com'}
+ user: {email: 'foo@example.com'}
}
response_body = JSON.parse(@response.body)
post :setup, {
openid_prefix: 'https://www.google.com/accounts/o8/id',
- user: {email: 'abc@xyz.com'}
+ user: {email: 'foo@example.com'}
}
response_body = JSON.parse(@response.body)
authorize_with :admin
post :setup, {
- openid_prefix: 'http://www.xyz.com/account',
+ openid_prefix: 'http://www.example.com/account',
user: {
- email: "test@abc.com"
+ email: "foo@example.com"
}
}
assert_not_nil created['uuid'], 'expected uuid for new user'
assert_not_nil created['email'], 'expected non-nil email'
- assert_equal created['email'], 'test@abc.com', 'expected input email'
+ assert_equal created['email'], 'foo@example.com', 'expected input email'
# verify links; 2 new links: arvados#user, and 'All users' group.
verify_num_links @all_links_at_start, 2
# invoke setup with a repository
post :setup, {
- openid_prefix: 'http://www.xyz.com/account',
+ openid_prefix: 'http://www.example.com/account',
repo_name: 'new_repo',
uuid: created['uuid']
}
response_items = JSON.parse(@response.body)['items']
created = find_obj_in_resp response_items, 'User', nil
- assert_equal 'test@abc.com', created['email'], 'expected input email'
+ assert_equal 'foo@example.com', created['email'], 'expected input email'
# verify links
verify_link response_items, 'arvados#group', true, 'permission', 'can_read',
# invoke setup with a vm_uuid
post :setup, {
vm_uuid: @vm_uuid,
- openid_prefix: 'http://www.xyz.com/account',
+ openid_prefix: 'http://www.example.com/account',
user: {
email: 'junk_email'
},
response_items = JSON.parse(@response.body)['items']
created = find_obj_in_resp response_items, 'User', nil
- assert_equal created['email'], 'test@abc.com', 'expected original email'
+ assert_equal created['email'], 'foo@example.com', 'expected original email'
# verify links
verify_link response_items, 'arvados#group', true, 'permission', 'can_read',