27
27
import org .junit .jupiter .api .extension .RegisterExtension ;
28
28
import org .mockserver .integration .ClientAndServer ;
29
29
30
+ import java .util .HashMap ;
30
31
import java .util .Map ;
31
32
32
33
import static io .restassured .RestAssured .given ;
@@ -64,16 +65,21 @@ class ControlPlaneDcp extends SmokeTest {
64
65
@ RegisterExtension
65
66
protected RuntimeExtension runtime =
66
67
new RuntimePerMethodExtension (new EmbeddedRuntime ("control-plane-dcp-bom" ,
67
- Map .of (
68
- "edc.iam.sts.oauth.token.url" , "https://sts.com/token" ,
69
- "edc.iam.sts.oauth.client.id" , "test-client" ,
70
- "edc.iam.sts.oauth.client.secret.alias" , "test-alias" ,
71
- "web.http.port" , DEFAULT_PORT ,
72
- "web.http.path" , DEFAULT_PATH ,
73
- "web.http.version.port" , String .valueOf (getFreePort ()),
74
- "web.http.version.path" , "/api/version" ,
75
- "web.http.management.port" , "8081" ,
76
- "web.http.management.path" , "/api/management" ),
68
+ new HashMap <>() {
69
+ {
70
+ put ("edc.iam.sts.oauth.token.url" , "https://sts.com/token" );
71
+ put ("edc.iam.sts.oauth.client.id" , "test-client" );
72
+ put ("edc.iam.sts.oauth.client.secret.alias" , "test-alias" );
73
+ put ("web.http.port" , DEFAULT_PORT );
74
+ put ("web.http.path" , DEFAULT_PATH );
75
+ put ("web.http.version.port" , String .valueOf (getFreePort ()));
76
+ put ("web.http.version.path" , "/api/version" );
77
+ put ("web.http.control.port" , String .valueOf (getFreePort ()));
78
+ put ("web.http.control.path" , "/api/control" );
79
+ put ("web.http.management.port" , "8081" );
80
+ put ("web.http.management.path" , "/api/management" );
81
+ }
82
+ },
77
83
":dist:bom:controlplane-dcp-bom"
78
84
));
79
85
}
@@ -96,6 +102,8 @@ class ControlPlaneOauth2 extends SmokeTest {
96
102
put ("web.http.management.path" , "/api/management" );
97
103
put ("web.http.port" , DEFAULT_PORT );
98
104
put ("web.http.path" , DEFAULT_PATH );
105
+ put ("web.http.control.port" , String .valueOf (getFreePort ()));
106
+ put ("web.http.control.path" , "/api/control" );
99
107
put ("web.http.version.port" , String .valueOf (getFreePort ()));
100
108
put ("web.http.version.path" , "/api/version" );
101
109
0 commit comments