scalecube / scalecube-gateway

ScaleCube API Gateway is the single entry point for service consumers. handles incoming requests and proxy/route to the appropriate microservice instance.
Apache License 2.0
18 stars 7 forks source link

Add deferWithContext in RSocket gateway #121

Open artem-v opened 4 years ago

artem-v commented 4 years ago

Subj.

We have a test disabled because of defer context not implemented in rsocket gw: io.scalecube.services.gateway.rsocket.RSocketLocalGatewayAuthTest#testCallSecuredMethod_authenticated

  @Disabled("https://github.com/scalecube/scalecube-gateway/issues/121")
  void testCallSecuredMethod_authenticated() {
    // authenticate session
    extension.client().requestOne(createSessionReq(ALLOWED_USER), String.class).block(TIMEOUT);
    // call secured service
    final String req = "echo";
    StepVerifier.create(clientService.requestOne(req))
        .expectNextMatches(resp -> resp.equals(ALLOWED_USER + "@" + req))
        .expectComplete()
        .verify();
  }