This repository has been archived by the owner on Jul 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
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 #215 from bsinno/dev/addCouchdbPW/contrib
add couchdb password / authentication support review-by:[email protected] tested-by:[email protected]
- Loading branch information
Showing
48 changed files
with
222 additions
and
212 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
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
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
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 |
---|---|---|
|
@@ -45,9 +45,9 @@ public class AttachmentHandlerTest { | |
@Before | ||
public void setUp() throws Exception { | ||
// Create the database | ||
TestUtils.createDatabase(url, dbName); | ||
TestUtils.createDatabase(DatabaseSettings.getConfiguredHttpClient(), dbName); | ||
|
||
DatabaseConnector databaseConnector = new DatabaseConnector(url, dbName); | ||
DatabaseConnector databaseConnector = new DatabaseConnector(DatabaseSettings.getConfiguredHttpClient(), dbName); | ||
// databaseConnector.add(new Attachment().setId("A1").setCreatedBy("[email protected]").setCreatedOn("2012-07-30").setFilename("a.txt").setContentType("text")); | ||
// databaseConnector.add(new Attachment().setId("A2").setCreatedBy("[email protected]").setCreatedOn("2012-05-22").setFilename("b.jpg").setContentType("image")); | ||
databaseConnector.add(new AttachmentContent().setId("A1").setFilename("a.txt").setContentType("text")); | ||
|
@@ -59,14 +59,7 @@ public void setUp() throws Exception { | |
@After | ||
public void tearDown() throws Exception { | ||
// Delete the database | ||
TestUtils.deleteDatabase(url, dbName); | ||
} | ||
|
||
@Test | ||
public void testGetDatabaseAddress() throws Exception { | ||
DatabaseAddress address = handler.getDatabaseAddress(); | ||
assertEquals(url, address.getUrl()); | ||
assertEquals(dbName, address.getDbName()); | ||
TestUtils.deleteDatabase(DatabaseSettings.getConfiguredHttpClient(), dbName); | ||
} | ||
|
||
@Test | ||
|
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
16 changes: 0 additions & 16 deletions
16
backend/src/src-bdpimport/src/test/resources/couchdb.properties
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.