@@ -56,6 +56,13 @@ func ValidateResourceVersionStable(ctx context.Context, proxy ClusterProxy, name
56
56
Consistently (func (g Gomega ) {
57
57
objectsWithResourceVersion , objects , err := getObjectsWithResourceVersion (ctx , proxy , namespace , ownerGraphFilterFunction )
58
58
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
+
59
66
g .Expect (previousResourceVersions ).To (BeComparableTo (objectsWithResourceVersion ), printObjectDiff (previousObjects , objects ))
60
67
}, 2 * time .Minute , 15 * time .Second ).Should (Succeed (), "resourceVersions didn't stay stable" )
61
68
}
@@ -67,7 +74,9 @@ func printObjectDiff(previousObjects, newObjects map[string]client.Object) func(
67
74
preservedObjects := objectIDs (previousObjects ).Intersection (objectIDs (newObjects ))
68
75
69
76
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 )))
71
80
if len (createdObjects ) > 0 {
72
81
output .WriteString ("\n Detected new objects\n " )
73
82
for objID := range createdObjects {
0 commit comments