Skip to content
New issue

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

TestKit support for JDBC #304

Closed
TimMoore opened this issue Nov 29, 2016 · 7 comments
Closed

TestKit support for JDBC #304

TimMoore opened this issue Nov 29, 2016 · 7 comments

Comments

@TimMoore
Copy link
Contributor

With Lagom 1.2, you can enable support for Cassandra in TestServer, or you can disable persistence entirely (which is the default) but there's no support for testing persistence with JDBC.

@sallareznov
Copy link

Any news about this?

@ignasi35
Copy link
Contributor

Now that 1.3.x is out, this issue needs clarification as it only applies to javadsl.

@guizmaii
Copy link
Contributor

guizmaii commented Jun 12, 2017

Hi @ignasi35 , why do you say that "this issue needs clarification as it only applies to javadsl" ??

@ignasi35
Copy link
Contributor

ignasi35 commented Jun 15, 2017

This issue refers to running an integration tests using akka-persistence over an RDBMS database.

This issue originally required supporting JDBC for testing but implicitly meant RBDMS. The current lagom offer spans 3 different read-sides for RDBMS:

  • javadsl - jdbc
  • javadsl - jpa
  • scaladsl - slick

which could make the testing a bit more difficult since the modules to start could differ.

My previous message was confusing:

this issue needs clarification as it only applies to javadsl.

Hope this is more clear now.

(edited)

@TimMoore
Copy link
Contributor Author

My understanding of this issue is that it's more about integration testing writes from a service implementation. There's currently no facility to do so using JDBC.

@guizmaii
Copy link
Contributor

Worst than that, for now we're forced to boot a Cassandra instance in service tests:

 ServiceTest.startServer(ServiceTest.defaultSetup.withCassandra(true)) { ctx =>
  new CarApplication(ctx) with LocalServiceLocator
}

@octonato
Copy link
Member

I have a fix for this and will submit a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants