mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added a test for deleting an existing server.
This commit is contained in:
parent
67e73f2b4e
commit
45b05bcffc
8
test.sh
8
test.sh
@ -195,6 +195,14 @@ test_deleting_server_that_does_not_exist() {
|
||||
assertEquals "Incorrect exit code." $EX_NAME_NOT_FOUND $EXIT_CODE
|
||||
}
|
||||
|
||||
test_deleting_server_that_exists() {
|
||||
quiet $SCRIPT server create example
|
||||
expect_stderr_empty $SCRIPT server delete example <<< "y"
|
||||
|
||||
assertEquals "Incorrect exit code." $EX_OK $EXIT_CODE
|
||||
assertFalse "Server directory was not removed." "[ -d \"$SERVER_STORAGE_PATH/example\" ]"
|
||||
}
|
||||
|
||||
### "msm server rename" tests
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user