mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 22:39:22 +01:00
fix defaults not handled by yaml configuration
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
defaultImageDefaults = model.Image{
|
||||
defaultImageDefaults = model.ImageDefaults{
|
||||
NotifyOn: model.NotifyOnDefaults,
|
||||
SortTags: registry.SortTagReverse,
|
||||
}
|
||||
@@ -173,7 +173,9 @@ func TestListJobDirectory(t *testing.T) {
|
||||
func TestDefaultImageOptions(t *testing.T) {
|
||||
fc := New(&model.PrdFile{
|
||||
Filename: "./fixtures/dockerhub.yml",
|
||||
}, &model.Image{WatchRepo: utl.NewTrue()})
|
||||
}, &model.ImageDefaults{
|
||||
WatchRepo: utl.NewTrue(),
|
||||
})
|
||||
|
||||
for _, job := range fc.ListJob() {
|
||||
assert.True(t, *job.Image.WatchRepo)
|
||||
|
||||
Reference in New Issue
Block a user