Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 58E4B200B74 for ; Thu, 18 Aug 2016 01:00:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 540CF160A8C; Wed, 17 Aug 2016 23:00:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 98F61160AB5 for ; Thu, 18 Aug 2016 01:00:28 +0200 (CEST) Received: (qmail 87823 invoked by uid 500); 17 Aug 2016 23:00:27 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 87808 invoked by uid 99); 17 Aug 2016 23:00:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2016 23:00:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A79AA2C02A7 for ; Wed, 17 Aug 2016 23:00:26 +0000 (UTC) Date: Wed, 17 Aug 2016 23:00:26 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@gora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GORA-437) Implement CouchDB Datastore MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 17 Aug 2016 23:00:29 -0000 [ https://issues.apache.org/jira/browse/GORA-437?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D154255= 51#comment-15425551 ]=20 ASF GitHub Bot commented on GORA-437: ------------------------------------- Github user cguzel commented on a diff in the pull request: https://github.com/apache/gora/pull/74#discussion_r75223135 =20 --- Diff: gora-couchdb/src/test/java/org/apache/gora/couchdb/store/Test= CouchDBStore.java --- @@ -0,0 +1,158 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed wi= th + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version= 2.0 + * (the "License"); you may not use this file except in compliance wit= h + * the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or imp= lied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.gora.couchdb.store; + +import org.apache.avro.util.Utf8; +import org.apache.gora.GoraCouchDBTestDriver; +import org.apache.gora.couchdb.query.CouchDBResult; +import org.apache.gora.examples.WebPageDataCreator; +import org.apache.gora.examples.generated.Employee; +import org.apache.gora.examples.generated.WebPage; +import org.apache.gora.query.Query; +import org.apache.gora.store.DataStore; +import org.apache.gora.store.DataStoreTestBase; +import org.junit.ClassRule; +import org.junit.Ignore; +import org.junit.Test; +import org.testcontainers.containers.GenericContainer; + +import java.io.IOException; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; + +import static org.junit.Assert.*; + +/** + * Tests extending {@link DataStoreTestBase} + * which run the base JUnit test suite for Gora. + */ +public class TestCouchDBStore extends DataStoreTestBase { + + private static final String DOCKER_CONTAINER_NAME =3D "klaemo/couchd= b:1.6.1"; + /** + * JUnit integration testing with Docker and Testcontainers + */ + @ClassRule + public static GenericContainer CouchDB_CONTAINER =3D new GenericCont= ainer(DOCKER_CONTAINER_NAME); + + static { + try { + setTestDriver(new GoraCouchDBTestDriver(CouchDB_CONTAINER)); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + @Override + public void setUp() throws Exception { + super.setUp(); + } + + @SuppressWarnings("unchecked") + @Override + protected DataStore createEmployeeDataStore() thro= ws IOException { + throw new UnsupportedOperationException(); + // return DataStoreFactory.createDataStore(CouchDBStore.class, = String.class, Employee.class, conf); + } + + @SuppressWarnings("unchecked") + @Override + protected DataStore createWebPageDataStore() throws= IOException { + throw new UnsupportedOperationException(); + // return DataStoreFactory.createDataStore(CouchDBStore.class, = String.class, WebPage.class, conf); --- End diff -- =20 +1 > Implement CouchDB Datastore > --------------------------- > > Key: GORA-437 > URL: https://issues.apache.org/jira/browse/GORA-437 > Project: Apache Gora > Issue Type: New Feature > Reporter: Furkan KAMACI > Assignee: cihad g=C3=BCzel > Labels: gora-couchdb, gsoc2016, storage > Fix For: 0.8 > > > Apache CouchDB is a document-oriented NoSQL database that uses JSON to st= ore data, JavaScript as its query language using MapReduce, and HTTP for an= API. It could be nice to support CouchDB as a datastore at Gora. -- This message was sent by Atlassian JIRA (v6.3.4#6332)