Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deb-icingaweb2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packaging
deb-icingaweb2
Commits
a8dbae90
Commit
a8dbae90
authored
May 07, 2020
by
Johannes Meyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start_test.sh: Properly test the server's response
parent
a73eb5ac
Pipeline
#9470
failed with stages
in 8 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
testing/start_test.sh
testing/start_test.sh
+25
-6
No files found.
testing/start_test.sh
View file @
a8dbae90
...
...
@@ -6,12 +6,31 @@ if ! $SCRIPT_HOME/prepare_test.sh; then
exit
1
fi
RSTATUS
=
$(
curl
-s
-w
"%{http_code}"
http://localhost/icingaweb2/authentication/login
-o
/dev/null
)
if
[
"200"
!=
"
$RSTATUS
"
]
;
then
echo
"Http exit code was not ok!"
exit
1
sleep
10
output
=
`
mktemp
`
if
curl
-v
http://127.0.0.1/icingaweb2/authentication/login
-o
"
$output
"
;
then
if
grep
-q
'<div id="login"'
"
$output
"
;
then
echo
"Login page available"
exit
0
else
echo
"Didn't get a logon page from the webserver!"
echo
echo
"Output of the page is:"
echo
"====================================="
cat
"
$output
"
exit
1
fi
else
echo
"All's well"
exit
0
echo
"Request for login page failed!"
echo
echo
"Output of the page is:"
echo
"====================================="
cat
"
$output
"
echo
"====================================="
sudo
sh
-ex
<<<
'cat /var/log/httpd/*error* /var/log/apache2/*error*'
exit
1
fi
# vi: ts=2 sw=2 expandtab :
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