fixed test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/GenerateMapReduceCouchbase@154958 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-10-06 16:05:53 +00:00
parent 7678691a18
commit 07c0a68cec
1 changed files with 5 additions and 4 deletions

View File

@ -22,9 +22,10 @@ import com.couchbase.client.java.view.View;
public class dbtest {
protected static final String DB = "StorageUsageRecord";
protected static final String DB = "JobUsageRecord";
protected static final String USAGE_RECORD_TYPE = "JobUsageRecord";
protected static final String URL = "http://couchbase02-d-d4s.d4science.org";
protected static final String URL = "http://couchbase01-d-d4s.d4science.org";
protected static final String PASSWORD = "accounting";
/* The environment configuration */
@ -47,7 +48,7 @@ public class dbtest {
File resourcesDirectory = new File(mainDirectory, "resources");
File mapReduceDirectory = new File(resourcesDirectory, "MapReduce");
File file = new File(mapReduceDirectory, "StorageUsageRecord");
File file = new File(mapReduceDirectory, USAGE_RECORD_TYPE);
File[] filesInDir = file.listFiles();
Arrays.sort(filesInDir);
@ -91,7 +92,7 @@ public class dbtest {
File mainDirectory = new File(srcDirectory, "main");
File resourcesDirectory = new File(mainDirectory, "resources");
File mapReduceDirectory = new File(resourcesDirectory, "MapReduce");
File file = new File(mapReduceDirectory, "extraStorage");
File file = new File(mapReduceDirectory, "extra" + USAGE_RECORD_TYPE);
Map<String, List<View>> views = new HashMap<String, List<View>>();