Commit b6c57774 authored by gubala's avatar gubala

user service testing code

parent c75daad0
......@@ -42,42 +42,27 @@ class User < ActiveRecord::Base
user.create_user_data unless user.user_data
logger.info Time.now.to_s
t = Time.now.to_s
begin
GFTP::Exists.new.exists "/people/#{user.login}/", user.proxy do |test|
logger.info "ZEUS DIR CHECK: #{test}"
logger.info Time.now.to_s
logger.info "ZEUS DIR CHECK: #{test} (the test took: #{Time.now - t})"
# TODO FIXME set zeus to true
end
rescue
logger.info "ZEUS DIR CHECK: false (the test took: #{Time.now - t})"
# TODO FIXME set zeus to false
end
logger.info Time.now.to_s
begin
GFTP::Exists.new.exists "gsiftp://#{Plgdata::Application.config.prometheus_gridftp_host}/net/people/#{user.login}/", user.proxy do |test|
logger.info "PROM DIR CHECK: #{test}"
logger.info Time.now.to_s
logger.info "PROM DIR CHECK: #{test} (the test took: #{Time.now - t})"
# TODO FIXME set prom to true
end
rescue
logger.info "PROM DIR CHECK: false (the test took: #{Time.now - t})"
# TODO FIXME set prom to false
end
# logger.info Time.now.to_s
# GFTP::Exists.new.exists "/people/#{user.login}/", user.proxy do |test|
# logger.info "ZEUS DIR CHECK: #{test}"
# logger.info Time.now.to_s
# # TODO FIXME
# end
# logger.info Time.now.to_s
# GFTP::Exists.new.exists "gsiftp://#{Plgdata::Application.config.prometheus_gridftp_host}/net/people/#{user.login}/", user.proxy do |test|
# logger.info "PROM DIR CHECK: #{test}"
# logger.info Time.now.to_s
# # TODO FIXME
# end
user.save
user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment