Commit c75daad0 authored by gubala's avatar gubala

user service testing code

parent bd426225
...@@ -42,6 +42,7 @@ class User < ActiveRecord::Base ...@@ -42,6 +42,7 @@ 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 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}"
...@@ -52,6 +53,17 @@ class User < ActiveRecord::Base ...@@ -52,6 +53,17 @@ class User < ActiveRecord::Base
# TODO FIXME set zeus to false # TODO FIXME set zeus to false
end 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
# TODO FIXME set prom to true
end
rescue
# TODO FIXME set prom to false
end
# logger.info Time.now.to_s # logger.info Time.now.to_s
# 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}"
......
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