Skip to content

Commit

Permalink
Re-add dummy redis job (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippthun authored Jul 1, 2024
1 parent 6646845 commit dda32b9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ properties:
default: false

cc.experimental.use_redis:
description: "Use co-deployed Redis for rate limiting and metrics. If the Puma webserver is enabled, Redis will automatically be used."
description: "Use co-deployed Valkey (Redis fork) for rate limiting and metrics. If the Puma webserver is enabled, Valkey will automatically be used."
default: false

cc.puma.workers:
Expand Down
1 change: 1 addition & 0 deletions jobs/redis/monit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Empty
6 changes: 6 additions & 0 deletions jobs/redis/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: redis

templates: []

properties: {}
4 changes: 2 additions & 2 deletions spec/cloud_controller_ng/cloud_controller_ng_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ module Test
end
end

describe 'redis config' do
describe 'valkey config' do
context 'when the puma webserver is used' do
it 'renders the redis socket into the ccng config' do
it 'renders the valkey socket into the ccng config' do
merged_manifest_properties['cc']['experimental'] = { 'use_puma_webserver' => true }
template_hash = YAML.safe_load(template.render(merged_manifest_properties, consumes: links))
expect(template_hash['redis']['socket']).to eq('/var/vcap/data/valkey/valkey.sock')
Expand Down

0 comments on commit dda32b9

Please sign in to comment.