github.com/pivotal-cf/go-pivnet/v6@v6.0.2/integration/products_lifecycle_test.go (about) 1 package integration_test 2 3 import ( 4 . "github.com/onsi/ginkgo" 5 . "github.com/onsi/gomega" 6 "github.com/pivotal-cf/go-pivnet/v6" 7 ) 8 9 var _ = Describe("Products Lifecycle", func() { 10 Describe("finding a product by slug", func() { 11 It("returns the corresponding product", func() { 12 product, err := client.Products.Get(testProductSlug) 13 Expect(err).NotTo(HaveOccurred()) 14 15 Expect(product).To(Equal(pivnet.Product{ 16 ID: 90, 17 Slug: testProductSlug, 18 Name: "Pivnet Resource Test", 19 S3Directory: &pivnet.S3Directory{ 20 Path: "/product_files/Pivotal-Test", 21 }, 22 InstallsOnPks: false, 23 })) 24 }) 25 }) 26 })