Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code scanning alertsのDisabled Spring CSRF protectionに対応 #1771

除外の範囲を拡大する

8a3ead7
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Code scanning alertsのDisabled Spring CSRF protectionに対応 #1771

除外の範囲を拡大する
8a3ead7
Select commit
Loading
Failed to load commit list.
GitHub Actions / Maven Tests succeeded Jan 6, 2025 in 0s

46 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml 3✅ 236ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest.xml 4✅ 39ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest.xml 3✅ 43ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest.xml 13✅ 242ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.catalog.CatalogDomainServiceTest.xml 6✅ 79ms
samples/web-csr/dressca-backend/batch/build/test-results/test/TEST-com.dressca.batch.CatalogItemJobTest.xml 3✅ 1s
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml 1✅ 76ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest.xml 3✅ 493ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest.xml 3✅ 190ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.AssetsControllerTest.xml 2✅ 514ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.HealthCheckTest.xml 2✅ 71ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.filter.BuyerIdFilterTest.xml 2✅ 105ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.WebApplicationTests.xml 1✅ 1s

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml

3 tests were completed in 236ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest 3✅ 236ms

✅ com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest

✅ testGetAssetResourceInfo_02_異常系_リポジトリに存在しないアセットコード
✅ testGetAssetResourceInfo_01_正常系_存在するアセットコード
✅ testGetAssetResourceInfo_03_異常系_ストアに存在しないアセットコード

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest.xml

4 tests were completed in 39ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest 4✅ 39ms

✅ com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest

✅ testGetCategories_正常系_リポジトリのgetAllを1回呼出す()
✅ testCountCatalogItems_正常系_リポジトリのcountByBrandIdAndCategoryIdを1回呼出す()
✅ testGetCatalogItems_正常系_リポジトリのfindByBrandIdAndCategoryIdを1回呼出す()
✅ testGetBrands_正常系_リポジトリのgetAllを1回呼出す()

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest.xml

3 tests were completed in 43ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest 3✅ 43ms

✅ com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest

✅ testGetOrder_正常系_注文リポジトリから取得した情報と指定した購入者IDが合致する場合注文情報を取得できる()
✅ testGetOrder_異常系_注文リポジトリから取得した情報と指定した購入者IDが異なる場合例外になる()
✅ testGetOrder_異常系_注文リポジトリから注文情報を取得できない場合例外になる()

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest.xml

13 tests were completed in 242ms with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest 13✅ 242ms

✅ com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest

✅ testCheckout_異常系_指定した買い物かごが空の場合は業務例外が発生する()
✅ testAddItemToBasket_異常系_買い物かごが見つからない場合は例外が発生する()
✅ testSetQuantities_正常系_リポジトリのupdateを1度だけ呼出す()
✅ testCheckout_正常系_注文リポジトリのAddを1回呼出す()
✅ [1] buyerId=null
✅ [2] buyerId=
✅ [3] buyerId=
✅ testSetQuantities_異常系_カタログリポジトリに存在しない商品が指定された場合は例外が発生する()
✅ testAddItemToBasket_正常系_商品追加処理後に数量が0となる場合買い物かごアイテムは削除される()
✅ testAddItemToBasket_正常系_リポジトリのupdateを1度だけ呼出す()
✅ testSetQuantities_正常系_買い物かごに存在する商品を指定すると買い物かごの商品数が更新される()
✅ testSetQuantities_異常系_買い物かごに入っていない商品が指定された場合は例外が発生する()
✅ testGetBasketDetail_正常系_カタログIDに対応するカタログ情報が取得されること()

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.catalog.CatalogDomainServiceTest.xml

6 tests were completed in 79ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.catalog.CatalogDomainServiceTest 6✅ 79ms

✅ com.dressca.applicationcore.catalog.CatalogDomainServiceTest

✅ testExistAll_正常系_リポジトリ内に存在するアイテムのリストを返す()
✅ testExistAll_正常系_リポジトリのfindByCategoryIdInを1度だけ呼出す()
✅ testGetExistCatalogItems_正常系_リポジトリのfindByCategoryIdInを1度だけ呼出す()
✅ testExistAll_正常系_カタログアイテムIdが一部だけ存在する場合falseを返す()
✅ testExistAll_正常系_カタログアイテムIdが1件も存在しない場合falseを返す()
✅ testExistAll_正常系_カタログアイテムIdがすべて存在する場合trueを返す()

✅ samples/web-csr/dressca-backend/batch/build/test-results/test/TEST-com.dressca.batch.CatalogItemJobTest.xml

3 tests were completed in 1s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.batch.CatalogItemJobTest 3✅ 1s

✅ com.dressca.batch.CatalogItemJobTest

✅ jobTest_10data()
✅ jobTest_empty()
✅ stepTest_10data()

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml

1 tests were completed in 76ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest 1✅ 76ms

✅ com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest

✅ testGetAssetResourceInfo()

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest.xml

3 tests were completed in 493ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest 3✅ 493ms

✅ com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest

✅ testException_01_正常系_その他の業務エラーをステータースコード500で返却する(本番環境)。
✅ testException_02_正常系_その他のシステムエラーをステータースコード500で返却する(本番環境)。
✅ testException_03_正常系_上記のいずれにも当てはまらない例外をステータースコード500で返却する(本番環境)。

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest.xml

3 tests were completed in 190ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest 3✅ 190ms

✅ com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest

✅ testException_01_正常系_その他の業務エラーをステータースコード500で返却する(開発環境)。
✅ testException_02_正常系_その他のシステムエラーをステータースコード500で返却する(開発環境)。
✅ testException_03_正常系_上記のいずれにも当てはまらない例外をステータースコード500で返却する(開発環境)。

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.AssetsControllerTest.xml

2 tests were completed in 514ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.AssetsControllerTest 2✅ 514ms

✅ com.dressca.web.controller.AssetsControllerTest

✅ testGet_01_正常系_存在するアセットコード
✅ testGet_02_異常系_存在しないアセットコード

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.HealthCheckTest.xml

2 tests were completed in 71ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.HealthCheckTest 2✅ 71ms

✅ com.dressca.web.controller.HealthCheckTest

✅ testGet_03_ヘルスチェック_サーバ正常動作確認
✅ testGet_04_ヘルスチェック_DB正常動作確認

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.filter.BuyerIdFilterTest.xml

2 tests were completed in 105ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.filter.BuyerIdFilterTest 2✅ 105ms

✅ com.dressca.web.filter.BuyerIdFilterTest

✅ 構成ファイルの設定がない場合
✅ 構成ファイルの設定がある場合

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.WebApplicationTests.xml

1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.WebApplicationTests 1✅ 1s

✅ com.dressca.web.WebApplicationTests

✅ contextLoads()