-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qa: simple tests for 'ceph osd create|rm' commands
Signed-off-by: Sage Weil <[email protected]>
- Loading branch information
Sage Weil
committed
Jul 27, 2012
1 parent
6f7837a
commit 640e5fd
Showing
1 changed file
with
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh -x | ||
|
||
set -e | ||
|
||
ua=`uuidgen` | ||
ub=`uuidgen` | ||
|
||
# shoudl get same id with same uuid | ||
na=`ceph osd create $ua` | ||
test $na -eq `ceph osd create $ua` | ||
|
||
nb=`ceph osd create $ub` | ||
test $nb -eq `ceph osd create $ub` | ||
test $nb -ne $na | ||
|
||
ceph osd rm $na | ||
ceph osd rm $na | ||
ceph osd rm $nb | ||
ceph osd rm 123123 | ||
|
||
na2=`ceph osd create $ua` | ||
|
||
echo OK | ||
|