Skip to content

Conversation

@jremy42
Copy link
Contributor

@jremy42 jremy42 commented Oct 22, 2025

close #3102

@jremy42 jremy42 changed the title Feat/datawarehouse integration feat(datawarehouse): integration Oct 23, 2025
@jremy42 jremy42 force-pushed the feat/datawarehouse_integration branch from 25d9e00 to 2a90b47 Compare October 23, 2025 09:29
@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 0.47281% with 421 lines in your changes missing coverage. Please review.
✅ Project coverage is 1.65%. Comparing base (2cf89e8) to head (8ff6632).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
internal/services/datawarehouse/deployment.go 0.00% 151 Missing ⚠️
internal/services/datawarehouse/user.go 0.00% 123 Missing ⚠️
internal/services/datawarehouse/database.go 0.00% 90 Missing ⚠️
internal/services/datawarehouse/testfuncs/sweep.go 0.00% 23 Missing ⚠️
internal/services/datawarehouse/types.go 0.00% 18 Missing ⚠️
internal/services/datawarehouse/waiters.go 0.00% 13 Missing ⚠️
provider/sdkv2.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master   #3421      +/-   ##
=========================================
- Coverage    1.66%   1.65%   -0.02%     
=========================================
  Files         391     398       +7     
  Lines       43116   43539     +423     
=========================================
+ Hits          720     722       +2     
- Misses      42313   42734     +421     
  Partials       83      83              

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

@jremy42 jremy42 force-pushed the feat/datawarehouse_integration branch 8 times, most recently from d4d4d18 to 00245c3 Compare October 27, 2025 06:54
@jremy42 jremy42 marked this pull request as ready for review October 27, 2025 06:55
@jremy42 jremy42 requested a review from remyleone as a code owner October 27, 2025 06:55
@jremy42 jremy42 force-pushed the feat/datawarehouse_integration branch from 00245c3 to abb244e Compare October 27, 2025 06:56
@jremy42 jremy42 changed the title feat(datawarehouse): integration feat(datawarehouse): add support for deployments, databases and users Oct 27, 2025
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

// Fetch a valid ClickHouse version to create a deployment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be factored in a dedicated function?

return datawarehouseapi.NewAPI(meta.ExtractScwClient(m))
}

func expandStringList(list []any) []string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coud this function be migrated in the types package to be reused? Are we sure that there is no function in this package that already provide this feature?


api := datawarehouse.NewAPI(tt.Meta)

versionsResp, err := api.ListVersions(&datawarehouseSDK.ListVersionsRequest{}, scw.WithAllPages())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be extracted in a function?

}

func testSweepDatawarehouseDeployment(_ string) error {
return acctest.SweepRegions([]scw.Region{scw.RegionFrPar}, func(scwClient *scw.Client, region scw.Region) error {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be possible to use datawarehouseSDK.Regions() here?

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.

Datawarehouse : implementation resource

4 participants