Skip to content

Commit 9cf2db8

Browse files
ndeloofglours
authored andcommitted
fix loading gw_priority
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 0d26b77 commit 9cf2db8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

loader/loader_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3706,3 +3706,16 @@ services:
37063706
assert.Equal(t, len(p.Services["test"].Gpus), 1)
37073707
assert.Equal(t, p.Services["test"].Gpus[0].Count, types.DeviceCount(-1))
37083708
}
3709+
3710+
func TestGwPriority(t *testing.T) {
3711+
p, err := loadYAML(`
3712+
name: load-gw_priority
3713+
services:
3714+
test:
3715+
networks:
3716+
test:
3717+
gw_priority: 42
3718+
`)
3719+
assert.NilError(t, err)
3720+
assert.Equal(t, p.Services["test"].Networks["test"].GatewayPriority, 42)
3721+
}

types/derived.gen.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)