🧪 Test Report

✅ Все тесты прошли успешно
Отчет сгенерирован: Sun Aug 3 05:06:26 UTC 2025
Commit: 23db64e43849ebcb701e7f524247171d1fd7573d
Branch: main
Пройдено: 135 Провалено: 0

📋 Результаты тестирования:

task: [test] go clean -testcache ERR=0 for mod in inventory order payment; do if [ -d "$mod" ]; then echo "🧪 Тестируем модуль $mod" go test -v ./$mod/... || ERR=1 fi done exit $ERR 🧪 Тестируем модуль inventory ? github.com/kont1n/MSA_Rocket_Factory/inventory/cmd [no test files] === RUN TestConverterSuite === RUN TestConverterSuite/TestProtoToModel_MixedInvalidUUIDs === RUN TestConverterSuite/TestProtoToModel_OnlyManufacturerCountries === RUN TestConverterSuite/TestProtoToModel_OnlyTags === RUN TestConverterSuite/TestToModelPart_AllCategories === RUN TestConverterSuite/TestToModelPart_CompleteFilter === RUN TestConverterSuite/TestToModelPart_EmptyFilter === RUN TestConverterSuite/TestToModelPart_InvalidUUID === RUN TestConverterSuite/TestToModelPart_NilFilter === RUN TestConverterSuite/TestToModelPart_OnlyCategories === RUN TestConverterSuite/TestToModelPart_OnlyNames === RUN TestConverterSuite/TestToModelPart_OnlyUUIDs === RUN TestConverterSuite/TestToProtoPart_AllMetadataTypes === RUN TestConverterSuite/TestToProtoPart_EmptyMetadata === RUN TestConverterSuite/TestToProtoPart_EngineCategory === RUN TestConverterSuite/TestToProtoPart_FuelCategory === RUN TestConverterSuite/TestToProtoPart_PortholeCategory === RUN TestConverterSuite/TestToProtoPart_UnknownCategory === RUN TestConverterSuite/TestToProtoPart_WingCategory === RUN TestConverterSuite/TestToProtoPart_ZeroValues --- PASS: TestConverterSuite (0.00s) --- PASS: TestConverterSuite/TestProtoToModel_MixedInvalidUUIDs (0.00s) --- PASS: TestConverterSuite/TestProtoToModel_OnlyManufacturerCountries (0.00s) --- PASS: TestConverterSuite/TestProtoToModel_OnlyTags (0.00s) --- PASS: TestConverterSuite/TestToModelPart_AllCategories (0.00s) --- PASS: TestConverterSuite/TestToModelPart_CompleteFilter (0.00s) --- PASS: TestConverterSuite/TestToModelPart_EmptyFilter (0.00s) --- PASS: TestConverterSuite/TestToModelPart_InvalidUUID (0.00s) --- PASS: TestConverterSuite/TestToModelPart_NilFilter (0.00s) --- PASS: TestConverterSuite/TestToModelPart_OnlyCategories (0.00s) --- PASS: TestConverterSuite/TestToModelPart_OnlyNames (0.00s) --- PASS: TestConverterSuite/TestToModelPart_OnlyUUIDs (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_AllMetadataTypes (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_EmptyMetadata (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_EngineCategory (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_FuelCategory (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_PortholeCategory (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_UnknownCategory (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_WingCategory (0.00s) --- PASS: TestConverterSuite/TestToProtoPart_ZeroValues (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/inventory/internal/api/converter 0.009s ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/api/v1 [no test files] === RUN TestCategory_String === RUN TestCategory_String/ENGINE_категория === RUN TestCategory_String/FUEL_категория === RUN TestCategory_String/PORTHOLE_категория === RUN TestCategory_String/WING_категория === RUN TestCategory_String/UNKNOWN_категория === RUN TestCategory_String/Неизвестное_значение --- PASS: TestCategory_String (0.00s) --- PASS: TestCategory_String/ENGINE_категория (0.00s) --- PASS: TestCategory_String/FUEL_категория (0.00s) --- PASS: TestCategory_String/PORTHOLE_категория (0.00s) --- PASS: TestCategory_String/WING_категория (0.00s) --- PASS: TestCategory_String/UNKNOWN_категория (0.00s) --- PASS: TestCategory_String/Неизвестное_значение (0.00s) === RUN TestCategoryName === RUN TestCategoryName/ENGINE_по_значению_1 === RUN TestCategoryName/FUEL_по_значению_2 === RUN TestCategoryName/PORTHOLE_по_значению_3 === RUN TestCategoryName/WING_по_значению_4 === RUN TestCategoryName/UNKNOWN_по_значению_0 === RUN TestCategoryName/Неизвестное_значение --- PASS: TestCategoryName (0.00s) --- PASS: TestCategoryName/ENGINE_по_значению_1 (0.00s) --- PASS: TestCategoryName/FUEL_по_значению_2 (0.00s) --- PASS: TestCategoryName/PORTHOLE_по_значению_3 (0.00s) --- PASS: TestCategoryName/WING_по_значению_4 (0.00s) --- PASS: TestCategoryName/UNKNOWN_по_значению_0 (0.00s) --- PASS: TestCategoryName/Неизвестное_значение (0.00s) === RUN TestToCategory === RUN TestToCategory/Конвертация_в_ENGINE === RUN TestToCategory/Конвертация_в_FUEL === RUN TestToCategory/Конвертация_в_PORTHOLE === RUN TestToCategory/Конвертация_в_WING === RUN TestToCategory/Конвертация_невалидного_значения_в_UNKNOWN === RUN TestToCategory/Конвертация_отрицательного_значения_в_UNKNOWN --- PASS: TestToCategory (0.00s) --- PASS: TestToCategory/Конвертация_в_ENGINE (0.00s) --- PASS: TestToCategory/Конвертация_в_FUEL (0.00s) --- PASS: TestToCategory/Конвертация_в_PORTHOLE (0.00s) --- PASS: TestToCategory/Конвертация_в_WING (0.00s) --- PASS: TestToCategory/Конвертация_невалидного_значения_в_UNKNOWN (0.00s) --- PASS: TestToCategory/Конвертация_отрицательного_значения_в_UNKNOWN (0.00s) === RUN TestCategoryConstants --- PASS: TestCategoryConstants (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/inventory/internal/model 0.005s ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/repository [no test files] === RUN TestConverterSuite === RUN TestConverterSuite/TestToModelPart_AllCategories === RUN TestConverterSuite/TestToModelPart_AllMetadataTypes === RUN TestConverterSuite/TestToModelPart_EmptyMetadata === RUN TestConverterSuite/TestToModelPart_EmptyUUID === RUN TestConverterSuite/TestToModelPart_InvalidUUID === RUN TestConverterSuite/TestToModelPart_Success === RUN TestConverterSuite/TestToModelPart_ZeroValues --- PASS: TestConverterSuite (0.00s) --- PASS: TestConverterSuite/TestToModelPart_AllCategories (0.00s) --- PASS: TestConverterSuite/TestToModelPart_AllMetadataTypes (0.00s) --- PASS: TestConverterSuite/TestToModelPart_EmptyMetadata (0.00s) --- PASS: TestConverterSuite/TestToModelPart_EmptyUUID (0.00s) --- PASS: TestConverterSuite/TestToModelPart_InvalidUUID (0.00s) --- PASS: TestConverterSuite/TestToModelPart_Success (0.00s) --- PASS: TestConverterSuite/TestToModelPart_ZeroValues (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/inventory/internal/repository/converter 0.005s ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/repository/inmemory [no test files] ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/repository/mocks [no test files] ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/repository/model [no test files] ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/repository/mongo [no test files] ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/service [no test files] ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/service/mocks [no test files] ? github.com/kont1n/MSA_Rocket_Factory/inventory/internal/service/part [no test files] === RUN TestServiceIntegration === RUN TestServiceIntegration/TestGetRepoError === RUN TestServiceIntegration/TestGetSuccess === RUN TestServiceIntegration/TestListEmptyResult === RUN TestServiceIntegration/TestListRepoError === RUN TestServiceIntegration/TestListSuccess === RUN TestServiceIntegration/TestListWithNilFilter --- PASS: TestServiceIntegration (0.00s) --- PASS: TestServiceIntegration/TestGetRepoError (0.00s) --- PASS: TestServiceIntegration/TestGetSuccess (0.00s) --- PASS: TestServiceIntegration/TestListEmptyResult (0.00s) --- PASS: TestServiceIntegration/TestListRepoError (0.00s) --- PASS: TestServiceIntegration/TestListSuccess (0.00s) --- PASS: TestServiceIntegration/TestListWithNilFilter (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/inventory/internal/service/part/test 0.004s 🧪 Тестируем модуль order ? github.com/kont1n/MSA_Rocket_Factory/order/cmd [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/api/middleware [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/api/order/v1 [no test files] === RUN TestConverterSuite === RUN TestConverterSuite/TestPartToModel_InvalidUUID === RUN TestConverterSuite/TestToModelPart_EmptyUUID === RUN TestConverterSuite/TestToModelPart_Success === RUN TestConverterSuite/TestToModelPart_ZeroValues === RUN TestConverterSuite/TestToModelPartsList_EmptyList === RUN TestConverterSuite/TestToModelPartsList_Success === RUN TestConverterSuite/TestToModelPartsList_WithInvalidUUID === RUN TestConverterSuite/TestToProtoFilter_AllCategories === RUN TestConverterSuite/TestToProtoFilter_CompleteFilter === RUN TestConverterSuite/TestToProtoFilter_EmptyFilter === RUN TestConverterSuite/TestToProtoFilter_OnlyCategories === RUN TestConverterSuite/TestToProtoFilter_OnlyManufacturerCountries === RUN TestConverterSuite/TestToProtoFilter_OnlyNames === RUN TestConverterSuite/TestToProtoFilter_OnlyTags === RUN TestConverterSuite/TestToProtoFilter_OnlyUUIDs === RUN TestConverterSuite/TestToProtoPaymentMethod_Card === RUN TestConverterSuite/TestToProtoPaymentMethod_CreditCard === RUN TestConverterSuite/TestToProtoPaymentMethod_EmptyString === RUN TestConverterSuite/TestToProtoPaymentMethod_InvalidMethod === RUN TestConverterSuite/TestToProtoPaymentMethod_InvestorMoney === RUN TestConverterSuite/TestToProtoPaymentMethod_Lowercase === RUN TestConverterSuite/TestToProtoPaymentMethod_Sbp === RUN TestConverterSuite/TestToProtoPaymentMethod_Unknown --- PASS: TestConverterSuite (0.00s) --- PASS: TestConverterSuite/TestPartToModel_InvalidUUID (0.00s) --- PASS: TestConverterSuite/TestToModelPart_EmptyUUID (0.00s) --- PASS: TestConverterSuite/TestToModelPart_Success (0.00s) --- PASS: TestConverterSuite/TestToModelPart_ZeroValues (0.00s) --- PASS: TestConverterSuite/TestToModelPartsList_EmptyList (0.00s) --- PASS: TestConverterSuite/TestToModelPartsList_Success (0.00s) --- PASS: TestConverterSuite/TestToModelPartsList_WithInvalidUUID (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_AllCategories (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_CompleteFilter (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_EmptyFilter (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_OnlyCategories (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_OnlyManufacturerCountries (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_OnlyNames (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_OnlyTags (0.00s) --- PASS: TestConverterSuite/TestToProtoFilter_OnlyUUIDs (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_Card (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_CreditCard (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_EmptyString (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_InvalidMethod (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_InvestorMoney (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_Lowercase (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_Sbp (0.00s) --- PASS: TestConverterSuite/TestToProtoPaymentMethod_Unknown (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/order/internal/client/converter 0.009s ? github.com/kont1n/MSA_Rocket_Factory/order/internal/client/grpc [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/client/grpc/inventory/v1 [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/client/grpc/mocks [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/client/grpc/payment/v1 [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/model [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/repository [no test files] === RUN TestConverterSuite === RUN TestConverterSuite/TestToModelOrder_AllStatuses === RUN TestConverterSuite/TestToModelOrder_EmptyParts === RUN TestConverterSuite/TestToModelOrder_InvalidOrderUUID === RUN TestConverterSuite/TestToModelOrder_InvalidPartUUID === RUN TestConverterSuite/TestToModelOrder_InvalidTransactionUUID === RUN TestConverterSuite/TestToModelOrder_InvalidUserUUID === RUN TestConverterSuite/TestToModelOrder_Success === RUN TestConverterSuite/TestToRepoOrder_EmptyParts === RUN TestConverterSuite/TestToRepoOrder_Success --- PASS: TestConverterSuite (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_AllStatuses (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_EmptyParts (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_InvalidOrderUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_InvalidPartUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_InvalidTransactionUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_InvalidUserUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_Success (0.00s) --- PASS: TestConverterSuite/TestToRepoOrder_EmptyParts (0.00s) --- PASS: TestConverterSuite/TestToRepoOrder_Success (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/order/internal/repository/converter 0.005s ? github.com/kont1n/MSA_Rocket_Factory/order/internal/repository/inmemory [no test files] testing: warning: no tests to run PASS ok github.com/kont1n/MSA_Rocket_Factory/order/internal/repository/inmemory/tests 0.002s [no tests to run] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/repository/mocks [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/repository/model [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/repository/postgres [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/service [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/service/mocks [no test files] ? github.com/kont1n/MSA_Rocket_Factory/order/internal/service/order [no test files] === RUN TestServiceIntegration === RUN TestServiceIntegration/TestCancelOrder_AlreadyCancelled === RUN TestServiceIntegration/TestCancelOrder_AlreadyPaid === RUN TestServiceIntegration/TestCancelOrder_OrderNotFound === RUN TestServiceIntegration/TestCancelOrder_Success === RUN TestServiceIntegration/TestCancelOrder_UpdateError === RUN TestServiceIntegration/TestCreateOrder_CreateError === RUN TestServiceIntegration/TestCreateOrder_EmptyParts === RUN TestServiceIntegration/TestCreateOrder_InventoryError === RUN TestServiceIntegration/TestCreateOrder_PartsNotFound === RUN TestServiceIntegration/TestCreateOrder_Success === RUN TestServiceIntegration/TestGetOrder_NotFound === RUN TestServiceIntegration/TestGetOrder_Success === RUN TestServiceIntegration/TestPayOrder_OrderNotFound === RUN TestServiceIntegration/TestPayOrder_PaymentError === RUN TestServiceIntegration/TestPayOrder_Success === RUN TestServiceIntegration/TestPayOrder_UpdateError --- PASS: TestServiceIntegration (0.00s) --- PASS: TestServiceIntegration/TestCancelOrder_AlreadyCancelled (0.00s) --- PASS: TestServiceIntegration/TestCancelOrder_AlreadyPaid (0.00s) --- PASS: TestServiceIntegration/TestCancelOrder_OrderNotFound (0.00s) --- PASS: TestServiceIntegration/TestCancelOrder_Success (0.00s) --- PASS: TestServiceIntegration/TestCancelOrder_UpdateError (0.00s) --- PASS: TestServiceIntegration/TestCreateOrder_CreateError (0.00s) --- PASS: TestServiceIntegration/TestCreateOrder_EmptyParts (0.00s) --- PASS: TestServiceIntegration/TestCreateOrder_InventoryError (0.00s) --- PASS: TestServiceIntegration/TestCreateOrder_PartsNotFound (0.00s) --- PASS: TestServiceIntegration/TestCreateOrder_Success (0.00s) --- PASS: TestServiceIntegration/TestGetOrder_NotFound (0.00s) --- PASS: TestServiceIntegration/TestGetOrder_Success (0.00s) --- PASS: TestServiceIntegration/TestPayOrder_OrderNotFound (0.00s) --- PASS: TestServiceIntegration/TestPayOrder_PaymentError (0.00s) --- PASS: TestServiceIntegration/TestPayOrder_Success (0.00s) --- PASS: TestServiceIntegration/TestPayOrder_UpdateError (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/order/internal/service/order/test 0.006s 🧪 Тестируем модуль payment ? github.com/kont1n/MSA_Rocket_Factory/payment/cmd [no test files] === RUN TestConverterSuite === RUN TestConverterSuite/TestToModelOrder_AllPaymentMethods === RUN TestConverterSuite/TestToModelOrder_EmptyOrderUUID === RUN TestConverterSuite/TestToModelOrder_EmptyUserUUID === RUN TestConverterSuite/TestToModelOrder_InvalidOrderUUID === RUN TestConverterSuite/TestToModelOrder_InvalidUserUUID === RUN TestConverterSuite/TestToModelOrder_Success --- PASS: TestConverterSuite (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_AllPaymentMethods (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_EmptyOrderUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_EmptyUserUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_InvalidOrderUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_InvalidUserUUID (0.00s) --- PASS: TestConverterSuite/TestToModelOrder_Success (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/payment/internal/api/converter 0.010s ? github.com/kont1n/MSA_Rocket_Factory/payment/internal/api/middleware [no test files] ? github.com/kont1n/MSA_Rocket_Factory/payment/internal/api/payment/v1 [no test files] ? github.com/kont1n/MSA_Rocket_Factory/payment/internal/model [no test files] ? github.com/kont1n/MSA_Rocket_Factory/payment/internal/service [no test files] ? github.com/kont1n/MSA_Rocket_Factory/payment/internal/service/mocks [no test files] ? github.com/kont1n/MSA_Rocket_Factory/payment/internal/service/payment [no test files] === RUN TestServiceIntegration === RUN TestServiceIntegration/TestPayGeneratesUniqueUUIDs 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=29c5504a-954f-49c9-a9cf-fae0c1306f52 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=902fc687-8980-48d9-814b-e45ce9fa8a0e === RUN TestServiceIntegration/TestPaySuccess 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=6b83249b-3077-48b4-80f8-e1802d27b08b === RUN TestServiceIntegration/TestPayWithContext 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=a2d41ebc-87b9-4cf8-9a14-1f6454279fa2 === RUN TestServiceIntegration/TestPayWithDifferentPaymentMethods === RUN TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_CARD 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=73c33e62-ba9b-439c-9d98-0089261a66bd === RUN TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_SBP 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=0d033c05-a9ac-4601-9ffa-31cf74ebf76d === RUN TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_CREDIT_CARD 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=e00ffb7c-e477-415a-bf35-2702d24086d5 === RUN TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_INVESTOR_MONEY 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=a413bb78-c9ee-42e2-b21a-efd90225da9b === RUN TestServiceIntegration/TestPayWithNilContext 2025/08/03 05:06:26 INFO Payment success transaction_uuid:=1d7ed9ce-9b39-46aa-914f-42dfe8061a39 --- PASS: TestServiceIntegration (0.00s) --- PASS: TestServiceIntegration/TestPayGeneratesUniqueUUIDs (0.00s) --- PASS: TestServiceIntegration/TestPaySuccess (0.00s) --- PASS: TestServiceIntegration/TestPayWithContext (0.00s) --- PASS: TestServiceIntegration/TestPayWithDifferentPaymentMethods (0.00s) --- PASS: TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_CARD (0.00s) --- PASS: TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_SBP (0.00s) --- PASS: TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_CREDIT_CARD (0.00s) --- PASS: TestServiceIntegration/TestPayWithDifferentPaymentMethods/PaymentMethod_INVESTOR_MONEY (0.00s) --- PASS: TestServiceIntegration/TestPayWithNilContext (0.00s) PASS ok github.com/kont1n/MSA_Rocket_Factory/payment/internal/service/payment/test 0.004s