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

Issue #1168 storefront only get product added to warehouse #1246

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

issue #1168: update IT test

378f99e
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Issue #1168 storefront only get product added to warehouse #1246

issue #1168: update IT test
378f99e
Select commit
Loading
Failed to load commit list.
GitHub Actions / Product-Service-Unit-Test-Results succeeded Oct 30, 2024 in 0s

179 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
product/target/failsafe-reports/TEST-com.yas.product.controller.BrandControllerIT.xml 14✅ 2s
product/target/failsafe-reports/TEST-com.yas.product.controller.CategoryControllerIT.xml 19✅ 3s
product/target/failsafe-reports/TEST-com.yas.product.controller.ProductControllerIT.xml 20✅ 9s
product/target/failsafe-reports/TEST-com.yas.product.service.MediaServiceIT.xml 1✅ 55s
product/target/failsafe-reports/TEST-com.yas.product.service.ProductServiceIT.xml 23✅ 32s
product/target/surefire-reports/TEST-com.yas.product.controller.BrandControllerTest.xml 6✅ 386ms
product/target/surefire-reports/TEST-com.yas.product.controller.CategoryControllerTest.xml 6✅ 986ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeControllerTest.xml 8✅ 312ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeGroupControllerTest.xml 6✅ 284ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeValueControllerTest.xml 4✅ 320ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductControllerTest.xml 25✅ 695ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionCombinationControllerTest.xml 1✅ 425ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionControllerTest.xml 7✅ 339ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionValueControllerTest.xml 2✅ 266ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductTemplateControllerTest.xml 6✅ 399ms
product/target/surefire-reports/TEST-com.yas.product.service.CategoryServiceTest.xml 3✅ 17s
product/target/surefire-reports/TEST-com.yas.product.service.ProductAttributeGroupServiceTest.xml 7✅ 214ms
product/target/surefire-reports/TEST-com.yas.product.service.ProductAttributeServiceTest.xml 7✅ 97ms
product/target/surefire-reports/TEST-com.yas.product.service.ProductOptionServiceTest.xml 7✅ 109ms
product/target/surefire-reports/TEST-com.yas.product.service.ProductTemplateServiceTest.xml 7✅ 4s

✅ product/target/failsafe-reports/TEST-com.yas.product.controller.BrandControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.BrandControllerIT 14✅ 2s

✅ com.yas.product.controller.BrandControllerIT

✅ test_getBrand_thenReturn403_whenProvideInvalidAccessToken
✅ test_getBrandById_shouldReturnBrand_whenProvideValidId
✅ test_deleteBrand_shouldDeleteSuccess_whenProvideValidId
✅ test_deleteBrand_shouldReturn404_whenNotFound
✅ test_getListBrandsByIds_shouldReturnListBrands
✅ test_getListBrandsBackoffice_shouldReturnListBrands
✅ test_updateBrand_thenSuccess_whenProvideValidData
✅ test_getListBrandsStorefront_shouldReturnListBrands
✅ test_createBrand_thenSuccess_whenProvideValidData
✅ test_updateBrand_thenReturn404_whenBrandNotFound
✅ test_getPageableBrandStorefront_shouldReturnBrands
✅ test_createBrand_thenReturn400_whenProvideExistedName
✅ test_getPageableBrandBackoffice_shouldReturnBrands
✅ test_getBrandById_shouldReturn404_whenNotFound

✅ product/target/failsafe-reports/TEST-com.yas.product.controller.CategoryControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.CategoryControllerIT 19✅ 3s

✅ com.yas.product.controller.CategoryControllerIT

✅ test_getCategoryById_shouldReturnCategory
✅ test_updateCategory_shouldReturn404_ifNotFound
✅ test_createCategoryWithParentNull_shouldSuccess_whenProvideValidData
✅ test_createCategory_shouldSuccess_whenProvideValidData
✅ test_updateCategory_shouldSuccess_whenProvideValidData
✅ test_createCategoryWithNameExist_shouldReturnError
✅ test_updateCategoryWithParentNull_shouldSuccess_whenProvideValidData
✅ test_getAllCategoriesBackoffice_shouldReturnListCategories
✅ test_getAllCategoriesByIds_shouldReturnListCategories
✅ test_createCategoryWithParentNotFound_shouldReturn400
✅ test_updateCategoryWithParentItSelf_shouldReturn400
✅ test_getTopNthCategories_shouldReturnEmptyList
✅ test_deleteCategory_shouldReturn404_whenNotFound
✅ test_deleteCategory_shouldReturn400_whenContainsChildren
✅ test_getAllCategoriesStorefront_shouldReturnListCategories
✅ test_deleteCategory_shouldSuccess_whenProvideValidId
✅ test_updateCategoryWithParentNotFound_shouldReturn400
✅ test_getCategoryByIdWithParent_shouldReturnCategory
✅ test_getCategoryById_shouldReturn404_whenNotFound

✅ product/target/failsafe-reports/TEST-com.yas.product.controller.ProductControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductControllerIT 20✅ 9s

✅ com.yas.product.controller.ProductControllerIT

✅ test_getRelatedProductBackoffice_shouldReturnProducts
✅ test_getProductByBrand_shouldReturnProducts
✅ test_updateProductQuantity_shouldSuccess
✅ test_updateProduct_whenProductNotExist_shouldThrowNotFoundException
✅ test_getProductSlugById_shouldReturnProduct
✅ test_createProduct_shouldSuccess
✅ test_getProductByIds_shouldReturnProduct
✅ test_getProductById_shouldReturnProduct
✅ test_getProductDetailWithSlug_shouldReturnProduct
✅ test_subtractProductQuantity_shouldSuccess
✅ test_getProductFeatureById_shouldReturnProductList
✅ test_exportProduct_shouldSuccess
✅ test_getProductSlugStorefrontById_shouldReturnProduct
✅ test_getProductListBackoffice_shouldReturnProductList
✅ test_getProductCheckoutList_shouldReturnProductList
✅ test_getProductForWarehouse_shouldReturnProduct
✅ test_updateProduct_whenNoVariation_shouldSuccess
✅ test_updateProduct_shouldSuccess
✅ test_getRelatedProductStorefront_shouldReturnProducts
✅ test_getProductDetail_shouldReturnProduct

✅ product/target/failsafe-reports/TEST-com.yas.product.service.MediaServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.service.MediaServiceIT 1✅ 55s

✅ com.yas.product.service.MediaServiceIT

✅ test_getMedia_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

✅ product/target/failsafe-reports/TEST-com.yas.product.service.ProductServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductServiceIT 23✅ 32s

✅ com.yas.product.service.ProductServiceIT

✅ getFeaturedProducts_WhenEverythingIsOkay_Success
✅ getProductsFromCategory_CategoryIsNonExist_ThrowsNotFoundException
✅ getProductsFromCategory_WhenFindAllByCategory_ThenSuccess
✅ deleteProduct_givenParentProduct_thenSuccess
✅ getProductsWithFilter_WhenFilterByBrandName_ThenSuccess
✅ getListFeaturedProductsByListProductIds_whenAllProductIdsValid_shouldSuccess
✅ getProductsByCategoryIds_WhenFindAllByCategoryIds_ThenSuccess
✅ deleteProduct_givenProductIdInvalid_thenThrowNotFoundException
✅ testGetLatestProducts_WhenCountIs0_returnEmpty
✅ getProductsByMultiQuery_WhenFilterByBrandNameAndProductName_ThenSuccess
✅ getProduct_whenProductIdInvalid_shouldThrowException
✅ getProductsByBrand_BrandIsNonExist_ThrowsNotFoundException
✅ testGetLatestProducts_WhenCountLessThen1_returnEmpty
✅ getProductsByBrandIds_WhenFindAllByBrandIds_ThenSuccess
✅ getProductsWithFilter_WhenFilterByBrandNameAndProductName_ThenSuccess
✅ getProductsWithFilter_whenFindAll_thenSuccess
✅ testGetLatestProducts_WhenProductsEmpty_returnEmpty
✅ getProduct_whenProductIdValid_shouldSuccess
✅ deleteProduct_givenNoOption_noDeleteAll
✅ deleteProduct_givenVariant_thenSuccess
✅ getProductsWithFilter_WhenFilterByProductName_ThenSuccess
✅ getProductsByBrand_BrandSlugIsValid_Success
✅ testGetLatestProducts_WhenHasListProductListVm_returnListProductListVm

✅ product/target/surefire-reports/TEST-com.yas.product.controller.BrandControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.BrandControllerTest 6✅ 386ms

✅ com.yas.product.controller.BrandControllerTest

✅ testDeleteBrand
✅ testGetBrand
✅ testUpdateBrand
✅ testCreateBrand
✅ testListBrands
✅ testGetBrandNotFound

✅ product/target/surefire-reports/TEST-com.yas.product.controller.CategoryControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.CategoryControllerTest 6✅ 986ms

✅ com.yas.product.controller.CategoryControllerTest

✅ testListCategories
✅ testDeleteCategoryBadRequest
✅ testUpdateCategory
✅ testCreateCategory
✅ testDeleteCategory
✅ testGetCategory

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeControllerTest.xml

8 tests were completed in 312ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductAttributeControllerTest 8✅ 312ms

✅ com.yas.product.controller.ProductAttributeControllerTest

✅ testGetPageableProductAttributes
✅ testListProductAttributes
✅ testCreateProductAttribute
✅ testGetProductAttributeNotFound
✅ testDeleteProductAttributeWithAttributeValues
✅ testDeleteProductAttribute
✅ testUpdateProductAttribute
✅ testGetProductAttribute

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeGroupControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductAttributeGroupControllerTest 6✅ 284ms

✅ com.yas.product.controller.ProductAttributeGroupControllerTest

✅ testCreateProductAttributeGroup
✅ testGetProductAttributeGroup
✅ testGetPageableProductAttributeGroups
✅ testUpdateProductAttributeGroup
✅ testDeleteProductAttributeGroup
✅ testListProductAttributeGroups

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeValueControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductAttributeValueControllerTest 4✅ 320ms

✅ com.yas.product.controller.ProductAttributeValueControllerTest

✅ testListProductAttributeValuesByProductId
✅ testCreateProductAttributeValue
✅ testDeleteProductAttributeValueById
✅ testUpdateProductAttributeValue

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductControllerTest.xml

25 tests were completed in 695ms with 25 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductControllerTest 25✅ 695ms

✅ com.yas.product.controller.ProductControllerTest

✅ testSubtractProductQuantity
✅ testGetProductDetailById
✅ testGetProductByCategories_Success
✅ testGetProductEsDetailById
✅ testGetProductsByBrand
✅ testGetProductDetail
✅ testUpdateProductEndpoint
✅ testGetProductByBrands_Success
✅ testGetProductsByMultiQuery
✅ testGetFeaturedProductsById
✅ testGetProductsByCategory
✅ testGetProductVariationsByParentId
✅ testGetRelatedProductsBackoffice
✅ testListProductsEndpoint
✅ testUpdateProductQuantity
✅ testExportProductsEndpoint
✅ testGetProductsForWarehouse
✅ testGetFeaturedProducts
✅ testGetLatestProducts_Success
✅ testGetProductById
✅ testGetProductSlug
✅ testDeleteProduct
✅ testCreateProductEndpoint
✅ testGetRelatedProductsStorefront
✅ testGetProductCheckoutList_returnListProduct

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionCombinationControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductOptionCombinationControllerTest 1✅ 425ms

✅ com.yas.product.controller.ProductOptionCombinationControllerTest

✅ listProductOptionValueOfProduct

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionControllerTest.xml

7 tests were completed in 339ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductOptionControllerTest 7✅ 339ms

✅ com.yas.product.controller.ProductOptionControllerTest

✅ testGetPageableProductOptions
✅ testGetProductOption
✅ testDeleteProductOption
✅ testUpdateProductOption
✅ testGetProductOptionNotFound
✅ testListProductOption
✅ testCreateProductOption

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionValueControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductOptionValueControllerTest 2✅ 266ms

✅ com.yas.product.controller.ProductOptionValueControllerTest

✅ testListProductOptionValueOfProduct
✅ testListProductOptionValues

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductTemplateControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductTemplateControllerTest 6✅ 399ms

✅ com.yas.product.controller.ProductTemplateControllerTest

✅ testCreateProductTemplate
✅ testListProductTemplate
✅ testUpdateProductTemplate
✅ testGetProductTemplate
✅ testGetProductTemplateNotFound
✅ testGetPageableProductTemplates

✅ product/target/surefire-reports/TEST-com.yas.product.service.CategoryServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.service.CategoryServiceTest 3✅ 17s

✅ com.yas.product.service.CategoryServiceTest

✅ getCategoryById_Success
✅ getCategories_Success
✅ getCategoriesPageable_Success

✅ product/target/surefire-reports/TEST-com.yas.product.service.ProductAttributeGroupServiceTest.xml

7 tests were completed in 214ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductAttributeGroupServiceTest 7✅ 214ms

✅ com.yas.product.service.ProductAttributeGroupServiceTest

✅ test_handle_page_size_of_zero
✅ test_save_new_product_attribute_group_without_duplication
✅ test_handle_page_number_out_of_bounds
✅ test_retrieve_pageable_product_attribute_groups_successfully
✅ test_handle_empty_product_attribute_group_list_gracefully
✅ test_convert_product_attribute_group_to_vm_correctly
✅ test_handle_null_values_in_product_attribute_group_fields

✅ product/target/surefire-reports/TEST-com.yas.product.service.ProductAttributeServiceTest.xml

7 tests were completed in 97ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductAttributeServiceTest 7✅ 97ms

✅ com.yas.product.service.ProductAttributeServiceTest

✅ test_save_product_attribute_with_null_group_id
✅ test_update_product_attribute_with_duplicated_name
✅ test_update_product_attribute_with_null_group_id
✅ test_update_existing_product_attribute_with_valid_name_and_group_id
✅ test_retrieve_pageable_product_attributes_successfully
✅ test_save_product_attribute_with_duplicated_name
✅ test_save_new_product_attribute_with_valid_name_and_group_id

✅ product/target/surefire-reports/TEST-com.yas.product.service.ProductOptionServiceTest.xml

7 tests were completed in 109ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductOptionServiceTest 7✅ 109ms

✅ com.yas.product.service.ProductOptionServiceTest

✅ test_update_product_option_unique_name
✅ test_get_pageable_product_options_empty_list
✅ test_create_product_option_duplicated_name
✅ test_update_product_option_duplicated_name
✅ test_get_pageable_product_options_success
✅ test_create_product_option_unique_name
✅ test_update_non_existent_product_option

✅ product/target/surefire-reports/TEST-com.yas.product.service.ProductTemplateServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductTemplateServiceTest 7✅ 4s

✅ com.yas.product.service.ProductTemplateServiceTest

✅ saveProductTemplate_WhenDuplicateName_ThenThrowDuplicatedException
✅ getPageableProductTemplate_WhenGetPageable_thenSuccess
✅ updateProductTemplate_WhenIdProductTemplateNotExist_ThenThrowNotFoundException
✅ saveProductTemplate_WhenProductTemplatePostVm_ThenSuccess
✅ getProductTemplate_WhenIdProductTemplateValid_thenSuccess
✅ saveProductTemplate_WhenProductAttributesNotFound_ThenThrowBadRequestException
✅ getProductTemplate_WhenIdProductTemplateNotExit_ThrowsNotFoundException