Skip to content

Commit e98d6a9

Browse files
committed
Verify traffic before proceeding in client settings test now that we write status earlier
1 parent b866c06 commit e98d6a9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/suite/client_settings_test.go

+23
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,29 @@ var _ = Describe("ClientSettingsPolicy", Ordered, Label("functional", "cspolicy"
104104
}
105105
})
106106

107+
Context("verify working traffic", func() {
108+
It("should return a 200 response for HTTPRoutes", func() {
109+
baseCoffeeURL := baseURL + "/coffee"
110+
baseTeaURL := baseURL + "/tea"
111+
112+
Eventually(
113+
func() error {
114+
return expectRequestToSucceed(baseCoffeeURL, address, "URI: /coffee")
115+
}).
116+
WithTimeout(timeoutConfig.RequestTimeout).
117+
WithPolling(500 * time.Millisecond).
118+
Should(Succeed())
119+
120+
Eventually(
121+
func() error {
122+
return expectRequestToSucceed(baseTeaURL, address, "URI: /tea")
123+
}).
124+
WithTimeout(timeoutConfig.RequestTimeout).
125+
WithPolling(500 * time.Millisecond).
126+
Should(Succeed())
127+
})
128+
})
129+
107130
Context("nginx config", func() {
108131
var conf *framework.Payload
109132
filePrefix := fmt.Sprintf("/etc/nginx/includes/ClientSettingsPolicy_%s", namespace)

0 commit comments

Comments
 (0)