Fix expose tests

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-28 22:15:28 -04:00
parent 7eb2b47db7
commit 5d08332c69
2 changed files with 3 additions and 3 deletions

View File

@@ -21,10 +21,10 @@ teardown() {
@test "($PLUGIN_COMMAND_PREFIX:expose) success when not providing a custom port" {
run dokku "$PLUGIN_COMMAND_PREFIX:expose" l
[[ "${lines[*]}" =~ exposed\ on\ port\(s\)\ [[:digit:]]+ ]]
[[ "${lines[*]}" =~ exposed\ on\ port\(s\)\ \[container\-\>host\]\:\ [[:digit:]]+ ]]
}
@test "($PLUGIN_COMMAND_PREFIX:expose) success when providing a custom port" {
run dokku "$PLUGIN_COMMAND_PREFIX:expose" l 4242
assert_contains "${lines[*]}" "exposed on port(s) [container~>host]: 6379~>4242"
assert_contains "${lines[*]}" "exposed on port(s) [container->host]: 6379->4242"
}