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

Signed-off-by: Jota Martos <jotamartos@vmware.com>
  • Loading branch information
jotamartos committed Oct 31, 2024
1 parent 69cab27 commit 0babe9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ file:
- "daemonize no"
- 'logfile ""'
command:
# Remove if sentinel gets updated: https://github.com/valkey-io/valkey/blob/7.2/sentinel.conf
check-primary-master-change:
exec: if [ $(grep "SENTINEL \(master-reboot-down-after-period\|primary-reboot-down-after-period\)" /tmp/sentinel.conf | wc -l) -gt 1 ]; then exit 1; fi
exit-status: 0
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 0babe9b

Please sign in to comment.