|
|
@ -657,14 +657,16 @@ func TestState_WatchesAndUpdates(t *testing.T) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
CorrelationID: envoyConfigPatchesID, |
|
|
|
CorrelationID: envoyConfigPatchesID, |
|
|
|
Result: structs.IndexedConfigEntries{ |
|
|
|
Result: &structs.IndexedConfigEntries{ |
|
|
|
|
|
|
|
Kind: structs.EnvoyPatchSet, |
|
|
|
Entries: []structs.ConfigEntry{envoyPatchSet}, |
|
|
|
Entries: []structs.ConfigEntry{envoyPatchSet}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Err: nil, |
|
|
|
Err: nil, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
CorrelationID: envoyConfigApplicationID, |
|
|
|
CorrelationID: envoyConfigApplicationID, |
|
|
|
Result: structs.IndexedConfigEntries{ |
|
|
|
Result: &structs.IndexedConfigEntries{ |
|
|
|
|
|
|
|
Kind: structs.ApplyEnvoyPatchSet, |
|
|
|
Entries: []structs.ConfigEntry{serviceEnvoyPatchSetApplication, envoyPatchSetApplication}, |
|
|
|
Entries: []structs.ConfigEntry{serviceEnvoyPatchSetApplication, envoyPatchSetApplication}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Err: nil, |
|
|
|
Err: nil, |
|
|
@ -1660,14 +1662,14 @@ func TestState_WatchesAndUpdates(t *testing.T) { |
|
|
|
events: []cache.UpdateEvent{ |
|
|
|
events: []cache.UpdateEvent{ |
|
|
|
{ |
|
|
|
{ |
|
|
|
CorrelationID: envoyConfigPatchesID, |
|
|
|
CorrelationID: envoyConfigPatchesID, |
|
|
|
Result: structs.IndexedConfigEntries{ |
|
|
|
Result: &structs.IndexedConfigEntries{ |
|
|
|
Entries: []structs.ConfigEntry{envoyPatchSet}, |
|
|
|
Entries: []structs.ConfigEntry{envoyPatchSet}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Err: nil, |
|
|
|
Err: nil, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
CorrelationID: envoyConfigApplicationID, |
|
|
|
CorrelationID: envoyConfigApplicationID, |
|
|
|
Result: structs.IndexedConfigEntries{ |
|
|
|
Result: &structs.IndexedConfigEntries{ |
|
|
|
Entries: []structs.ConfigEntry{serviceEnvoyPatchSetApplication, envoyPatchSetApplication}, |
|
|
|
Entries: []structs.ConfigEntry{serviceEnvoyPatchSetApplication, envoyPatchSetApplication}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Err: nil, |
|
|
|
Err: nil, |
|
|
|