Skip to content

Commit

Permalink
fix failing unit tests after adding new route and command
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeckle committed Oct 29, 2024
1 parent 1361cbd commit 2181be3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.eclipse.ditto.gateway.service.endpoints.directives.auth.DevopsAuthenticationDirectiveFactory;
import org.eclipse.ditto.gateway.service.endpoints.directives.auth.DittoGatewayAuthenticationDirectiveFactory;
import org.eclipse.ditto.gateway.service.endpoints.directives.auth.GatewayAuthenticationDirectiveFactory;
import org.eclipse.ditto.gateway.service.endpoints.routes.checkpermissions.CheckPermissionsRoute;
import org.eclipse.ditto.gateway.service.endpoints.routes.cloudevents.CloudEventsRoute;
import org.eclipse.ditto.gateway.service.endpoints.routes.connections.ConnectionsRoute;
import org.eclipse.ditto.gateway.service.endpoints.routes.devops.DevOpsRoute;
Expand Down Expand Up @@ -162,6 +163,7 @@ public void setUp() {
.thingsRoute(new ThingsRoute(routeBaseProperties, messageConfig, claimMessageConfig))
.thingSearchRoute(new ThingSearchRoute(routeBaseProperties))
.whoamiRoute(new WhoamiRoute(routeBaseProperties))
.checkPermissionsRoute(new CheckPermissionsRoute(routeBaseProperties))
.cloudEventsRoute(new CloudEventsRoute(routeBaseProperties, cloudEventsConfig))
.websocketRoute(WebSocketRoute.getInstance(routeBaseProperties.getActorSystem(),
routeBaseProperties.getProxyActor(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.eclipse.ditto.connectivity.api.commands.sudo.SudoRetrieveConnectionIdsByTag;
import org.eclipse.ditto.connectivity.model.signals.commands.modify.OpenConnection;
import org.eclipse.ditto.connectivity.model.signals.commands.query.RetrieveConnection;
import org.eclipse.ditto.gateway.service.endpoints.routes.checkpermissions.CheckPermissions;
import org.eclipse.ditto.gateway.service.endpoints.routes.whoami.Whoami;
import org.eclipse.ditto.internal.models.streaming.SudoStreamPids;
import org.eclipse.ditto.internal.utils.health.RetrieveHealth;
Expand Down Expand Up @@ -65,6 +66,7 @@ public GatewayServiceGlobalCommandRegistryTest() {
RetrieveHealth.class,
PurgeEntities.class,
Whoami.class,
CheckPermissions.class,
PublishSignal.class,
ModifySplitBrainResolver.class,
CleanupPersistence.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.eclipse.ditto.connectivity.model.signals.commands.ConnectivityErrorResponse;
import org.eclipse.ditto.connectivity.model.signals.commands.modify.OpenConnectionResponse;
import org.eclipse.ditto.connectivity.model.signals.commands.query.RetrieveConnectionResponse;
import org.eclipse.ditto.gateway.service.endpoints.routes.checkpermissions.CheckPermissionsResponse;
import org.eclipse.ditto.gateway.service.endpoints.routes.whoami.WhoamiResponse;
import org.eclipse.ditto.gateway.service.streaming.signals.StreamingAck;
import org.eclipse.ditto.internal.utils.health.RetrieveHealthResponse;
Expand Down Expand Up @@ -69,6 +70,7 @@ public GatewayServiceGlobalCommandResponseRegistryTest() {
PurgeEntitiesResponse.class,
StreamingAck.class,
WhoamiResponse.class,
CheckPermissionsResponse.class,
Acknowledgement.class,
ModifySplitBrainResolverResponse.class,
CleanupPersistenceResponse.class
Expand Down

0 comments on commit 2181be3

Please sign in to comment.