Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDKv2 Diff tests for primitive types #2829

Merged
merged 7 commits into from
Jan 15, 2025
Merged

Conversation

VenelinMartinov
Copy link
Contributor

@VenelinMartinov VenelinMartinov commented Jan 14, 2025

This PR finishes the test coverage for primitive types (string, bool, int and float) for the SDKv2 bridge for Diff. 14807c6 and 8552a4a contain the test recordings.

fixes #2786

@VenelinMartinov
Copy link
Contributor Author

VenelinMartinov commented Jan 14, 2025

This change is part of the following stack:

Change managed by git-spice.

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.49%. Comparing base (cb11d40) to head (05799fe).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2829   +/-   ##
=======================================
  Coverage   67.49%   67.49%           
=======================================
  Files         325      325           
  Lines       41621    41621           
=======================================
  Hits        28092    28092           
  Misses      11950    11950           
  Partials     1579     1579           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@VenelinMartinov VenelinMartinov requested review from t0yv0, iwahbe and a team January 14, 2025 10:39
@VenelinMartinov VenelinMartinov force-pushed the vvm/sdkv2_diff_primitive branch from ecbef29 to 62ee451 Compare January 14, 2025 10:40
@VenelinMartinov VenelinMartinov force-pushed the vvm/sdkv2_diff_primitive branch 2 times, most recently from 3a114ca to 82a72f1 Compare January 14, 2025 11:38
@VenelinMartinov VenelinMartinov force-pushed the vvm/test_sharding branch 3 times, most recently from a541316 to ae81692 Compare January 14, 2025 13:03
@VenelinMartinov VenelinMartinov force-pushed the vvm/sdkv2_diff_primitive branch 2 times, most recently from 8789663 to ec47d3c Compare January 14, 2025 15:23
@VenelinMartinov VenelinMartinov changed the base branch from vvm/test_sharding to master January 15, 2025 11:46
@VenelinMartinov VenelinMartinov force-pushed the vvm/sdkv2_diff_primitive branch from ec47d3c to 6058e94 Compare January 15, 2025 11:46
@VenelinMartinov VenelinMartinov enabled auto-merge (squash) January 15, 2025 12:03
@VenelinMartinov VenelinMartinov merged commit 9660285 into master Jan 15, 2025
71 checks passed
@VenelinMartinov VenelinMartinov deleted the vvm/sdkv2_diff_primitive branch January 15, 2025 12:18
VenelinMartinov added a commit that referenced this pull request Jan 17, 2025
This PR refactors the Set and List Diff tests to use the generic diff
utility functions and types introduced in
#2829. This should
make the tests more maintainable and more in-line with what other tests
do.


[861ec1f](861ec1f)
contains the changes:
- Refactors the tests to use the generic `diffSchemaValueMakerPair` and
`diffScenario` types for their tests.
- Refactors the tests to use `prop` for top-level properties and
`nested_prop` for nested ones, like the rest of the tests.
- Refactors the tests to use the generic `runSDKv2TestMatrix` test
function.
- Refactors the `valueMaker` functions from `value_makers.go` to return
a `map[string]cty.Value ` instead of a `cty.Value` which needs to be
transformed further after.
- Corrects three tests in `list element removed`, where the order of the
elements was wrong in the changed values.



[f800d2d](f800d2d)
contains the test recordings.

Related to #2788
Related to #2789
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.102.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDKv2 Test Primitive types in Diff
3 participants