@@ -55,7 +55,7 @@ func TestEgressIP(t *testing.T) {
55
55
}
56
56
err = assertFlowChanges (origFlows , flows ) // no changes
57
57
if err != nil {
58
- t .Fatalf ("Unexpected flow changes: %v" , err )
58
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
59
59
}
60
60
61
61
// Assign NetNamespace.EgressIP first, then HostSubnet.EgressIP, with a remote EgressIP
@@ -75,7 +75,7 @@ func TestEgressIP(t *testing.T) {
75
75
},
76
76
)
77
77
if err != nil {
78
- t .Fatalf ("Unexpected flow changes: %v" , err )
78
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
79
79
}
80
80
81
81
ns42 := eip .namespacesByVNID [42 ]
@@ -99,7 +99,7 @@ func TestEgressIP(t *testing.T) {
99
99
},
100
100
)
101
101
if err != nil {
102
- t .Fatalf ("Unexpected flow changes: %v" , err )
102
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
103
103
}
104
104
origFlows = flows
105
105
@@ -120,7 +120,7 @@ func TestEgressIP(t *testing.T) {
120
120
}
121
121
err = assertFlowChanges (origFlows , flows )
122
122
if err != nil {
123
- t .Fatalf ("Unexpected flow changes: %v" , err )
123
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
124
124
}
125
125
126
126
if eip .nodesByEgressIP ["172.17.0.100" ] != node3 || eip .nodesByEgressIP ["172.17.0.101" ] != node3 {
@@ -143,7 +143,7 @@ func TestEgressIP(t *testing.T) {
143
143
},
144
144
)
145
145
if err != nil {
146
- t .Fatalf ("Unexpected flow changes: %v" , err )
146
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
147
147
}
148
148
origFlows = flows
149
149
@@ -169,7 +169,7 @@ func TestEgressIP(t *testing.T) {
169
169
},
170
170
)
171
171
if err != nil {
172
- t .Fatalf ("Unexpected flow changes: %v" , err )
172
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
173
173
}
174
174
175
175
ns44 := eip .namespacesByVNID [44 ]
@@ -193,7 +193,7 @@ func TestEgressIP(t *testing.T) {
193
193
},
194
194
)
195
195
if err != nil {
196
- t .Fatalf ("Unexpected flow changes: %v" , err )
196
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
197
197
}
198
198
origFlows = flows
199
199
@@ -214,7 +214,7 @@ func TestEgressIP(t *testing.T) {
214
214
}
215
215
err = assertFlowChanges (origFlows , flows )
216
216
if err != nil {
217
- t .Fatalf ("Unexpected flow changes: %v" , err )
217
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
218
218
}
219
219
220
220
if eip .nodesByEgressIP ["172.17.0.102" ] != node4 || eip .nodesByEgressIP ["172.17.0.103" ] != node4 {
@@ -237,7 +237,7 @@ func TestEgressIP(t *testing.T) {
237
237
},
238
238
)
239
239
if err != nil {
240
- t .Fatalf ("Unexpected flow changes: %v" , err )
240
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
241
241
}
242
242
origFlows = flows
243
243
@@ -263,7 +263,7 @@ func TestEgressIP(t *testing.T) {
263
263
},
264
264
)
265
265
if err != nil {
266
- t .Fatalf ("Unexpected flow changes: %v" , err )
266
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
267
267
}
268
268
origFlows = flows
269
269
@@ -288,7 +288,7 @@ func TestEgressIP(t *testing.T) {
288
288
},
289
289
)
290
290
if err != nil {
291
- t .Fatalf ("Unexpected flow changes: %v" , err )
291
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
292
292
}
293
293
origFlows = flows
294
294
@@ -318,7 +318,7 @@ func TestEgressIP(t *testing.T) {
318
318
},
319
319
)
320
320
if err != nil {
321
- t .Fatalf ("Unexpected flow changes: %v" , err )
321
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
322
322
}
323
323
origFlows = flows
324
324
@@ -347,7 +347,7 @@ func TestEgressIP(t *testing.T) {
347
347
},
348
348
)
349
349
if err != nil {
350
- t .Fatalf ("Unexpected flow changes: %v" , err )
350
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
351
351
}
352
352
origFlows = flows
353
353
@@ -367,7 +367,7 @@ func TestEgressIP(t *testing.T) {
367
367
}
368
368
err = assertFlowChanges (origFlows , flows )
369
369
if err != nil {
370
- t .Fatalf ("Unexpected flow changes: %v" , err )
370
+ t .Fatalf ("Unexpected flow changes: %v\n Orig: %#v \n New: %#v " , err , origFlows , flows )
371
371
}
372
372
}
373
373
0 commit comments