end
show
end
+
+ # create method that does create user object and create the three links, similar to the serup-new-user script.
+ # work in progress
+ def create
+ @object = User.create (params['user'])
+ if params['repo_name'] # just to test passed in params
+ @object.first_name = params['repo_name']
+ end
+ show
+ end
+
end
assert_nil created['identity_url'], 'even though email is provided, expected no identity_url since users_controller only creates user at this time'
end
+ test "create user with vm and repo" do
+ authorize_with :admin
+
+ post :create, {
+ repo_name: 'test_repo',
+ vm_uuid: 'abcdefg',
+ user: {
+ first_name: "in_create_test_first_name",
+ last_name: "test_last_name",
+ email: "test@abc.com"
+ }
+ }
+ assert_response :success
+ end
+
end