Skip to content

Commit

Permalink
Fix broken http2 cluster tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhavlov committed Jul 13, 2022
1 parent 4072e8f commit bb47420
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions agent/proxycfg/testing_terminating_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ func TestConfigSnapshotTerminatingGatewaySNI(t testing.T) *ConfigSnapshot {
func TestConfigSnapshotTerminatingGatewayHTTP2(t testing.T) *ConfigSnapshot {
web := structs.NewServiceName("web", nil)

return TestConfigSnapshotTerminatingGateway(t, false, nil, []UpdateEvent{
return TestConfigSnapshotTerminatingGateway(t, false, nil, []cache.UpdateEvent{
{
CorrelationID: gatewayServicesWatchID,
Result: &structs.IndexedGatewayServices{
Expand Down Expand Up @@ -596,19 +596,22 @@ func TestConfigSnapshotTerminatingGatewayHTTP2(t testing.T) *ConfigSnapshot {
func TestConfigSnapshotTerminatingGatewaySubsetsHTTP2(t testing.T) *ConfigSnapshot {
web := structs.NewServiceName("web", nil)

return TestConfigSnapshotTerminatingGateway(t, false, nil, []UpdateEvent{
return TestConfigSnapshotTerminatingGateway(t, false, nil, []cache.UpdateEvent{
{
CorrelationID: serviceResolverIDPrefix + web.String(),
Result: &structs.ConfigEntryResponse{
Entry: &structs.ServiceResolverConfigEntry{
Kind: structs.ServiceResolver,
Name: "web",
Subsets: map[string]structs.ServiceResolverSubset{
"v1": {
Filter: "Service.Meta.version == 1",
},
"v2": {
Filter: "Service.Meta.version == 2",
Result: &structs.IndexedConfigEntries{
Kind: structs.ServiceResolver,
Entries: []structs.ConfigEntry{
&structs.ServiceResolverConfigEntry{
Kind: structs.ServiceResolver,
Name: "web",
Subsets: map[string]structs.ServiceResolverSubset{
"v1": {
Filter: "Service.Meta.version == 1",
},
"v2": {
Filter: "Service.Meta.version == 2",
},
},
},
},
Expand Down

0 comments on commit bb47420

Please sign in to comment.