Swap grep context with grep options

This commit is contained in:
Nick Hammond
2024-06-06 09:26:12 -07:00
parent eb79d93139
commit c7bd377fa5
12 changed files with 43 additions and 43 deletions

View File

@@ -153,10 +153,10 @@ class CommandsTraefikTest < ActiveSupport::TestCase
new_command.logs(grep: "hello!").join(" ")
end
test "traefik logs with grep hello! and context" do
test "traefik logs with grep hello! and grep options" do
assert_equal \
"docker logs traefik --timestamps 2>&1 | grep 'hello!' -C 2",
new_command.logs(grep: "hello!", context: 2).join(" ")
new_command.logs(grep: "hello!", grep_options: "-C 2").join(" ")
end
test "traefik remove container" do