[#191] Refactor error handling and logging
Some checks failed
/ DCO (pull_request) Successful in 36s
/ Builds (pull_request) Successful in 1m3s
/ Vulncheck (pull_request) Successful in 58s
/ OCI image (pull_request) Successful in 1m17s
/ Lint (pull_request) Failing after 1m26s
/ Tests (pull_request) Successful in 1m4s
/ Integration tests (pull_request) Failing after 5m32s

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2025-03-03 18:06:41 +03:00
parent 9cf2a4f0e0
commit 982ae32bc4
15 changed files with 251 additions and 316 deletions

View file

@ -374,7 +374,7 @@ func TestFindObjectByAttribute(t *testing.T) {
obj.SetAttributes(tc.firstAttr, tc.secondAttr)
hc.cfg.additionalSearch = tc.additionalSearch
objID, err := hc.Handler().findObjectByAttribute(ctx, hc.Handler().log, cnrID, tc.reqAttrKey, tc.reqAttrValue)
objID, err := hc.Handler().findObjectByAttribute(ctx, cnrID, tc.reqAttrKey, tc.reqAttrValue)
if tc.err != "" {
require.Error(t, err)
require.Contains(t, err.Error(), tc.err)