Please note that the `health_status` parameter can only be in an "Healthy" or "Unhealthy" state, while the `health` parameter can be empty, "Healthy", or contain the actual error message.
## Retrieve project sync failures that occurred on the current node
data[:health]='This GitLab instance does not appear to be configured properly as a Geo node. Make sure the URLs are using the correct fully-qualified domain names.'
data[:health_status]='Unhealthy'
rescueOpenSSL::Cipher::CipherError
data[:health]='Error decrypting the Geo secret from the database. Check that the primary uses the correct db_key_base.'
expect(status.status_message).toeq('Error decrypting the Geo secret from the database. Check that the primary uses the correct db_key_base.')
end
it'gracefully handles case when primary is deleted'do
primary.destroy!
status=subject.call(secondary)
expect(status.status_message).toeq('This GitLab instance does not appear to be configured properly as a Geo node. Make sure the URLs are using the correct fully-qualified domain names.')
end
it'returns the status from database if it could not fetch it'do