Skip to content

Commit

Permalink
modify zone size for oss and plus when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
salonichf5 committed Dec 20, 2024
1 parent b0ed7e2 commit be4d349
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/suite/upstream_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ var _ = Describe("UpstreamSettingsPolicy", Ordered, Label("functional", "uspolic
gatewayName = "gateway"
)

zoneSize := "512k"
if *plusEnabled {
zoneSize = "1m"
}

BeforeAll(func() {
ns := &core.Namespace{
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -141,13 +146,13 @@ var _ = Describe("UpstreamSettingsPolicy", Ordered, Label("functional", "uspolic
},
{
Directive: "zone",
Value: "uspolicy_coffee_80 512k",
Value: fmt.Sprintf("uspolicy_coffee_80 %s", zoneSize),
Upstream: "uspolicy_coffee_80",
File: "http.conf",
},
{
Directive: "zone",
Value: "uspolicy_tea_80 512k",
Value: fmt.Sprintf("uspolicy_tea_80 %s", zoneSize),
Upstream: "uspolicy_tea_80",
File: "http.conf",
},
Expand Down Expand Up @@ -321,7 +326,7 @@ var _ = Describe("UpstreamSettingsPolicy", Ordered, Label("functional", "uspolic
},
{
Directive: "zone",
Value: "uspolicy_coffee_80 512k",
Value: fmt.Sprintf("uspolicy_coffee_80 %s", zoneSize),
Upstream: "uspolicy_coffee_80",
File: "http.conf",
},
Expand Down Expand Up @@ -410,7 +415,7 @@ var _ = Describe("UpstreamSettingsPolicy", Ordered, Label("functional", "uspolic
})

func usPolicyHasNoAncestors(usPolicyNsName types.NamespacedName) bool {
GinkgoWriter.Printf("Checking that UpstreamSettingsPolicy %q has no ancestors in status", usPolicyNsName)
GinkgoWriter.Printf("Checking that UpstreamSettingsPolicy %q has no ancestors in status\n", usPolicyNsName)

ctx, cancel := context.WithTimeout(context.Background(), timeoutConfig.GetStatusTimeout)
defer cancel()
Expand Down

0 comments on commit be4d349

Please sign in to comment.