Update test framework to support RRTs#12012
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12012 +/- ##
==========================================
- Coverage 52.14% 52.14% -0.01%
==========================================
Files 734 734
Lines 46704 46704
==========================================
- Hits 24356 24352 -4
- Misses 20014 20016 +2
- Partials 2334 2336 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ba9d11b to
bf766e4
Compare
bf766e4 to
0999bfc
Compare
There was a problem hiding this comment.
Pull request overview
This PR extends the functional test framework to accommodate the newer Radius.Core/* and Radius.Compute/* resource types (alongside the existing Applications.Core/* types) and migrates an initial set of CoreRP portable functional tests as a proof-of-concept. It also updates default recipe pack tagging to align with recipe image tags.
Changes:
- Added new RP resource-type constants and updated cleanup logic to delete
Radius.Coreenvironments/applications viarad ... --preview. - Introduced a
PreSetuphook plus a helper to create/update preview environments (incl. Kubernetes namespace) for recipe-driven tests. - Migrated several CoreRP “resources” Bicep templates/tests to
Radius.Core/*andRadius.Compute/*, and updated recipe-pack tag selection to useversion.Release()(withlatestfor edge).
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/validation/shared.go | Adds new Radius.Core/* and Radius.Compute/* resource type constants; updates delete behavior for Core types via CLI preview commands. |
| test/rp/rptest.go | Adds PreSetup hook and NewPreviewEnvPreSetup helper; invokes PreSetup before executing test steps. |
| test/radcli/cli.go | Extends EnvironmentUpdatePreview to optionally set Kubernetes namespace; adds ApplicationDeletePreview. |
| test/functional-portable/corerp/noncloud/resources/testdata/corerp-resources-environment.bicep | Migrates environment template to Radius.Core/environments@2025-08-01-preview and new providers.kubernetes.namespace shape. |
| test/functional-portable/corerp/noncloud/resources/testdata/corerp-resources-container.bicep | Migrates app/container resources to Radius.Core/applications + Radius.Compute/containers schema. |
| test/functional-portable/corerp/noncloud/resources/testdata/corerp-resources-application.bicep | Migrates application template to Radius.Core/applications@2025-08-01-preview. |
| test/functional-portable/corerp/noncloud/resources/testdata/corerp-resources-app-env.bicep | Migrates app+env template to Radius.Core/* and uses environment: env.id. |
| test/functional-portable/corerp/noncloud/resources/environment_test.go | Updates expected RP resource type to CoreEnvironmentsResource. |
| test/functional-portable/corerp/noncloud/resources/container_test.go | Uses preview environment pre-setup and deploy parameterization; updates expected RP resource types. |
| test/functional-portable/corerp/noncloud/resources/application_test.go | Updates expected RP resource type to CoreApplicationsResource; removes namespace existence verification. |
| test/functional-portable/corerp/noncloud/resources/application_environment_test.go | Updates expected RP resource types to Core; removes namespace checks. |
| test/functional-portable/cli/noncloud/cli_test.go | Updates call site for new EnvironmentUpdatePreview(..., kubernetesNamespace) signature. |
| pkg/cli/recipepack/recipepack.go | Switches recipe OCI tag from version.Channel() to version.Release() (edge uses latest). |
This pull request updates how the OCI tag is determined for core resource type recipes in the `GetCoreTypesRecipeInfo` function. Instead of using the version channel (like "0.40" or "edge"), it now uses the full semantic version (like "0.58.0") to align with tags from the kube-recipes publishing pipeline. For edge or development builds, "latest" is still used. note: tests for this update will be included in pr: #12012 ## Type of change - This pull request fixes a bug in Radius and has an approved issue (#12026 ). Fixes: #12026 ## Contributor checklist Please verify that the PR meets the following requirements, where applicable: - An overview of proposed schema changes is included in a linked GitHub issue. - [ ] Yes - [x] Not applicable - A design document is added or updated under `eng/design-notes/` in this repository, if new APIs are being introduced. - [ ] Yes - [x] Not applicable - The design document has been reviewed and approved by Radius maintainers/approvers. - [ ] Yes - [x] Not applicable - A PR for [resource-types-contrib](https://github.com/radius-project/resource-types-contrib/) is created, if resource types or recipes are affected by the changes in this PR. - [ ] Yes - [x] Not applicable - A PR for [dashboard](https://github.com/radius-project/dashboard/) is created, if the Radius Dashboard is affected by the changes in this PR. - [ ] Yes - [x] Not applicable - A PR for the [documentation repository](https://github.com/radius-project/docs) is created, if the changes in this PR affect the documentation or any user facing updates are made. - [ ] Yes - [x] Not applicable Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
e3aa3db to
7e5f88d
Compare
7e5f88d to
49f2c17
Compare
Radius functional test overviewClick here to see the test run details
Test Status⌛ Building Radius and pushing container images for functional tests... |
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
49f2c17 to
a1d1e6f
Compare
Radius functional test overviewClick here to see the test run details
Test Status |
…2027) This pull request updates how the OCI tag is determined for core resource type recipes in the `GetCoreTypesRecipeInfo` function. Instead of using the version channel (like "0.40" or "edge"), it now uses the full semantic version (like "0.58.0") to align with tags from the kube-recipes publishing pipeline. For edge or development builds, "latest" is still used. note: tests for this update will be included in pr: radius-project#12012 ## Type of change - This pull request fixes a bug in Radius and has an approved issue (radius-project#12026 ). Fixes: radius-project#12026 ## Contributor checklist Please verify that the PR meets the following requirements, where applicable: - An overview of proposed schema changes is included in a linked GitHub issue. - [ ] Yes - [x] Not applicable - A design document is added or updated under `eng/design-notes/` in this repository, if new APIs are being introduced. - [ ] Yes - [x] Not applicable - The design document has been reviewed and approved by Radius maintainers/approvers. - [ ] Yes - [x] Not applicable - A PR for [resource-types-contrib](https://github.com/radius-project/resource-types-contrib/) is created, if resource types or recipes are affected by the changes in this PR. - [ ] Yes - [x] Not applicable - A PR for [dashboard](https://github.com/radius-project/dashboard/) is created, if the Radius Dashboard is affected by the changes in this PR. - [ ] Yes - [x] Not applicable - A PR for the [documentation repository](https://github.com/radius-project/docs) is created, if the changes in this PR affect the documentation or any user facing updates are made. - [ ] Yes - [x] Not applicable Signed-off-by: lakshmimsft <ljavadekar@microsoft.com> Signed-off-by: Reshma Abdul Rahim <reshmarahim.abdul@microsoft.com>
This pull request extends the functional test framework to support the new resource types (Radius.Core/environments, Radius.Core/applications, Radius.Compute/containers) alongside the existing Applications.Core/* types. It migrates the first group of tests as aproof-of-concept. ## Type of change - This pull request adds or changes features of Radius and has an approved issue (radius-project#11942 . Fixes: radius-project#11942 ## Contributor checklist Please verify that the PR meets the following requirements, where applicable: - An overview of proposed schema changes is included in a linked GitHub issue. - [ ] Yes - [x] Not applicable - A design document is added or updated under `eng/design-notes/` in this repository, if new APIs are being introduced. - [ ] Yes - [x] Not applicable - The design document has been reviewed and approved by Radius maintainers/approvers. - [ ] Yes - [x] Not applicable - A PR for [resource-types-contrib](https://github.com/radius-project/resource-types-contrib/) is created, if resource types or recipes are affected by the changes in this PR. - [ ] Yes - [x] Not applicable - A PR for [dashboard](https://github.com/radius-project/dashboard/) is created, if the Radius Dashboard is affected by the changes in this PR. - [ ] Yes - [x] Not applicable - A PR for the [documentation repository](https://github.com/radius-project/docs) is created, if the changes in this PR affect the documentation or any user facing updates are made. - [ ] Yes - [x] Not applicable --------- Signed-off-by: lakshmimsft <ljavadekar@microsoft.com> Signed-off-by: Reshma Abdul Rahim <reshmarahim.abdul@microsoft.com>
This pull request extends the functional test framework to support the new resource types (Radius.Core/environments, Radius.Core/applications, Radius.Compute/containers) alongside the existing Applications.Core/* types. It migrates the first group of tests as aproof-of-concept.
Type of change
Fixes: #11942
Contributor checklist
Please verify that the PR meets the following requirements, where applicable:
eng/design-notes/in this repository, if new APIs are being introduced.