forked from radius-project/radius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Functional Test for Bicep Recipe Context Parameter (radius-projec…
…t#7041) # Description Removing the dependency on Azure CosmosDB for context parameter functional test and replacing the existing skipped test by introducing a test that doesn't deploy any resources, as our primary goal is to verify the successful population of the context parameter. ## Type of change - This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional). Fixes: radius-project#5418 radius-project#6293 --------- Signed-off-by: karishma-chawla <[email protected]> Co-authored-by: karishma-chawla <[email protected]>
- Loading branch information
1 parent
eacb0bc
commit bacf6be
Showing
3 changed files
with
59 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
12 changes: 12 additions & 0 deletions
12
test/functional/shared/resources/testdata/recipes/test-bicep-recipes/context-parameter.bicep
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// A simple Bicep recipe that tests context parameter is applied. It doesn't provision any resources. | ||
param context object | ||
|
||
output result object = { | ||
values: { | ||
environment: context.environment.Name | ||
application: context.application.Name | ||
resource: context.resource.Name | ||
namespace: context.runtime.kubernetes.namespace | ||
envNamespace: context.runtime.kubernetes.environmentNamespace | ||
} | ||
} |