Skip to content

Commit

Permalink
Test new label
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-ahman committed Oct 17, 2022
1 parent 8e9d2ef commit 0236f91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/container/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ var _ = Describe("the container", func() {
Expect(name).To(Equal("test-containrrr"))
Expect(name).NotTo(Equal("wrong-name"))
})
It("should return its mock on calls to .NetworkService()", func() {
c = mockContainerWithLabels(map[string]string{"com.centurylinklabs.watchtower.network-service": "mock"})
name := c.NetworkService()
Expect(name).To(Equal("mock"))
Expect(name).NotTo(Equal("wrong-name"))
})
It("should return its ID on calls to .ID()", func() {
id := c.ID()

Expand Down

0 comments on commit 0236f91

Please sign in to comment.