mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
fix: merge artifacts and broken shoutrrr tests (#929)
* test: add missing container test suite * fix broken tests * fix: remove duplicate merge artifact Co-authored-by: Simon Aronsson <simme@arcticbit.se>
This commit is contained in:
parent
dff8378778
commit
d38e52b5c6
5 changed files with 36 additions and 12 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"github.com/containrrr/watchtower/pkg/container"
|
||||
"github.com/docker/docker/api/types"
|
||||
container2 "github.com/docker/docker/api/types/container"
|
||||
"github.com/docker/go-connections/nat"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -19,6 +20,7 @@ func CreateMockContainer(id string, name string, image string, created time.Time
|
|||
Config: &container2.Config{
|
||||
Image: image,
|
||||
Labels: make(map[string]string),
|
||||
ExposedPorts: map[nat.Port]struct{}{},
|
||||
},
|
||||
}
|
||||
return *container.NewContainer(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue