Updated unit tests

This commit is contained in:
deajan 2016-08-29 17:40:32 +02:00
parent b8acf1d6dc
commit 53e9ebccee
1 changed files with 14 additions and 0 deletions

View File

@ -51,4 +51,18 @@ function test_osync_quicksync_local () {
assertEquals "Target state dir exists" "0" $? assertEquals "Target state dir exists" "0" $?
} }
function test_osync_quicksync_remote () {
CreateReplicas
cd "$DEV_DIR"
./n_osync.sh --initiator="$INITIATOR_DIR" --target="ssh://localhost:49999/$TARGET_DIR" --rsakey=/root/.ssh/id_rsa_local > /dev/null
assertEquals "Return code" "0" $?
[ -d "$INITIATOR_DIR/$OSYNC_STATE_DIR" ]
assertEquals "Initiator state dir exists" "0" $?
[ -d "$TARGET_DIR/$OSYNC_STATE_DIR" ]
assertEquals "Target state dir exists" "0" $?
}
. ./shunit2/shunit2 . ./shunit2/shunit2