Cleanup tests
This commit is contained in:
@@ -18,7 +18,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:connect) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:connect" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:connect) success" {
|
||||
|
||||
@@ -14,7 +14,7 @@ load test_helper
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:destroy) error when container does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:destroy" non_existing_container
|
||||
assert_contains "${lines[*]}" "Redis service non_existing_container does not exist"
|
||||
assert_contains "${lines[*]}" "service non_existing_container does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:destroy) error when container is linked to an app" {
|
||||
|
||||
@@ -21,7 +21,7 @@ teardown() {
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:export) success with SSH TTY" {
|
||||
@test "($PLUGIN_COMMAND_PREFIX:export) success with SSH_TTY" {
|
||||
export ECHO_DOCKER_COMMAND="true"
|
||||
export SSH_TTY=`tty`
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:export" l
|
||||
@@ -29,7 +29,7 @@ teardown() {
|
||||
assert_output "docker exec dokku.redis.l cat /data/dump.rdb"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:export) success without SSH TTY" {
|
||||
@test "($PLUGIN_COMMAND_PREFIX:export) success without SSH_TTY" {
|
||||
export ECHO_DOCKER_COMMAND="true"
|
||||
unset SSH_TTY
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:export" l
|
||||
|
||||
@@ -16,7 +16,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:expose) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:expose" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:expose) success when not providing a custom port" {
|
||||
|
||||
@@ -16,7 +16,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:info) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:info" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:info) success" {
|
||||
|
||||
@@ -28,7 +28,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:link) error when the service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:link" not_existing_service my_app
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:link) error when the service is already linked to app" {
|
||||
|
||||
@@ -18,7 +18,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:logs) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:logs" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:logs) success when not tailing" {
|
||||
|
||||
@@ -16,7 +16,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:restart) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:restart" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:restart) success" {
|
||||
|
||||
@@ -16,7 +16,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:start) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:start" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:start) success" {
|
||||
|
||||
@@ -16,7 +16,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:stop) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:stop" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:stop) success" {
|
||||
|
||||
@@ -16,7 +16,7 @@ teardown() {
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:unexpose) error when service does not exist" {
|
||||
run dokku "$PLUGIN_COMMAND_PREFIX:unexpose" not_existing_service
|
||||
assert_contains "${lines[*]}" "Redis service not_existing_service does not exist"
|
||||
assert_contains "${lines[*]}" "service not_existing_service does not exist"
|
||||
}
|
||||
|
||||
@test "($PLUGIN_COMMAND_PREFIX:unexpose) success" {
|
||||
|
||||
Reference in New Issue
Block a user