Skip to content

Commit a7826f0

Browse files
committed
Bug fixes for the analytics-header-filter test
1 parent d818d8f commit a7826f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gateway/it/features/analytics-header-filter.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Feature: Analytics Header Filter Policy
101101
Then the response should be successful
102102
And the response should be valid JSON
103103
And the JSON response field "status" should be "success"
104-
And I wait for the endpoint "http://localhost:8080/analytics-request/v1.0/data" to be ready
104+
And I wait for the endpoint "http://localhost:8080/analytics-response/v1.0/data" to be ready
105105

106106
When I set header "Content-Type" to "application/json"
107107
And I set header "User-Agent" to "test-client"
@@ -180,7 +180,7 @@ Feature: Analytics Header Filter Policy
180180
Then the response status code should be 400
181181
And the response should be valid JSON
182182
And the JSON response field "status" should be "error"
183-
And the response body should contain "operation"
183+
And the response body should contain "configuration validation failed"
184184

185185
Scenario: Invalid policy configuration - invalid operation value
186186
Given I authenticate using basic auth as "admin"
@@ -212,7 +212,7 @@ Feature: Analytics Header Filter Policy
212212
Then the response status code should be 400
213213
And the response should be valid JSON
214214
And the JSON response field "status" should be "error"
215-
And the response body should contain "operation"
215+
And the response body should contain "configuration validation failed"
216216

217217
Scenario: Invalid policy configuration - missing headers field
218218
Given I authenticate using basic auth as "admin"
@@ -242,7 +242,7 @@ Feature: Analytics Header Filter Policy
242242
Then the response status code should be 400
243243
And the response should be valid JSON
244244
And the JSON response field "status" should be "error"
245-
And the response body should contain "headers"
245+
And the response body should contain "configuration validation failed"
246246

247247
Scenario: Case-insensitive header matching with allow operation
248248
Given I authenticate using basic auth as "admin"

0 commit comments

Comments
 (0)