Commit a37608c6 authored by Sonja Happ's avatar Sonja Happ
Browse files

more fixes for healthz testing

parent 4fa30923
......@@ -70,7 +70,12 @@ func TestHealthz(t *testing.T) {
// connect AMQP client (make sure that AMQP_HOST, AMQP_USER, AMQP_PASS are set via command line parameters)
host, err := configuration.GolbalConfig.String("amqp.host")
assert.NoError(t, err)
err = amqp.ConnectAMQP(host)
user, err := configuration.GolbalConfig.String("amqp.user")
assert.NoError(t, err)
pass, err := configuration.GolbalConfig.String("amqp.pass")
assert.NoError(t, err)
amqpURI := "amqp://" + user + ":" + pass + "@" + host
err = amqp.ConnectAMQP(amqpURI)
assert.NoError(t, err)
// test healthz endpoint for connected DB and AMQP client
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment