fix(providers/azure): case-insensitive + whitespace-tolerant SKU validation (closes #675) - #676
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThis PR applies a consistent normalization pattern to SKU validation across five Azure service clients: cache, compute, cosmosdb, database, and search. Each ChangesSKU Validation Normalization Across Azure Services
🎯 2 (Simple) | ⏱️ ~8 minutes Possibly Related Issues
Suggested Labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
…dation (closes #675) Replace exact `==` comparison in ValidateOffering with `strings.EqualFold(sku, strings.TrimSpace(rec.ResourceType))` across compute, database, cache, search, and cosmosdb service clients, matching the pattern already applied to synapse (commit 1313332). Add regression sub-tests for case-insensitive and whitespace-padded SKU inputs to each affected service.
964176d to
358b30b
Compare
|
Rebased onto latest feat/multicloud-web-frontend. Single conflict in providers/azure/services/search/client_test.go: upstream PR #641 added searchPurchaseURLFromMock + TestSearchClient_PurchaseCommitment_IdempotentReDrive in the same trailing region where this branch added TestSearchClient_ValidateOffering_CaseInsensitive. Both additions are orthogonal so I kept them side-by-side with their proper closing braces restored. No semantic conflicts on the 5 ValidateOffering bodies (auto-merge resolved cleanly). All 532 azure-provider tests pass locally. |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary
==comparison inValidateOfferingwithstrings.EqualFold(sku, strings.TrimSpace(rec.ResourceType))across compute, database, cache, search, and cosmosdb Azure service clientscase_insensitiveandwhitespace_trimmedregression sub-tests for each affected serviceTest plan
go test github.com/LeanerCloud/CUDly/providers/azure/services/compute-- passgo test github.com/LeanerCloud/CUDly/providers/azure/services/database-- passgo test github.com/LeanerCloud/CUDly/providers/azure/services/cache-- passgo test github.com/LeanerCloud/CUDly/providers/azure/services/cosmosdb-- passgo test github.com/LeanerCloud/CUDly/providers/azure/services/search-- pre-existing build failure (missing go.sum entry), not introduced by this PRCaseInsensitivesub-tests (case_insensitive + whitespace_trimmed across 4 buildable services) all passSummary by CodeRabbit