Skip to content

Conversation

@MintsInc
Copy link
Member

@MintsInc MintsInc commented Jan 26, 2026

Context

BDD test undo operations fail when path parameters are needed because the values stored in path_parameters are double-serialized. The undo mechanism expects raw values, not JSON strings.

Changes

  • Modified request_parameter function in tests/conftest.py
  • Extract raw value first: value = glom(context, path)
  • Store raw value in path_parameters for undo operations (with both original and snake_case naming)
  • Serialize to JSON only for API kwargs: context["api_request"]["kwargs"][param_name] = json.dumps(value)

Tests

Run BDD tests that use fixtures with path parameters (on top of the changes generated by https://github.com/DataDog/datadog-api-spec/pull/4875).** Verify undo operations execute successfully without serialization errors.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MintsInc MintsInc marked this pull request as ready for review January 28, 2026 09:51
@MintsInc MintsInc requested review from a team as code owners January 28, 2026 09:51
@MintsInc MintsInc merged commit fabdb2b into master Jan 28, 2026
17 of 18 checks passed
@MintsInc MintsInc deleted the ulysse.mavrocordatos/fix-path-parameter-in-undo branch January 28, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants