Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
0d5e1d51
Commit
0d5e1d51
authored
Apr 16, 2019
by
Andrea Sciaba
Browse files
Merge branch 'ekizinev-qa-patch-34176' into 'qa'
Give a warn if some addresses fail but other work See merge request
!9
parents
4513fdc2
b43b7ddc
Changes
1
Show whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-squid
View file @
0d5e1d51
...
...
@@ -2,7 +2,7 @@
shopt
-s
expand_aliases
SCRIPT_REVISION
=
"2019-04-1
5
, Dave Dykstra and Edita Kizinevic"
SCRIPT_REVISION
=
"2019-04-1
6
, Dave Dykstra and Edita Kizinevic"
# Source the CMS environment
if
[
-n
"
$OSG_GRID
"
]
;
then
...
...
@@ -127,6 +127,7 @@ check_proxies() {
echo
'select 1 from dual'
|
FRONTIER_SERVER
=
"
$proxy_IP
(serverurl=http://cmsfrontier.cern.ch:8000/FrontierProd)(failovertoserver=no)"
fn-req
>
$output
if
grep
-q
" 1 NUMBER"
$output
;
then
echo
"
$proxy_IP
is OK"
ever_succeeded
=
true
else
echo
"
$proxy_IP
is FAILED:"
cat
$output
...
...
@@ -157,13 +158,17 @@ echo
# Check proxies
output
=
"output.txt"
ever_failed
=
false
ever_succeeded
=
false
check_proxies
"
$FNCONNECT
"
#Check test results
if
$ever_failed
;
then
if
[
"
$ever_failed
"
==
false
]
&&
[
"
$ever_succeeded
"
==
true
]
;
then
echo
"Proxy test is OK."
exit
$SAME_OK
elif
[
"
$ever_failed
"
==
true
]
&&
[
"
$ever_succeeded
"
==
true
]
;
then
echo
"At least one of proxies is FAILED."
exit
$SAME_WARNING
else
echo
"Proxy test is FAILED."
exit
$SAME_ERROR
else
echo
"Proxy test is OK"
exit
$SAME_OK
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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