Skip to content

Commit

Permalink
qa: simple tests for 'ceph osd create|rm' commands
Browse files Browse the repository at this point in the history
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.
24 changes: 24 additions & 0 deletions qa/workunits/mon/osd.sh
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

0 comments on commit 640e5fd

Please sign in to comment.