From 7595bde08296e1140d056258ef5edc4969779334 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Fri, 22 Sep 2023 23:59:17 +0530 Subject: [PATCH] remove code Signed-off-by: Shubham Gupta --- pkg/test/step.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/test/step.go b/pkg/test/step.go index 41e375d7..230adca8 100644 --- a/pkg/test/step.go +++ b/pkg/test/step.go @@ -378,17 +378,6 @@ func (s *Step) CheckResource(expected assertArray, namespace string) []error { return testErrors } -func (s *Step) extractDataFromObject(obj client.Object, path string, resourceType string) ([]interface{}, error) { - data, found, err := unstructured.NestedSlice(obj.(runtime.Unstructured).UnstructuredContent(), strings.Split(path, "/")...) - if err != nil { - return nil, fmt.Errorf("failed to extract data from resource type %s at path '%s'. Error: %v", resourceType, path, err) - } - if !found { - return nil, fmt.Errorf("path '%s' not found in resource of type %s", path, resourceType) - } - return data, nil -} - // CheckResourceAbsent checks if the expected resource's state is absent in Kubernetes. func (s *Step) CheckResourceAbsent(expected runtime.Object, namespace string) error { cl, err := s.Client(false)