From 982541205f308905db36d9aae311d0f13321837a Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 16 Jun 2023 11:53:57 +0000 Subject: [PATCH] Check ContentSource when creating volume from snapshot --- pkg/sanity/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/sanity/controller.go b/pkg/sanity/controller.go index 9eb472d2..85d307cc 100644 --- a/pkg/sanity/controller.go +++ b/pkg/sanity/controller.go @@ -588,7 +588,8 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *TestCo }, }, } - _, err := r.CreateVolume(context.Background(), vol2Req) + vol, err := r.CreateVolume(context.Background(), vol2Req) + Expect(vol.GetVolume().ContentSource).NotTo(BeNil()) Expect(err).NotTo(HaveOccurred()) })