Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: Vishwanath Hiremath <vhiremath@microsoft.com>
  • Loading branch information
vishwahiremat committed Nov 27, 2023
1 parent 1e6ca22 commit e31b78f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/mongodatabases.bicep
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import radius as radius

param magpieimage string
param magpieimage string

resource env 'Applications.Core/environments@2023-10-01-preview' = {
name: 'dsrp-resources-mongodb-recipe-env'
Expand Down
30 changes: 25 additions & 5 deletions tests/rediscaches.bicep
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import radius as radius

param scope string = resourceGroup().id
param magpieimage string

resource env 'Applications.Core/environments@2023-10-01-preview' = {
name: 'dsrp-resources-env-recipe-env'
Expand All @@ -11,11 +12,6 @@ resource env 'Applications.Core/environments@2023-10-01-preview' = {
resourceId: 'self'
namespace: 'dsrp-resources-env-recipe-env'
}
providers: {
azure: {
scope: scope
}
}
recipes: {
'Applications.Datastores/redisCaches':{
rediscache: {
Expand All @@ -42,6 +38,30 @@ resource app 'Applications.Core/applications@2023-10-01-preview' = {
}
}

resource webapp 'Applications.Core/containers@2023-10-01-preview' = {
name: 'rds-app-ctnr'
location: 'global'
properties: {
application: app.id
container: {
image: magpieimage
env: {
DBCONNECTION: redis.connectionString()
}
readinessProbe:{
kind: 'httpGet'
containerPort: 3000
path: '/healthz'
}
}
connections: {
redis: {
source: redis.id
}
}
}
}

resource redis 'Applications.Datastores/redisCaches@2023-10-01-preview' = {
name: 'rds-recipe'
location: 'global'
Expand Down

0 comments on commit e31b78f

Please sign in to comment.