diff --git a/tests/tor.bats b/tests/tor.bats index 49a7b9dcc..775feb77c 100755 --- a/tests/tor.bats +++ b/tests/tor.bats @@ -48,6 +48,7 @@ load test-helper } @test "$clinom tor add 22" { + run "${clicmd}" tor add 22 run "${clicmd}" tor add 22 assert_success && assert_output -p 'Success' } @@ -56,3 +57,17 @@ load test-helper run "${clicmd}" tor notice now assert_success && assert_output -p 'Thanks' } + +@test "$clinom tor deleteall" { + run "${clicmd}" tor add 22 + run "${clicmd}" tor deleteall + assert_success && assert_output -p 'All ports have been deleted' +} + +@test "$clinom tor destroy" { + run "${clicmd}" tor add 22 + run "${clicmd}" tor start + sleep 5 + run "${clicmd}" tor destroy + assert_success && assert_output -p 'Success: the tor service has been destroyed' +}