Skip to content

Commit

Permalink
test(executeDockerCompose): verify output is returned from `docker-co…
Browse files Browse the repository at this point in the history
…mpose`
  • Loading branch information
bauglir committed Jul 30, 2020
1 parent 0508e0f commit 8547860
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/kroki/service_test.jl
Expand Up @@ -74,6 +74,20 @@ end
end

@testset "local instance management" begin
@static if Sys.which("docker-compose") !== nothing
@testset "wraps `docker-compose` with local service definitions" begin
status_report = executeDockerCompose("ps")

# Verify known pieces of `docker-compose ps` output are returned
@test occursin("Name", status_report)
@test occursin("Command", status_report)
@test occursin("State", status_report)
@test occursin("Ports", status_report)
end
else
@test_skip "Tests requiring `docker-compose` are skipped"
end

@testset "`executeDockerCompose` throws descriptive errors indicating" begin
@testset "dependencies are missing" begin
try
Expand Down

0 comments on commit 8547860

Please sign in to comment.