mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
move imageDefaults from watch to defaults in config root
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
defaultImageDefaults = model.ImageDefaults{
|
||||
defaults = model.Defaults{
|
||||
NotifyOn: model.NotifyOnDefaults,
|
||||
SortTags: registry.SortTagReverse,
|
||||
}
|
||||
@@ -157,7 +157,7 @@ var (
|
||||
func TestListJobFilename(t *testing.T) {
|
||||
fc := New(&model.PrdFile{
|
||||
Filename: "./fixtures/dockerhub.yml",
|
||||
}, &defaultImageDefaults)
|
||||
}, &defaults)
|
||||
|
||||
assert.Equal(t, dockerhubFile, fc.ListJob())
|
||||
}
|
||||
@@ -165,7 +165,7 @@ func TestListJobFilename(t *testing.T) {
|
||||
func TestListJobDirectory(t *testing.T) {
|
||||
fc := New(&model.PrdFile{
|
||||
Directory: "./fixtures",
|
||||
}, &defaultImageDefaults)
|
||||
}, &defaults)
|
||||
|
||||
assert.Equal(t, append(append(bintrayFile, dockerhubFile...), append(lscrFile, quayFile...)...), fc.ListJob())
|
||||
}
|
||||
@@ -173,7 +173,7 @@ func TestListJobDirectory(t *testing.T) {
|
||||
func TestDefaultImageOptions(t *testing.T) {
|
||||
fc := New(&model.PrdFile{
|
||||
Filename: "./fixtures/dockerhub.yml",
|
||||
}, &model.ImageDefaults{
|
||||
}, &model.Defaults{
|
||||
WatchRepo: utl.NewTrue(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user