chore: add a test to ensure that all resources got a data source#3663
Open
remyleone wants to merge 5 commits intoscaleway:mainfrom
Open
chore: add a test to ensure that all resources got a data source#3663remyleone wants to merge 5 commits intoscaleway:mainfrom
remyleone wants to merge 5 commits intoscaleway:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3663 +/- ##
======================================
Coverage 2.33% 2.33%
======================================
Files 453 453
Lines 49839 49839
======================================
Hits 1165 1165
Misses 48582 48582
Partials 92 92 ☔ View full report in Codecov by Sentry. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a test to verify that all resources in the Scaleway Terraform provider have corresponding data sources, helping maintain consistency between resources and data sources in the provider.
Changes:
- Added a new test function
TestSDKProvider_DataSourceExistForEachDataSourcethat iterates through all resources and verifies a corresponding data source exists - Defined a comprehensive exception list of 64 resources that are allowed to not have corresponding data sources
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
yfodil
previously approved these changes
Feb 13, 2026
estellesoulard
previously approved these changes
Feb 13, 2026
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 17, 2026
* chore: add a test to ensure that all resources got a data source * Update provider/sdkv2_test.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
auto-merge was automatically disabled
February 27, 2026 10:20
Pull request was closed
The base branch was changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.