We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement unit tests for http endpoints in server module. Depends on #151
Below is a piece of unfinished code. It requires dependency which is not compiled for Java 8.
lazy val tapirStubServer = tapirOrg %% "tapir-sttp-stub-server" % Versions.tapir % Test
package za.co.absa.atum.server.api.http import org.scalatest.funspec.AnyFunSpec import org.scalatest.matchers.should.Matchers import sttp.client3._ import sttp.client3.testing.SttpBackendStub import sttp.tapir.server.stub.TapirStubInterpreter import za.co.absa.atum.server.api.TestData class EndpointsSpec extends AnyFunSpec with Matchers with Endpoints with TestData { describe("CreateCheckpointEndpoint"){ describe("When success response configured"){ it("Should produce Right with CheckpointDTO"){ val createCheckpointBackendStub = TapirStubInterpreter(SttpBackendStub.synchronous) .whenEndpoint(createCheckpointEndpoint) .thenRespond(checkpointDTO1) .backend() val response = basicRequest .post(uri"http://test.com/api/v1/createCheckpoint") .send(createCheckpointBackendStub) println(response.body) assert(response.body == 0) } } } }
The text was updated successfully, but these errors were encountered:
This item depends on:
Sorry, something went wrong.
salamonpavel
Successfully merging a pull request may close this issue.
Background
Implement unit tests for http endpoints in server module. Depends on #151
Below is a piece of unfinished code. It requires dependency which is not compiled for Java 8.
The text was updated successfully, but these errors were encountered: