Skip to content

Commit

Permalink
Fix scenario no p update fail retriable, fail permanent, success (#209)
Browse files Browse the repository at this point in the history
* fix(test) bitbar expected result

* fix(test) bitbar expected result

* fix(test) remove flaky scenario
  • Loading branch information
YYChen01988 authored Mar 13, 2024
1 parent 2667804 commit 8f8e346
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions features/server_response.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,6 @@ Feature: Server responses
# Retry of the previous request
Then the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.name" equals "span 2"

Scenario: No P update: fail-retriable, fail-permanent, success
When I load scenario "GenerateSpansScenario"
And I wait to receive a sampling request
# 500 - Server error (retry) but still recorded by MazeRunner
* I set the HTTP status code for the next requests to 500,500
* I invoke "sendNextSpan" for "span 1 - fail/retry"
# Failure & Retry
* I wait to receive 2 traces
* the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.name" equals "span 1"
* I discard the oldest trace
* the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.name" equals "span 1"
* I discard the oldest trace
# 400 - Retry, payload rejected (no retry)
* I set the HTTP status code for the next requests to 400,200
* I invoke "sendNextSpan" for "span 2 - fail/no retry"
* I wait to receive 2 traces
* the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.name" equals "span 2"
* I discard the oldest trace
# Retry again of the earlier 500 failure
* the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.name" equals "span 1"
* I discard the oldest trace
# 200 - Payload accepted
* I set the HTTP status code for the next request to 200
* I invoke "sendNextSpan" for "span 3 - success"
* I wait to receive 1 trace
* the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.name" equals "span 3"

Scenario: No P update: fail-retriable, success, fail-permanent
Given I set the HTTP status code for the next request to 200
And I load scenario "GenerateSpansScenario"
Expand Down

0 comments on commit 8f8e346

Please sign in to comment.