Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions traffic_ops/testing/api/v1/hdr_rw_dot_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ func getFirstDnsOrHttpDeliveryService(t *testing.T) *tc.DeliveryServiceNullable
default:
continue
}

if ds.MaxOriginConnections != nil && *ds.MaxOriginConnections > 0 {
continue // MaxOriginConnections adds lines to the Header Rewrite, throwing the tests (we test MaxOriginConns remap lines separately in GetTestHdrRwDotConfigMaxOriginConns).
}
return &ds
}

t.Errorf("Cannot test hdr_rw_dot_config with no http or dns deliveryservices: %s", err)
t.Errorf("Cannot test hdr_rw_dot_config with no http or dns deliveryservices without maxOriginConnections: %s", err)
return nil

}
Expand Down