Fix expose tests
This commit is contained in:
@@ -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]: 5432~>4242"
|
||||
assert_contains "${lines[*]}" "exposed on port(s) [container->host]: 5432->4242"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user