-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from eclipse/tck_driver
Appends the TCK drivers to the NoSQL drivers
- Loading branch information
Showing
70 changed files
with
944 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...org/eclipse/jnosql/diana/arangodb/document/ArangoDBDocumentCollectionManagerSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2020 Otávio Santana and others | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php. | ||
* | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.diana.arangodb.document; | ||
|
||
import jakarta.nosql.document.DocumentCollectionManager; | ||
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier; | ||
|
||
import static org.eclipse.jnosql.diana.arangodb.document.ArangoDBDocumentCollectionManagerFactorySupplier.INSTANCE; | ||
|
||
public class ArangoDBDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier { | ||
|
||
private static final String DATABASE = "tck-database"; | ||
|
||
@Override | ||
public DocumentCollectionManager get() { | ||
return INSTANCE.get().get(DATABASE); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...c/test/java/org/eclipse/jnosql/diana/arangodb/keyvalue/ArangoDBBucketManagerSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2020 Otávio Santana and others | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php. | ||
* | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.diana.arangodb.keyvalue; | ||
|
||
import jakarta.nosql.keyvalue.BucketManager; | ||
import jakarta.nosql.keyvalue.BucketManagerFactory; | ||
import jakarta.nosql.tck.communication.driver.keyvalue.BucketManagerSupplier; | ||
|
||
public class ArangoDBBucketManagerSupplier implements BucketManagerSupplier { | ||
|
||
private static final String BUCKET = "tck-users-entity"; | ||
|
||
@Override | ||
public BucketManager get() { | ||
final BucketManagerFactory factory = BucketManagerFactorySupplier.INSTANCE.get(); | ||
return factory.getBucketManager(BUCKET); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ervices/jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.jnosql.diana.arangodb.document.ArangoDBDocumentCollectionManagerSupplier |
1 change: 1 addition & 0 deletions
1
...s/META-INF/services/jakarta.nosql.tck.communication.driver.keyvalue.BucketManagerSupplier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.jnosql.diana.arangodb.keyvalue.ArangoDBBucketManagerSupplier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query.1=insert person {"_id": 1, "name": "Diana"} | ||
query.2=insert person {"_id": 2, "name": "Artemis"} | ||
id.name=_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.../java/org/eclipse/jnosql/diana/cassandra/column/CassandraColumnFamilyManagerSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2020 Otávio Santana and others | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php. | ||
* | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.diana.cassandra.column; | ||
|
||
import jakarta.nosql.column.ColumnFamilyManager; | ||
import jakarta.nosql.column.ColumnFamilyManagerFactory; | ||
import jakarta.nosql.tck.communication.driver.column.ColumnFamilyManagerSupplier; | ||
|
||
public class CassandraColumnFamilyManagerSupplier implements ColumnFamilyManagerSupplier { | ||
|
||
private static final String KEY_SPACE = "newKeySpace"; | ||
|
||
@Override | ||
public ColumnFamilyManager get() { | ||
ColumnFamilyManagerFactory factory = ManagerFactorySupplier.INSTANCE.get(); | ||
return factory.get(KEY_SPACE); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...TA-INF/services/jakarta.nosql.tck.communication.driver.column.ColumnFamilyManagerSupplier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.jnosql.diana.cassandra.column.CassandraColumnFamilyManagerSupplier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query.1=insert person {"id": 1, "name": "Diana"} | ||
query.2=insert person {"id": 2, "name": "Artemis"} | ||
id.name=id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query.1=insert person {"id": 1,"name":"Ada Lovelace"} 1 second | ||
query.2=insert person {"id": 2,"name":"Poliana"} 1 second | ||
id.name=id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...rg/eclipse/jnosql/diana/couchbase/document/CoucbaseDocumentCollectionManagerSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2020 Otávio Santana and others | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php. | ||
* | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.diana.couchbase.document; | ||
|
||
import jakarta.nosql.document.DocumentCollectionManager; | ||
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier; | ||
import org.eclipse.jnosql.diana.couchbase.CouchbaseUtil; | ||
import org.eclipse.jnosql.diana.couchbase.configuration.CouchbaseDocumentTcConfiguration; | ||
|
||
public class CoucbaseDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier { | ||
|
||
|
||
@Override | ||
public DocumentCollectionManager get() { | ||
CouchbaseDocumentConfiguration configuration = CouchbaseDocumentTcConfiguration.getTcConfiguration(); | ||
CouhbaseDocumentCollectionManagerFactory managerFactory = configuration.get(); | ||
return managerFactory.get(CouchbaseUtil.BUCKET_NAME); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...test/java/org/eclipse/jnosql/diana/couchbase/keyvalue/CouchbaseBucketManagerSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2020 Otávio Santana and others | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php. | ||
* | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.diana.couchbase.keyvalue; | ||
|
||
import jakarta.nosql.keyvalue.BucketManager; | ||
import jakarta.nosql.tck.communication.driver.keyvalue.BucketManagerSupplier; | ||
import org.eclipse.jnosql.diana.couchbase.CouchbaseUtil; | ||
import org.eclipse.jnosql.diana.couchbase.configuration.CouchbaseKeyValueTcConfiguration; | ||
|
||
public class CouchbaseBucketManagerSupplier implements BucketManagerSupplier { | ||
|
||
@Override | ||
public BucketManager get() { | ||
CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration(); | ||
final CouchbaseBucketManagerFactory factory = configuration.get(); | ||
return factory.getBucketManager(CouchbaseUtil.BUCKET_NAME); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ervices/jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.jnosql.diana.couchbase.document.CoucbaseDocumentCollectionManagerSupplier |
1 change: 1 addition & 0 deletions
1
...s/META-INF/services/jakarta.nosql.tck.communication.driver.keyvalue.BucketManagerSupplier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.jnosql.diana.couchbase.keyvalue.CouchbaseBucketManagerSupplier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query.1=insert person {"_id": 1, "name": "Diana"} | ||
query.2=insert person {"_id": 2, "name": "Artemis"} | ||
id.name=_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query.1=insert person {"_id": 1, "name": "Diana"} 1 second | ||
query.2=insert person {"_id": 2, "name": "Artemis"} 1 second | ||
id.name=_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...a/org/eclipse/jnosql/diana/couchdb/document/CouchDBDocumentCollectionManagerSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2020 Otávio Santana and others | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php. | ||
* | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.diana.couchdb.document; | ||
|
||
import jakarta.nosql.document.DocumentCollectionManager; | ||
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier; | ||
import org.eclipse.jnosql.diana.couchdb.document.configuration.CouchDBDocumentTcConfiguration; | ||
|
||
public class CouchDBDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier { | ||
|
||
private static final String DATABASE = "tck-database"; | ||
|
||
@Override | ||
public DocumentCollectionManager get() { | ||
final CouchDBDocumentCollectionManagerFactory factory = CouchDBDocumentTcConfiguration.INSTANCE.get(); | ||
return factory.get(DATABASE); | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
...ervices/jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.jnosql.diana.couchdb.document.CouchDBDocumentCollectionManagerSupplier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query.1=insert person {"_id": "1", "name": "Diana"} | ||
query.2=insert person {"_id": "2", "name": "Artemis"} | ||
id.name=_id |
Oops, something went wrong.