github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/integration/docker/search_test.go (about) 1 // Copyright (c) 2018 Intel Corporation 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 package docker 6 7 import ( 8 . "github.com/onsi/ginkgo" 9 . "github.com/onsi/gomega" 10 ) 11 12 var _ = Describe("docker search", func() { 13 var ( 14 args []string 15 ) 16 17 Context("search an image", func() { 18 It("should filter the requests", func() { 19 args = []string{"--filter", "is-official=true", "--filter=stars=3", Image} 20 stdout, _, exitCode := dockerSearch(args...) 21 Expect(exitCode).To(Equal(0)) 22 Expect(stdout).To(ContainSubstring(Image)) 23 }) 24 }) 25 })