Skip to content

Commit

Permalink
[bitnami/valkey-sentinel] Update tests to check the master to primary…
Browse files Browse the repository at this point in the history
… change in the configuration (#74090)

* [bitnami/valkey-sentinel] Update tests to check the master to primary change in the configuration

Signed-off-by: Jota Martos <[email protected]>

* [bitnami/valkey-sentinel] Fix file path

Signed-off-by: Jota Martos <[email protected]>

* [bitnami/valkey-sentinel] Run test only for Valkey Sentinel 7.x

Signed-off-by: Jota Martos <[email protected]>

---------

Signed-off-by: Jota Martos <[email protected]>
  • Loading branch information
jotamartos authored Nov 4, 2024
1 parent 5decd2a commit 9aedb85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vib/valkey-sentinel/goss/valkey-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ file:
- "daemonize no"
- 'logfile ""'
command:
# Remove if sentinel gets updated: https://github.com/valkey-io/valkey/blob/7.2/sentinel.conf
# Requires to update the libvalkeysentinel.sh script
{{ if regexMatch "^7.+" .Env.APP_VERSION }}
check-primary-master-change:
exec: if ! grep "SENTINEL master-reboot-down-after-period" /opt/bitnami/valkey-sentinel/etc/sentinel.conf; then exit 1; fi
exit-status: 0
{{ end }}
check-valkey-server:
exec: timeout --preserve-status 5 valkey-server /opt/bitnami/valkey-sentinel/etc/sentinel.conf --sentinel
exit-status: 0
Expand Down

0 comments on commit 9aedb85

Please sign in to comment.