Skip to content

Commit

Permalink
Added compose test
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
  • Loading branch information
simonferquel committed Aug 9, 2017
1 parent bd3f74d commit 9843598
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cli/compose/convert/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,14 @@ func TestConvertUpdateConfigOrder(t *testing.T) {
})
assert.Equal(t, updateConfig.Order, "stop-first")
}

func TestIsolation(t *testing.T) {
src := composetypes.ServiceConfig{
Isolation: "test",
}
result, err := Service("1.32", Namespace{name: "foo"}, src, nil, nil, nil, nil)
if err != nil {
t.Fatal(err)
}
assert.Equal(t, "test", result.TaskTemplate.ContainerSpec.Isolation)
}

0 comments on commit 9843598

Please sign in to comment.