@@ -73,7 +85,7 @@ describe Geo::NodeStatusService do
...
@@ -73,7 +85,7 @@ describe Geo::NodeStatusService do
status=subject.call(secondary)
status=subject.call(secondary)
expect(status.health).toeq("Could not connect to Geo node - HTTP Status Code: 401 Unauthorized\n")
expect(status.status_message).toeq("Could not connect to Geo node - HTTP Status Code: 401 Unauthorized\n")
expect(status.success).tobefalse
expect(status.success).tobefalse
end
end
...
@@ -83,7 +95,7 @@ describe Geo::NodeStatusService do
...
@@ -83,7 +95,7 @@ describe Geo::NodeStatusService do
status=subject.call(secondary)
status=subject.call(secondary)
expect(status.health).toeq(message)
expect(status.status_message).toeq(message)
end
end
it'handles connection refused'do
it'handles connection refused'do
...
@@ -91,7 +103,7 @@ describe Geo::NodeStatusService do
...
@@ -91,7 +103,7 @@ describe Geo::NodeStatusService do
status=subject.call(secondary)
status=subject.call(secondary)
expect(status.health).toeq('Connection refused - bad connection')
expect(status.status_message).toeq('Connection refused - bad connection')
end
end
it'returns meaningful error message when primary uses incorrect db key'do
it'returns meaningful error message when primary uses incorrect db key'do
...
@@ -99,7 +111,7 @@ describe Geo::NodeStatusService do
...
@@ -99,7 +111,7 @@ describe Geo::NodeStatusService do
status=subject.call(secondary)
status=subject.call(secondary)
expect(status.health).toeq('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
end
it'gracefully handles case when primary is deleted'do
it'gracefully handles case when primary is deleted'do
...
@@ -107,7 +119,7 @@ describe Geo::NodeStatusService do
...
@@ -107,7 +119,7 @@ describe Geo::NodeStatusService do
status=subject.call(secondary)
status=subject.call(secondary)
expect(status.health).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.')
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.')