From 5599699d29f325d0ecfbd1c89d3c156851e58c92 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:22:50 +0200 Subject: [PATCH] test: compose cgroup property Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- bake/compose_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bake/compose_test.go b/bake/compose_test.go index e60a13f6..d45327c1 100644 --- a/bake/compose_test.go +++ b/bake/compose_test.go @@ -758,6 +758,19 @@ services: require.NoError(t, err) } +func TestCgroup(t *testing.T) { + var dt = []byte(` +services: + scratch: + build: + context: ./webapp + cgroup: private +`) + + _, err := ParseCompose([]composetypes.ConfigFile{{Content: dt}}, nil) + require.NoError(t, err) +} + // chdir changes the current working directory to the named directory, // and then restore the original working directory at the end of the test. func chdir(t *testing.T, dir string) {