Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.
This repository was archived by the owner on May 13, 2026. It is now read-only.

Test data for categorySpec doesn't always reflect expected return data #157

Description

@Jonathan-Zollinger

Current Behavior

the logs aren't super helpful, but some category endpoints return data which doesn't include pricing. that may be because it doesn't include products or a parent object to pricing

We want to be sure this isn't a one-off problem.

this isn't one off, but it doesn't happen consistently since i dont know which data set produces this

Expected Behavior

tests dont expect non-null pricing when the endpoint doesn't provide a price.

Steps To Reproduce

run default maven tests. once in a while one fails

A picture is worth a thousand words

failed test output:

[ERROR] Failures:
[ERROR]   ThreshrControllerSpec.query product summary for category #id returns expected data:64 Condition not satisfied:

search.products().collect { null != it.price() }
|      |          |
|      []         []
Search[searchRecommendations=SearchRecommendations[categoryId=5xsxf, relatedCategories=null], searchResponse=SearchResponse[metadata=Metadata[responseIds=[Ljava.lang.String;@5257f99d, count=24, currentPage=1, keyword=null, offset=0, sortBy=bestselling, totalPages=0, totalResults=0, sortOptions=null], facets=null, visualFacets=null], searchSuggestions=null, products=[Lcom.graqr.threshr.model.redsky.product.Product;@7f2d4421]

Environment

NA

Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions