Fixes around get_by_attribute

Before, `attr_val` ignores attribute values that contains slashes in it value, now it's fixed.

Update to v0.3.2 with fixing status of connection pool.

Added debug log message when object not found, for debug reasons.

Update .test.env variables prefix, it was changed in one of previous releases.

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
Evgeniy Kulikov 2021-01-23 16:28:12 +03:00
parent 52812f7869
commit b6d94ec9a5
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
5 changed files with 25 additions and 23 deletions

5
app.go
View file

@ -176,8 +176,9 @@ func (a *app) Serve(ctx context.Context) {
a.log.Info("enabled /get/{cid}/{oid}")
r.GET("/get/{cid}/{oid}", a.byAddress)
a.log.Info("enabled /get_by_attribute/{cid}/{attr_key}/{attr_val}")
r.GET("/get_by_attribute/{cid}/{attr_key}/{attr_val}", a.byAttribute)
a.log.Info("enabled /get_by_attribute/{cid}/{attr_key}/{attr_val:*}")
r.GET("/get_by_attribute/{cid}/{attr_key}/{attr_val:*}", a.byAttribute)
// attaching /-/(ready,healthy)
attachHealthy(r, a.pool.Status)