11package com .sap .ai .sdk .app .controllers ;
22
33import static com .sap .ai .sdk .app .controllers .GroundingController .RESOURCE_GROUP ;
4- import static com .sap .ai .sdk .app .controllers .GroundingController .RESOURCE_GROUP_JS ;
54import static java .time .LocalDate .now ;
65import static org .assertj .core .api .Assertions .assertThat ;
76import static org .assertj .core .api .Assertions .assertThatThrownBy ;
1918import java .util .UUID ;
2019import org .junit .jupiter .api .Disabled ;
2120import org .junit .jupiter .api .Test ;
22- import org .springframework .web .client .HttpClientErrorException .NotFound ;
2321
2422class GroundingTest {
2523 private static final String JSON_FORMAT = "json" ;
@@ -28,18 +26,13 @@ class GroundingTest {
2826 void testPipelinesGetAll () {
2927 final var controller = new GroundingController ();
3028
31- // Java has no pipelines, it returns 404 for whatever reason
32- assertThatThrownBy (() -> controller .getAllPipelines (JSON_FORMAT , RESOURCE_GROUP ))
33- .isExactlyInstanceOf (NotFound .class )
34- .hasMessageContaining ("404" );
35-
36- // JS has 2 pipelines
37- final var result = controller .getAllPipelines (JSON_FORMAT , RESOURCE_GROUP_JS );
29+ // we don't have testable data yet, but the endpoint works without errors
30+ var result = controller .getAllPipelines (JSON_FORMAT , RESOURCE_GROUP );
3831 assertThat (result ).isInstanceOf (GetPipelines .class );
39- final var pipelinesList = ((GetPipelines ) result ).getResources ();
40- assertThat (pipelinesList ).hasSize ( 2 );
41- final var pipelinesCount = ((GetPipelines ) result ).getCount ();
42- assertThat (pipelinesCount ).isEqualTo (2 );
32+ var pipelinesList = ((GetPipelines ) result ).getResources ();
33+ assertThat (pipelinesList ).isEmpty ( );
34+ var pipelinesCount = ((GetPipelines ) result ).getCount ();
35+ assertThat (pipelinesCount ).isEqualTo (0 );
4336 }
4437
4538 @ Test
0 commit comments