mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
add test for invalid value
This commit is contained in:
parent
fb8dd3b04e
commit
558cde3b54
1 changed files with 8 additions and 0 deletions
|
|
@ -224,6 +224,14 @@ var _ = Describe("the container", func() {
|
|||
Expect(c.IsNoPull()).To(Equal(false))
|
||||
})
|
||||
})
|
||||
When("no-pull label is set to an invalid value", func() {
|
||||
c := MockContainer(WithLabels(map[string]string{
|
||||
"com.centurylinklabs.watchtower.no-pull": "maybe",
|
||||
}))
|
||||
It("should return false", func() {
|
||||
Expect(c.IsNoPull()).To(Equal(false))
|
||||
})
|
||||
})
|
||||
When("no-pull label is unset", func() {
|
||||
c = MockContainer(WithLabels(map[string]string{}))
|
||||
It("should return false", func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue