fixed test
This commit is contained in:
parent
ba158f3187
commit
1b500a2f3d
|
@ -19,6 +19,7 @@ import org.gcube.dataharvest.utils.AggregationType;
|
||||||
import org.gcube.dataharvest.utils.ContextAuthorization;
|
import org.gcube.dataharvest.utils.ContextAuthorization;
|
||||||
import org.gcube.dataharvest.utils.ContextTest;
|
import org.gcube.dataharvest.utils.ContextTest;
|
||||||
import org.gcube.dataharvest.utils.DateUtils;
|
import org.gcube.dataharvest.utils.DateUtils;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -60,8 +61,8 @@ public class AccountingDataHarvesterJupyterTest extends ContextTest {
|
||||||
public void testJupyterAccessesHarvester() throws Exception {
|
public void testJupyterAccessesHarvester() throws Exception {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ContextTest.setContextByName(ROOT);
|
// ContextTest.setContextByName(ROOT);
|
||||||
AccountingDao dao = getAccountingDao();
|
// AccountingDao dao = getAccountingDao();
|
||||||
|
|
||||||
List<Date> starts = new ArrayList<>();
|
List<Date> starts = new ArrayList<>();
|
||||||
starts.add(DateUtils.getStartCalendar(2021, Calendar.JANUARY, 1).getTime());
|
starts.add(DateUtils.getStartCalendar(2021, Calendar.JANUARY, 1).getTime());
|
||||||
|
@ -95,7 +96,7 @@ public class AccountingDataHarvesterJupyterTest extends ContextTest {
|
||||||
logger.debug("Going to insert {}", accountingRecords);
|
logger.debug("Going to insert {}", accountingRecords);
|
||||||
|
|
||||||
ContextTest.setContextByName(ROOT);
|
ContextTest.setContextByName(ROOT);
|
||||||
dao.insertRecords(accountingRecords.toArray(new AccountingRecord[1]));
|
// dao.insertRecords(accountingRecords.toArray(new AccountingRecord[1]));
|
||||||
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
logger.error(e.getLocalizedMessage(), e);
|
logger.error(e.getLocalizedMessage(), e);
|
||||||
|
|
Loading…
Reference in New Issue