15
15
16
16
import java .util .Collections ;
17
17
18
+ import org .apache .pekko .http .javadsl .model .ContentTypes ;
19
+ import org .apache .pekko .http .javadsl .model .HttpEntities ;
20
+ import org .apache .pekko .http .javadsl .model .HttpRequest ;
21
+ import org .apache .pekko .http .javadsl .model .RequestEntity ;
22
+ import org .apache .pekko .http .javadsl .model .StatusCodes ;
23
+ import org .apache .pekko .http .javadsl .server .Route ;
24
+ import org .apache .pekko .http .javadsl .testkit .TestRoute ;
18
25
import org .eclipse .ditto .base .api .devops .signals .commands .ExecutePiggybackCommand ;
19
26
import org .eclipse .ditto .base .model .headers .DittoHeaders ;
20
27
import org .eclipse .ditto .gateway .service .endpoints .EndpointTestBase ;
28
35
29
36
import com .typesafe .config .ConfigFactory ;
30
37
31
- import org .apache .pekko .http .javadsl .model .ContentTypes ;
32
- import org .apache .pekko .http .javadsl .model .HttpEntities ;
33
- import org .apache .pekko .http .javadsl .model .HttpRequest ;
34
- import org .apache .pekko .http .javadsl .model .RequestEntity ;
35
- import org .apache .pekko .http .javadsl .model .StatusCodes ;
36
- import org .apache .pekko .http .javadsl .server .Route ;
37
- import org .apache .pekko .http .javadsl .testkit .TestRoute ;
38
-
39
38
/**
40
39
* Unit test for {@link DevOpsRoute}.
41
40
*/
@@ -48,7 +47,7 @@ public final class DevOpsRouteTest extends EndpointTestBase {
48
47
@ Before
49
48
public void setUp () {
50
49
final var devopsAuthenticationDirectiveFactory =
51
- DevopsAuthenticationDirectiveFactory .newInstance (jwtAuthenticationFactory , getInsecureDevopsConfig ());
50
+ DevopsAuthenticationDirectiveFactory .newInstance (jwtAuthenticationFactory , getInsecureDevopsConfig (), ConfigFactory . empty () );
52
51
final var authenticationDirective = devopsAuthenticationDirectiveFactory .devops ();
53
52
devOpsRoute = new DevOpsRoute (routeBaseProperties , authenticationDirective );
54
53
final Route route = extractRequestContext (ctx -> devOpsRoute .buildDevOpsRoute (ctx , Collections .emptyMap ()));
0 commit comments