Отказ сервиса M2M в ЛК — словами (наша расшифровка или текст НРД), M2M43; «передавать информацию о расходах» в QUIK — по заявке клиента

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
zuevav
2026-09-29 15:37:34 +03:00
parent 7cd3583844
commit 44d6d7a74d
5 changed files with 84 additions and 7 deletions
+32
View File
@@ -0,0 +1,32 @@
//go:build live
package lkgateway
import (
"bytes"
"context"
"encoding/json"
"fmt"
"os"
"testing"
)
// Только чтение: заявка из ЛК ЕСИА Финанс как её получает bj. LK_ID=70038
func TestLKClaimLive(t *testing.T) {
rc, err := NewRuntimeConfig("/var/lib/bj/.bj/setup.json")
if err != nil {
t.Fatal(err)
}
ep, ok := lkActiveEndpoint(rc)
if !ok {
t.Fatal("ЛК не настроен")
}
code, body, err := lkGet(context.Background(), ep, "/claims/"+os.Getenv("LK_ID"))
fmt.Println("HTTP", code, err)
var out bytes.Buffer
if json.Indent(&out, body, "", " ") == nil {
fmt.Println(out.String())
} else {
fmt.Println(string(body))
}
}