Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
7e320842
Commit
7e320842
authored
Mar 12, 2007
by
ericw
Browse files
At CERN, test the squid server
parent
1c2e9e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/test_squid.py
View file @
7e320842
...
...
@@ -10,7 +10,7 @@ Tests the local FroNtier squid
# 3) file $CMS_PATH/SITECONF/local/JobConfig/site-local-config.xml
# contains the location of the local FroNtier squid server
#
__revision__
=
"$Id: test_squid.py,v 1.1
1
2007/03/
0
2 1
7
:0
9
:0
3
ericw Exp $"
__revision__
=
"$Id: test_squid.py,v 1.1
2
2007/03/
1
2 1
9
:0
8
:0
0
ericw Exp $"
import
os
import
sys
import
urllib2
...
...
@@ -91,11 +91,19 @@ if site != "CERN":
print
"squid "
+
squid
os
.
environ
[
"http_proxy"
]
=
squid
#
# Following code from Sinisa Veseli
# Set server for urllib2
# Note that the squid server used on the CERN site is
# http://cmsfrontier.cern.ch:8000
#
if
site
!=
"CERN"
:
frontierUrl
=
"http://cmsfrontier.cern.ch:8080/FrontierInt/Frontier"
else
:
frontierUrl
=
"http://cmsfrontier.cern.ch:8000/FrontierInt/Frontier"
#
# Much of the following code is from Sinisa Veseli
#
# Set parameters
#
frontierUrl
=
"http://cmsfrontier.cern.ch:8080/FrontierInt/Frontier"
frontierQuery
=
"SELECT 1 FROM DUAL"
decodeFlag
=
True
refreshFlag
=
True
...
...
@@ -138,7 +146,8 @@ queryStart = time.localtime()
if
statsFlag
:
pass
else
:
print
"
\n
Query started: "
,
time
.
strftime
(
"%m/%d/%y %H:%M:%S %Z"
,
queryStart
)
print
"
\n
Query started: "
,
\
time
.
strftime
(
"%m/%d/%y %H:%M:%S %Z"
,
queryStart
)
t1
=
time
.
time
()
#
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment