File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
modules/analysis/src/endpoints/tests Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ use std:: collections:: HashSet ;
2+
13use crate :: test:: caller;
24
35use actix_http:: Request ;
@@ -219,7 +221,16 @@ async fn resolve_rh_variant_latest_filter_middleware_cdx(
219221 ) ;
220222 let request: Request = TestRequest :: get ( ) . uri ( & uri) . to_request ( ) ;
221223 let response: Value = app. call_and_read_body_json ( request) . await ;
222- assert_eq ! ( response[ "total" ] , 2 ) ;
224+ assert_eq ! ( response[ "total" ] , 3 ) ;
225+ let items = response[ "items" ]
226+ . as_array ( )
227+ . unwrap ( )
228+ . iter ( )
229+ . filter_map ( |e| e[ "product_name" ] . as_str ( ) )
230+ . collect :: < HashSet < _ > > ( ) ;
231+
232+ assert ! ( items. contains( "quarkus-camel-bom" ) ) ;
233+ assert ! ( items. contains( "quarkus-cxf-bom" ) ) ;
223234
224235 // name exact search
225236 let uri: String = format ! (
You can’t perform that action at this time.
0 commit comments