refactor: remove ps command

`ps` should be replaced by `enter` with a specified container id.
This commit is contained in:
Jose Diaz-Gonzalez
2020-02-22 00:42:19 -05:00
parent b06aeeccb1
commit 009e37d840
6 changed files with 10 additions and 57 deletions

View File

@@ -12,17 +12,6 @@ teardown() {
global_teardown
}
# @test "(ps) dockerfile base" {
# # CI support: 'Ah. I just spoke with our Docker expert --
# # looks like docker exec is built to work with docker-under-libcontainer,
# # but we're using docker-under-lxc. I don't have an estimated time for the fix, sorry
# skip "circleci does not support docker exec at the moment."
# run /bin/bash -c "dokku ps $TEST_APP | grep -q \"node web.js\""
# echo "output: $output"
# echo "status: $status"
# assert_success
# }
@test "(ps) dockerfile" {
deploy_app dockerfile
run /bin/bash -c "dokku ps:stop $TEST_APP"

View File

@@ -13,10 +13,17 @@ teardown() {
}
@test "(ps) ps:help" {
run /bin/bash -c "dokku ps"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage container processes"
help_output="$output"
run /bin/bash -c "dokku ps:help"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage container processes"
assert_output "$help_output"
}
@test "(ps) ps:inspect" {

View File

@@ -13,18 +13,6 @@ teardown() {
global_teardown
}
# @test "(ps) herokuish base" {
# # CI support: 'Ah. I just spoke with our Docker expert --
# # looks like docker exec is built to work with docker-under-libcontainer,
# # but we're using docker-under-lxc. I don't have an estimated time for the fix, sorry
# skip "circleci does not support docker exec at the moment."
# deploy_app
# run /bin/bash -c "dokku ps $TEST_APP | grep -q \"node web.js\""
# echo "output: $output"
# echo "status: $status"
# assert_success
# }
@test "(ps) herokuish" {
deploy_app
run /bin/bash -c "dokku ps:stop $TEST_APP"