Skip to content

Commit

Permalink
update redis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nithyatsu committed Sep 8, 2023
1 parent a267dcc commit 446b7a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
6 changes: 0 additions & 6 deletions test/functional/datastoresrp/resources/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ func Test_Redis_Manual(t *testing.T) {
Type: validation.ContainersResource,
App: name,
},
{
Name: "rds-rte",
Type: validation.HttpRoutesResource,
App: name,
},
{
Name: "rds-rds",
Type: validation.RedisCachesResource,
Expand All @@ -66,7 +61,6 @@ func Test_Redis_Manual(t *testing.T) {
appNamespace: {
validation.NewK8sPodForResource(name, "rds-app-ctnr"),
validation.NewK8sPodForResource(name, "rds-ctnr"),
validation.NewK8sServiceForResource(name, "rds-rte"),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,15 @@ resource redisContainer 'Applications.Core/containers@2022-03-15-privatepreview'
ports: {
redis: {
containerPort: 6379
provides: redisRoute.id
port: 80
}
}
}
connections: {}
}
}

resource redisRoute 'Applications.Core/httproutes@2022-03-15-privatepreview' = {
name: 'rds-rte'
location: 'global'
properties: {
application: app.id
}
}


resource redis 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' = {
name: 'rds-rds'
Expand All @@ -68,10 +62,10 @@ resource redis 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' =
environment: environment
application: app.id
resourceProvisioning: 'manual'
host: redisRoute.properties.hostname
port: redisRoute.properties.port
host: 'rds-ctnr'
port: 80
secrets: {
connectionString: '${redisRoute.properties.hostname}:${redisRoute.properties.port}'
connectionString: 'rds-ctnr:6379'
password: ''
}
}
Expand Down

0 comments on commit 446b7a9

Please sign in to comment.