@@ -56,6 +56,13 @@ func ValidateResourceVersionStable(ctx context.Context, proxy ClusterProxy, name
5656	Consistently (func (g  Gomega ) {
5757		objectsWithResourceVersion , objects , err  :=  getObjectsWithResourceVersion (ctx , proxy , namespace , ownerGraphFilterFunction )
5858		g .Expect (err ).ToNot (HaveOccurred ())
59+ 		resource , er  :=  yaml .Marshal (objectsWithResourceVersion )
60+ 		g .Expect (er ).ToNot (HaveOccurred ())
61+ 		fmt .Printf ("objectsWithResourceVersion:: %s\n " , string (resource ))
62+ 		resource1 , er  :=  yaml .Marshal (previousResourceVersions )
63+ 		g .Expect (er ).ToNot (HaveOccurred ())
64+ 		fmt .Printf ("previousResourceVersions:: %s\n " , string (resource1 ))
65+ 
5966		g .Expect (previousResourceVersions ).To (BeComparableTo (objectsWithResourceVersion ), printObjectDiff (previousObjects , objects ))
6067	}, 2 * time .Minute , 15 * time .Second ).Should (Succeed (), "resourceVersions didn't stay stable" )
6168}
@@ -67,7 +74,9 @@ func printObjectDiff(previousObjects, newObjects map[string]client.Object) func(
6774		preservedObjects  :=  objectIDs (previousObjects ).Intersection (objectIDs (newObjects ))
6875
6976		var  output  strings.Builder 
70- 
77+ 		previousResource , _  :=  yaml .Marshal (previousObjects )
78+ 		newResource , _  :=  yaml .Marshal (newObjects )
79+ 		output .WriteString (fmt .Sprintf ("\n  printing Objects %s:\n %s\n " , string (previousResource ), string (newResource )))
7180		if  len (createdObjects ) >  0  {
7281			output .WriteString ("\n Detected new objects\n " )
7382			for  objID  :=  range  createdObjects  {
0 commit comments