feat/es-integration#56
main
Интеграционный тест-доказательство по W3 #56 (эпик #53).
TestIntegrationESFacadeUsesES в file_es_integration_test.go:
TestIntegrationESFacadeUsesES
file_es_integration_test.go
c.Files().Search()
Name() == "elasticsearch"
*ESSearcher
@search
Searcher
Rechnung_986-2025.pdf
id
path
Provider == elasticsearch
rechnung 2025 --substring --folder 522
ONLYOFFICE_ES_URL
Замеры на живом ES (туннель 127.0.0.1:9200): exact — 2 хита / ~4.1 ms; substring+folder — 200 (limit) / ~16.7 ms.
go test -tags=integration -run TestIntegrationES -v .
go build ./...
go vet ./...
go test ./...
go test -race .
Не мержу и не закрываю.
No dependencies set.
The note is not visible to the blocked user.
Интеграционный тест-доказательство по W3 #56 (эпик #53).
Что добавлено
TestIntegrationESFacadeUsesESвfile_es_integration_test.go:c.Files().Search()возвращаетName() == "elasticsearch"и конкретный*ESSearcher— REST@search(только имена в БД) не являетсяSearcher.Rechnung_986-2025.pdf: найден ожидаемый файл, непустыеidиpath,Provider == elasticsearch.rechnung 2025 --substring --folder 522возвращает непустую выдачу и тот же известный файл.ONLYOFFICE_ES_URL— skip. REST-креды не нужны.Замеры на живом ES (туннель 127.0.0.1:9200): exact — 2 хита / ~4.1 ms; substring+folder — 200 (limit) / ~16.7 ms.
Проверка
go test -tags=integration -run TestIntegrationES -v .— PASS (4 теста).go build ./...,go vet ./...,go test ./...,go test -race .— зелёные.Не мержу и не закрываю.