-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Walter Huf
committed
Oct 14, 2014
1 parent
e4a4973
commit 3337ba4
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@test "restapi client key is generated" { | ||
test -e /etc/ceph/ceph.client.restapi* | ||
} | ||
|
||
@test "restapi is configured" { | ||
test -e /etc/apache2/sites-enabled/restapi.conf | ||
grep -F 'WSGIScriptAlias / /usr/lib/ceph/restapi.wsgi' /etc/apache2/sites-enabled/restapi.conf > /dev/null | ||
} | ||
|
||
@test "restapi is listening on the port" { | ||
netstat -lnpt | grep 5000 | ||
} | ||
|
||
@test "restapi is responding with data" { | ||
wget -q -O - http://127.0.0.1:5000/api/v0.1/mon_status | grep quorum > /dev/null | ||
} |