# link the repo_name passed
def create_user_repo_link(repo_name)
- if !repo_name
+ if not repo_name
logger.warn ("Repository name not given for #{@object[:uuid]}. Skip creating the link")
return
end
vm = (vms = VirtualMachine.where(uuid: vm_uuid)) != nil ? vms.first : nil
#vm = VirtualMachine.where(uuid: vm_uuid)
- if [] == vm
+ if not vm
logger.warn "Could not look up virtual machine with uuid #{vm_uuid.inspect}"
return
end
}
assert_response :success
created = JSON.parse(@response.body)
-puts "created = #{created}"
assert_equal 'in_create_test_first_name', created['first_name']
assert_not_nil created['uuid'], 'expected non-null uuid for the newly created user'
assert_not_nil created['email'], 'since email was given, expected non-nil email'