mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
more fixes for healthz testing
This commit is contained in:
parent
4fa309238f
commit
a37608c6e4
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
// 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")
|
host, err := configuration.GolbalConfig.String("amqp.host")
|
||||||
assert.NoError(t, err)
|
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)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
// test healthz endpoint for connected DB and AMQP client
|
// test healthz endpoint for connected DB and AMQP client
|
||||||
|
|
Loading…
Add table
Reference in a new issue