Skip to content

Commit

Permalink
fix reset_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Suleiman Dibirov <[email protected]>
  • Loading branch information
idsulik authored and glours committed Nov 7, 2024
1 parent 3d98bd8 commit b6ac6be
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions loader/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func TestResetCycle(t *testing.T) {
errorMsg string
}{
{
name: "no cycle",
name: "simple_alias_no_cycle",
config: `
name: test
services:
Expand All @@ -99,10 +99,9 @@ services:
a2: *a
`,
expectError: false,
errorMsg: "",
},
{
name: "no cycle reversed",
name: "simple_alias_reversed_no_cycle",
config: `
name: test
services:
Expand All @@ -111,12 +110,11 @@ services:
a: *a
`,
expectError: false,
errorMsg: "",
},
{
name: "no cycle 2",
name: "nested_merge_no_cycle",
config: `
name: no_cycle_2
name: test
x-templates:
x-gluetun: &gluetun
environment: &gluetun_env
Expand All @@ -131,12 +129,11 @@ x-templates:
<<: *gluetun_env_pia
`,
expectError: false,
errorMsg: "",
},
{
name: "no cycle 3",
name: "multiple_services_common_config",
config: `
name: no_cycle_3
name: test
x-common:
&common
restart: unless-stopped
Expand All @@ -155,11 +152,11 @@ services:
image: alpine:latest
`,
expectError: false,
errorMsg: "",
},
{
name: "healthcheck_cycle",
name: "direct_self_reference_cycle",
config: `
name: test
x-healthcheck: &healthcheck
egress-service:
<<: *healthcheck
Expand Down

0 comments on commit b6ac6be

Please sign in to comment.