Migrate application graph test to new Radius.Core/* types#12436
Migrate application graph test to new Radius.Core/* types#12436lakshmimsft wants to merge 1 commit into
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
6a54987 to
457f8b1
Compare
Radius functional test overviewClick here to see the test run details
Test Status⌛ Building Radius and pushing container images for functional tests... |
There was a problem hiding this comment.
Pull request overview
This pull request migrates the Core RP “application graph” functional test from legacy Applications.Core/* resources to the new Radius.Core/* / Radius.Compute/* resource types using the 2025-08-01-preview API, aligning the test suite with the updated graph model for the new providers.
Changes:
- Updated the test Bicep template to deploy
Radius.Core/applicationsplus twoRadius.Compute/containers, including the newcontainersobject schema andreadinessProbe.httpGet, and switched the front→back connection source to a resource ID (backendContainer.id). - Reworked the Go test to use preview environment pre-setup, new validation resource-type constants, and the
v20250801previewgraph client, replacing the static JSON fixture with portable/dynamic assertions. - Removed the obsolete graph output fixture JSON now that assertions are derived dynamically from the graph response.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/functional-portable/corerp/noncloud/resources/testdata/corerp-resources-application-graph.bicep | Migrates the deployed resources to Radius.Core/* + Radius.Compute/* and updates container schema/connection source to match the new graph model. |
| test/functional-portable/corerp/noncloud/resources/testdata/corerp-resources-application-graph-out.json | Removes the legacy static graph fixture no longer used by the test. |
| test/functional-portable/corerp/noncloud/resources/application_test.go | Updates the test to use preview env setup and the v20250801preview graph client with dynamic, cluster-portable assertions. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12436 +/- ##
==========================================
- Coverage 53.34% 53.33% -0.02%
==========================================
Files 756 756
Lines 49040 49040
==========================================
- Hits 26162 26154 -8
- Misses 20451 20455 +4
- Partials 2427 2431 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Migrates the application-graph functional test from Applications.Core/* to the new resource types and the 2025-08-01-preview API.
Reason for change
graph api for new types updated after previous round of migration of tests.
File change summary
Bicep ( corerp-resources-application-graph.bicep ): Radius.Core/applications + two Radius.Compute/containers , each with an environment reference and the new plural containers / readinessProbe schema. The front→back connection now uses a resource-ID source ( backendContainer.id ) instead of a URL, matching the new connection model.
• Test ( application_test.go ): uses the preview-env PreSetup , the new validation resource-type constants ( CoreApplicationsResource , ComputeContainersResource ), and the v20250801preview GetGraph client.
• Assertions are now dynamic and portable: validates resource types, the application / environment references, and the front↔back connection edge in both directions.