gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Ratnasekera (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GORA-481) Using Docker For Unit Testing
Date Wed, 13 Mar 2019 17:07:00 GMT

    [ https://issues.apache.org/jira/browse/GORA-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16791891#comment-16791891
] 

Kevin Ratnasekera commented on GORA-481:
----------------------------------------

[~cguzel] We now have Testcontainers [1] dependency added to gora and it is now used by both
couch-db and aerospike datastores. We basically need to additionally write a waiting strategy
( extending GenericContainer.AbstractWaitStrategy ) for each server to fully start before
executing tests. This is specific to each database server. Can we close this issue?

[1] https://www.testcontainers.org/

> Using Docker For Unit Testing
> -----------------------------
>
>                 Key: GORA-481
>                 URL: https://issues.apache.org/jira/browse/GORA-481
>             Project: Apache Gora
>          Issue Type: New Feature
>            Reporter: Cihad Guzel
>            Priority: Major
>             Fix For: 0.9
>
>
> I have implemented [couchdb datastore|https://issues.apache.org/jira/browse/GORA-437]
on [my repo|https://github.com/cguzel/gora-couchdb] . I want to add test class. So, I must
start couchdb server programmatically. But couchdb doesn't support that to start couchdb server
programmatically using java. Situations like it may occur in the other datastore implementations.
So If docker is used, the datastore starts for testing.
> [TestContainers|https://github.com/testcontainers/testcontainers-java] is a Java library
that supports JUnit tests, providing lightweight, throwaway instances of common databases
that can run in a Docker container.
> So, GORA should support [Test Containers|https://github.com/testcontainers/testcontainers-java]

> There is a docker container of couchdb [here|https://hub.docker.com/r/klaemo/couchdb/]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message