Skip to content
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
22 changes: 17 additions & 5 deletions tests/suite/scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ var _ = Describe("Scale test", Ordered, Label("nfr", "scale"), func() {
ngfPodName string
promInstance framework.PrometheusInstance
promPortForwardStopCh = make(chan struct{})

upstreamServerCount int32
)

const (
httpListenerCount = 64
httpsListenerCount = 64
httpRouteCount = 1000
upstreamServerCount = 648
httpListenerCount = 64
httpsListenerCount = 64
httpRouteCount = 1000
ossUpstreamServerCount = 648
plusUpstreamServerCount = 556
)

BeforeAll(func() {
Expand Down Expand Up @@ -85,6 +88,12 @@ var _ = Describe("Scale test", Ordered, Label("nfr", "scale"), func() {
if !clusterInfo.IsGKE {
Expect(promInstance.PortForward(k8sConfig, promPortForwardStopCh)).To(Succeed())
}

if *plusEnabled {
upstreamServerCount = plusUpstreamServerCount
} else {
upstreamServerCount = ossUpstreamServerCount
}
})

BeforeEach(func() {
Expand Down Expand Up @@ -563,7 +572,10 @@ The logs are attached only if there are errors.
)
})

It(fmt.Sprintf("scales upstream servers to %d", upstreamServerCount), func() {
It(fmt.Sprintf("scales upstream servers to %d for OSS and %d for Plus",
ossUpstreamServerCount,
plusUpstreamServerCount,
), func() {
const testName = "TestScale_UpstreamServers"

testResultsDir := filepath.Join(resultsDir, testName)
Expand Down
Loading