Index

RecipeSearchControllerFiltersTest

Method API Call Tests
testFiltersDefault GET /v1/recipes/filters

Retrieve recipe filters.

  • Assert all filters are present.

RecipeSearchControllerTest

Method API Call Tests
testSearchSuggestTitle GET /v1/recipes/suggest/title

Suggest recipes autocomplete on title.

  • Asserts result contains fields recipe_id, title, slug, canonical_url.
  • Asserts title contains query filter.
  • Asserts number of results equal to max filter.
testSearchDefault POST /v1/recipes/search

Search recipes with default parameters.

  • Asserts number of results equals 15
testSearchPage POST /v1/recipes/search

Search recipes with page parameter.

  • Asserts number of results equals 15
  • Asserts correct page.
testSearchItemsPerPage POST /v1/recipes/search

Search recipes with items_per_page parameter.

  • Asserts correct number of items per page.
  • Asserts correct page.
testSearchSortCreatedDateAsc POST /v1/recipes/search

Search recipes with date sort parameter.

  • Assert date first result greater than date last result
testSearchSortCreatedDateDesc POST /v1/recipes/search

Search recipes with descending date sort parameter.

  • Assert date first result less than date last result
testSearchSortKcalIntAsc POST /v1/recipes/search

Search recipes with int sort parameter.

  • Assert amount first result greater than amount last result
testSearchSortKcalIntDesc POST /v1/recipes/search

Search recipes with int sort parameter.

  • Assert amount first result greater than amount last result
testSearchFilterCreatedDate POST /v1/recipes/search

Search recipes with created_date parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterUpdatedDate POST /v1/recipes/search

Search recipes with updated_date parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterKcal POST /v1/recipes/search

Search recipes with kcal parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterFat POST /v1/recipes/search

Search recipes with fat parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterSaturatedFat POST /v1/recipes/search

Search recipes with saturated_fat parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterCarbs POST /v1/recipes/search

Search recipes with carbs parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterProtein POST /v1/recipes/search

Search recipes with protein parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterFibers POST /v1/recipes/search

Search recipes with fibers parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterSalt POST /v1/recipes/search

Search recipes with salt parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterPersons POST /v1/recipes/search

Search recipes with persons parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterPreparationTime POST /v1/recipes/search

Search recipes with preparation_time parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterRatingAverage POST /v1/recipes/search

Search recipes with rating_average parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterViewCount POST /v1/recipes/search

Search recipes with view_count parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterDifficultyId POST /v1/recipes/search

Search recipes with difficulty_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterDifficultyStr POST /v1/recipes/search

Search recipes with difficulty_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterCourseMultiId POST /v1/recipes/search

Search recipes with course_multi_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterCourseMultiStr POST /v1/recipes/search

Search recipes with course_multi_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterKitchenMultiId POST /v1/recipes/search

Search recipes with kitchen_multi_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterKitchenMultiStr POST /v1/recipes/search

Search recipes with kitchen_multi_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterMainIngredientMultiId POST /v1/recipes/search

Search recipes with mainingredient_multi_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterMainIngredientMultiStr POST /v1/recipes/search

Search recipes with mainingredient_multi_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterMagazineMultiId POST /v1/recipes/search

Search recipes with magazine_multi_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterMagazineMultiStr POST /v1/recipes/search

Search recipes with magazine_multi_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterTagMultiId POST /v1/recipes/search

Search recipes with tag_multi_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterTagMultiStr POST /v1/recipes/search

Search recipes with tag_multi_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterWineMultiId POST /v1/recipes/search

Search recipes with wine_multi_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterWineMultiStr POST /v1/recipes/search

Search recipes with wine_multi_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterIngredientMultiId POST /v1/recipes/search

Search recipes with ingredient_multi_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterIngredientMultiStr POST /v1/recipes/search

Search recipes with ingredient_multi_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterStatusId POST /v1/recipes/search

Search recipes with status_id parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.
testSearchFilterStatusStr POST /v1/recipes/search

Search recipes with status_str parameter.

  • Assert found items greater than 0.
  • Assert found items less than total items.

RecipeControllerTest

Method API Call Tests
testGetRecipe GET /v1/recipes/{id}

Get single recipe with id.

testGetRecipeNotFound GET /v1/recipes/{id}

Get non-existing recipe.

testRateRecipe POST /v1/recipes/{id}/rate

Register a rating for a recipe.

  • Asserts rating between 1 and 10.
testViewRecipe POST /v1/recipes/{id}/rate

Register a view for a recipe.

DownloadControllerTest

Method API Call Tests
testDownloadImage GET /v1/download/image/{id}

Get image binary with id.

testDownloadImageNotFound GET /v1/download/image/{id}

Get non-existing image binary with id.

testDownloadImageVariant GET /v1/download/image/{id}

Get image variant binary with id.

testDownloadImageVariantNotFound GET /v1/download/image/{id}

Get non-existing image variant binary with id.