Commit bd426225 authored by gubala's avatar gubala

user service testing code

parent 388e4598
...@@ -42,14 +42,24 @@ class User < ActiveRecord::Base ...@@ -42,14 +42,24 @@ class User < ActiveRecord::Base
user.create_user_data unless user.user_data user.create_user_data unless user.user_data
logger.info Time.now.to_s begin
GFTP::Exists.new.exists "/people/#{user.login}/", user.proxy do |test| GFTP::Exists.new.exists "/people/#{user.login}/", user.proxy do |test|
logger.info "ZEUS DIR CHECK: #{test}" logger.info "ZEUS DIR CHECK: #{test}"
logger.info Time.now.to_s logger.info Time.now.to_s
# TODO FIXME # TODO FIXME set zeus to true
end
rescue
# TODO FIXME set zeus to false
end end
logger.info Time.now.to_s # 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| # 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 "PROM DIR CHECK: #{test}"
# logger.info Time.now.to_s # logger.info Time.now.to_s
......
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