1919import com .nimbusds .jose .jwk .Curve ;
2020import com .nimbusds .jose .jwk .gen .ECKeyGenerator ;
2121import org .eclipse .edc .connector .controlplane .services .spi .transferprocess .TransferProcessService ;
22+ import org .eclipse .edc .connector .controlplane .test .system .utils .Participants ;
23+ import org .eclipse .edc .connector .controlplane .test .system .utils .client .ManagementApiClientV5 ;
24+ import org .eclipse .edc .connector .controlplane .test .system .utils .client .api .model .AssetDto ;
25+ import org .eclipse .edc .connector .controlplane .test .system .utils .client .api .model .DataAddressDto ;
26+ import org .eclipse .edc .connector .controlplane .test .system .utils .client .api .model .PermissionDto ;
27+ import org .eclipse .edc .connector .controlplane .test .system .utils .client .api .model .PolicyDefinitionDto ;
28+ import org .eclipse .edc .connector .controlplane .test .system .utils .client .api .model .PolicyDto ;
2229import org .eclipse .edc .connector .dataplane .spi .Endpoint ;
2330import org .eclipse .edc .connector .dataplane .spi .iam .PublicEndpointGeneratorService ;
2431import org .eclipse .edc .junit .annotations .Runtime ;
2532import org .eclipse .edc .spi .EdcException ;
2633import org .eclipse .edc .spi .security .Vault ;
2734import org .eclipse .edc .virtual .Runtimes .ControlPlane ;
28- import org .eclipse .edc .virtual .transfer .fixtures .Participants ;
2935import org .eclipse .edc .virtual .transfer .fixtures .VirtualConnector ;
30- import org .eclipse .edc .virtual .transfer .fixtures .VirtualConnectorClient ;
31- import org .eclipse .edc .virtual .transfer .fixtures .api .model .AssetDto ;
32- import org .eclipse .edc .virtual .transfer .fixtures .api .model .DataAddressDto ;
33- import org .eclipse .edc .virtual .transfer .fixtures .api .model .PermissionDto ;
34- import org .eclipse .edc .virtual .transfer .fixtures .api .model .PolicyDefinitionDto ;
35- import org .eclipse .edc .virtual .transfer .fixtures .api .model .PolicyDto ;
3636import org .junit .jupiter .api .BeforeAll ;
3737import org .junit .jupiter .api .Test ;
3838import org .junit .jupiter .api .extension .RegisterExtension ;
@@ -56,7 +56,7 @@ abstract class TransferPullEndToEndTestBase {
5656
5757 @ BeforeAll
5858 static void beforeAll (PublicEndpointGeneratorService generatorService ,
59- VirtualConnectorClient connectorClient ,
59+ ManagementApiClientV5 connectorClient ,
6060 Participants participants ,
6161 @ Runtime (ControlPlane .NAME ) Vault vault ) {
6262 generatorService .addGeneratorFunction ("HttpData" , address -> Endpoint .url ("http://example.com" ));
@@ -78,7 +78,7 @@ static void beforeAll(PublicEndpointGeneratorService generatorService,
7878 }
7979
8080 @ Test
81- void transfer (VirtualConnector env , VirtualConnectorClient connectorClient , Participants participants ) {
81+ void transfer (VirtualConnector env , ManagementApiClientV5 connectorClient , Participants participants ) {
8282 var providerAddress = env .getProtocolEndpoint ().get () + "/" + participants .provider ().contextId () + "/2025-1" ;
8383
8484 var assetId = setup (connectorClient , participants .provider ());
@@ -92,7 +92,7 @@ void transfer(VirtualConnector env, VirtualConnectorClient connectorClient, Part
9292 }
9393
9494 @ Test
95- void suspendAndResumeByProvider (VirtualConnector env , VirtualConnectorClient connectorClient , Participants participants ) {
95+ void suspendAndResumeByProvider (VirtualConnector env , ManagementApiClientV5 connectorClient , Participants participants ) {
9696 var providerAddress = env .getProtocolEndpoint ().get () + "/" + participants .provider ().contextId () + "/2025-1" ;
9797
9898 var assetId = setup (connectorClient , participants .provider ());
@@ -116,7 +116,7 @@ void suspendAndResumeByProvider(VirtualConnector env, VirtualConnectorClient con
116116 }
117117
118118 @ Test
119- void suspendAndResumeByConsumer (VirtualConnector env , VirtualConnectorClient connectorClient , Participants participants ) {
119+ void suspendAndResumeByConsumer (VirtualConnector env , ManagementApiClientV5 connectorClient , Participants participants ) {
120120 var providerAddress = env .getProtocolEndpoint ().get () + "/" + participants .provider ().contextId () + "/2025-1" ;
121121
122122 var assetId = setup (connectorClient , participants .provider ());
@@ -139,7 +139,7 @@ void suspendAndResumeByConsumer(VirtualConnector env, VirtualConnectorClient con
139139 }
140140
141141 @ Test
142- void terminateByConsumer (VirtualConnector env , VirtualConnectorClient connectorClient , Participants participants ) {
142+ void terminateByConsumer (VirtualConnector env , ManagementApiClientV5 connectorClient , Participants participants ) {
143143 var providerAddress = env .getProtocolEndpoint ().get () + "/" + participants .provider ().contextId () + "/2025-1" ;
144144
145145 var assetId = setup (connectorClient , participants .provider ());
@@ -158,7 +158,7 @@ void terminateByConsumer(VirtualConnector env, VirtualConnectorClient connectorC
158158 }
159159
160160 @ Test
161- void terminateByProvider (VirtualConnector env , VirtualConnectorClient connectorClient , Participants participants ) {
161+ void terminateByProvider (VirtualConnector env , ManagementApiClientV5 connectorClient , Participants participants ) {
162162 var providerAddress = env .getProtocolEndpoint ().get () + "/" + participants .provider ().contextId () + "/2025-1" ;
163163
164164 var assetId = setup (connectorClient , participants .provider ());
@@ -177,7 +177,7 @@ void terminateByProvider(VirtualConnector env, VirtualConnectorClient connectorC
177177 }
178178
179179 @ Test
180- void completeByProvider (VirtualConnector env , TransferProcessService service , VirtualConnectorClient connectorClient , Participants participants ) {
180+ void completeByProvider (VirtualConnector env , TransferProcessService service , ManagementApiClientV5 connectorClient , Participants participants ) {
181181 var providerAddress = env .getProtocolEndpoint ().get () + "/" + participants .provider ().contextId () + "/2025-1" ;
182182
183183 var assetId = setup (connectorClient , participants .provider ());
@@ -198,7 +198,7 @@ void completeByProvider(VirtualConnector env, TransferProcessService service, Vi
198198 }
199199
200200 @ Test
201- void completeByConsumer (VirtualConnector env , TransferProcessService service , VirtualConnectorClient connectorClient , Participants participants ) {
201+ void completeByConsumer (VirtualConnector env , TransferProcessService service , ManagementApiClientV5 connectorClient , Participants participants ) {
202202 var providerAddress = env .getProtocolEndpoint ().get () + "/" + participants .provider ().contextId () + "/2025-1" ;
203203
204204 var assetId = setup (connectorClient , participants .provider ());
@@ -218,7 +218,7 @@ void completeByConsumer(VirtualConnector env, TransferProcessService service, Vi
218218
219219 }
220220
221- private String setup (VirtualConnectorClient connectorClient , Participants .Participant provider ) {
221+ private String setup (ManagementApiClientV5 connectorClient , Participants .Participant provider ) {
222222 var asset = new AssetDto (new DataAddressDto ("HttpData" ));
223223
224224 var permissions = List .of (new PermissionDto ());
0 commit comments