@@ -94,21 +94,22 @@ func TGKEAssertGolden(assert *assert.Assertions, golden *golden.GoldenFile, clus
9494 })
9595
9696 // Cluster assertions
97- fmt .Sprintf ("DEBUG: Cluster assertions" )
9897 golden .JSONPathEqs (assert , * clusterJson , clusterCheckPaths )
9998
10099 // NodePool assertions
101- fmt .Sprintf ("DEBUG: NodePool assertions" )
102100 for _ , nodePool := range nodePools {
103- fmt .Sprintf ("DEBUG: NodePool assertions for %s" , nodePool )
104101 assert .Truef (clusterJson .Get (fmt .Sprintf ("nodePools.#(name==%s).name" , nodePool )).Exists (), "NodePool not found: %s" , nodePool )
105102
106103 nodeCheckPaths := utils .GetTerminalJSONPaths (golden .GetJSON ().Get (fmt .Sprintf ("nodePools.#(name==%s)" , nodePool )))
107104
108105 for _ , nodeCheckPath := range nodeCheckPaths {
106+ fmt .Printf ("DEBUG: NodePool %s nodeCheckPath assertions for %s START\n " , nodePool , nodeCheckPath )
109107 gotData := golden .ApplySanitizers (clusterJson .Get (fmt .Sprintf ("nodePools.#(name==%s)" , nodePool )).Get (nodeCheckPath ).String ())
108+ fmt .Printf ("DEBUG: NodePool %s nodeCheckPath assertions for %s #1\n " , nodePool , nodeCheckPath )
110109 gfData := golden .GetJSON ().Get (fmt .Sprintf ("nodePools.#(name==%s)" , nodePool )).Get (nodeCheckPath ).String ()
110+ fmt .Printf ("DEBUG: NodePool %s nodeCheckPath assertions for %s #2\n " , nodePool , nodeCheckPath )
111111 assert .Equalf (gfData , gotData , "For node %q path %q expected %q to match fixture %q" , nodePool , nodeCheckPath , gotData , gfData )
112+ fmt .Printf ("DEBUG: NodePool %s nodeCheckPath assertions for %s FINISH\n " , nodePool , nodeCheckPath )
112113 }
113114 }
114115}
0 commit comments