Class org.syncany.tests.integration.operations.ConnectOperationTest

4

tests

0

failures

1

ignored

0.130s

duration

100%

successful

Tests

Test Duration Result
testConnectOperationFailureInvalidRepo - ignored
testConnectOperationFailureNoConnection 0.016s passed
testConnectOperationSuccess 0.078s passed
testConnectOperationWithLink 0.031s passed

Standard error

27-4-17 11:02:41.452 | AbstractInitOpe | Test worker    | INFO : 
27-4-17 11:02:41.452 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
27-4-17 11:02:41.453 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.453 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:41.454 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
27-4-17 11:02:41.454 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
27-4-17 11:02:41.454 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
27-4-17 11:02:41.454 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
27-4-17 11:02:41.454 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
27-4-17 11:02:41.454 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
27-4-17 11:02:41.455 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
27-4-17 11:02:41.455 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
27-4-17 11:02:41.456 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.457 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
27-4-17 11:02:41.457 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
27-4-17 11:02:41.458 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
27-4-17 11:02:41.458 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
27-4-17 11:02:41.458 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
27-4-17 11:02:41.464 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
27-4-17 11:02:41.464 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.466 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170427110008054-10065-client-A/.syignore ...
27-4-17 11:02:41.470 | GenlinkOperatio | Test worker    | INFO : 
27-4-17 11:02:41.470 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
27-4-17 11:02:41.470 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.493 | ConnectOperatio | Test worker    | INFO : 
27-4-17 11:02:41.493 | ConnectOperatio | Test worker    | INFO : Running 'Connect'
27-4-17 11:02:41.494 | ConnectOperatio | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.494 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:41.494 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
27-4-17 11:02:41.494 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
27-4-17 11:02:41.494 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
27-4-17 11:02:41.494 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
27-4-17 11:02:41.494 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
27-4-17 11:02:41.494 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
27-4-17 11:02:41.495 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
27-4-17 11:02:41.495 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
27-4-17 11:02:41.495 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.495 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
27-4-17 11:02:41.495 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file exists, list(syncany) returned one result.
27-4-17 11:02:41.496 | ConnectOperatio | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=true]
27-4-17 11:02:41.496 | ConnectOperatio | Test worker    | INFO : --> OKAY: Repo file exists. We're good to go!
27-4-17 11:02:41.496 | ConnectOperatio | Test worker    | INFO : - Connecting to the repo was successful; now downloading repo file ...
27-4-17 11:02:41.510 | AbstractInitOpe | Test worker    | INFO : 
27-4-17 11:02:41.510 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
27-4-17 11:02:41.510 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.510 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:41.511 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
27-4-17 11:02:41.511 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
27-4-17 11:02:41.511 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
27-4-17 11:02:41.511 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
27-4-17 11:02:41.511 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
27-4-17 11:02:41.511 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
27-4-17 11:02:41.511 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
27-4-17 11:02:41.511 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
27-4-17 11:02:41.511 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.511 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
27-4-17 11:02:41.512 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
27-4-17 11:02:41.512 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
27-4-17 11:02:41.512 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
27-4-17 11:02:41.512 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
27-4-17 11:02:41.515 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
27-4-17 11:02:41.515 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.517 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170427110008054-10065-client-A/.syignore ...
27-4-17 11:02:41.518 | GenlinkOperatio | Test worker    | INFO : 
27-4-17 11:02:41.518 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
27-4-17 11:02:41.518 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.520 | ConnectOperatio | Test worker    | INFO : 
27-4-17 11:02:41.520 | ConnectOperatio | Test worker    | INFO : Running 'Connect'
27-4-17 11:02:41.520 | ConnectOperatio | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.520 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:41.521 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
27-4-17 11:02:41.521 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
27-4-17 11:02:41.521 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
27-4-17 11:02:41.521 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
27-4-17 11:02:41.521 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
27-4-17 11:02:41.521 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
27-4-17 11:02:41.522 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
27-4-17 11:02:41.522 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
27-4-17 11:02:41.522 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target does NOT exist.
27-4-17 11:02:41.522 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can NOT write, target does not exist.
27-4-17 11:02:41.522 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
27-4-17 11:02:41.522 | ConnectOperatio | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=false, targetCanConnect=true, targetCanCreate=false, targetCanWrite=false, repoFileExists=false]
27-4-17 11:02:41.522 | ConnectOperatio | Test worker    | INFO : --> NOT OKAY: Invalid target/repo state. Operation cannot be continued.
27-4-17 11:02:41.522 | ConnectOperatio | Test worker    | INFO : - Connecting to the repo failed, repo already exists or cannot be created: NOK_TEST_FAILED
27-4-17 11:02:41.527 | AbstractInitOpe | Test worker    | INFO : 
27-4-17 11:02:41.527 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
27-4-17 11:02:41.527 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.527 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:41.527 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
27-4-17 11:02:41.527 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
27-4-17 11:02:41.527 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
27-4-17 11:02:41.527 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
27-4-17 11:02:41.528 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
27-4-17 11:02:41.528 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
27-4-17 11:02:41.528 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
27-4-17 11:02:41.528 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
27-4-17 11:02:41.528 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.528 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
27-4-17 11:02:41.528 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
27-4-17 11:02:41.528 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
27-4-17 11:02:41.528 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
27-4-17 11:02:41.529 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
27-4-17 11:02:41.534 | hsqldb.db.HSQLD | WR/syncany-170 | FINE : log close size: 17964
27-4-17 11:02:41.536 | hsqldb.db.HSQLD | WR/syncany-170 | SEVE : error closing log
org.hsqldb.HsqlException: file input/output error java.io.FileNotFoundException: /tmp/syncanytest/syncany-170427110008054-66621-client-ClientA/.syncany/db/local.db.script.new (No such file or directory) /tmp/syncanytest/syncany-170427110008054-66621-client-ClientA/.syncany/db/local.db.script.new
	at org.hsqldb.error.Error.error(Unknown Source)
	at org.hsqldb.scriptio.ScriptWriterBase.openFile(Unknown Source)
	at org.hsqldb.scriptio.ScriptWriterBase.<init>(Unknown Source)
	at org.hsqldb.scriptio.ScriptWriterText.<init>(Unknown Source)
	at org.hsqldb.persist.Log.writeScript(Unknown Source)
	at org.hsqldb.persist.Log.close(Unknown Source)
	at org.hsqldb.persist.Logger.close(Unknown Source)
	at org.hsqldb.Database.close(Unknown Source)
	at org.hsqldb.StatementCommand.getResult(Unknown Source)
	at org.hsqldb.StatementCommand.execute(Unknown Source)
	at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
	at org.hsqldb.Session.execute(Unknown Source)
	at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)
	at org.hsqldb.jdbc.JDBCPreparedStatement.execute(Unknown Source)
	at org.syncany.database.dao.ApplicationSqlDao.shutdown(ApplicationSqlDao.java:144)
	at org.syncany.database.SqlDatabase.shutdown(SqlDatabase.java:167)
	at org.syncany.operations.watch.WatchOperation.execute(WatchOperation.java:182)
	at org.syncany.operations.daemon.WatchRunner$1.run(WatchRunner.java:83)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: /tmp/syncanytest/syncany-170427110008054-66621-client-ClientA/.syncany/db/local.db.script.new (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at org.hsqldb.lib.FileUtil.openOutputStreamElement(Unknown Source)
	... 18 more
27-4-17 11:02:41.536 | hsqldb.db.HSQLD | WR/syncany-170 | INFO : Database closed
27-4-17 11:02:41.539 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
27-4-17 11:02:41.539 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.542 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170427110008054-10065-client-A/.syignore ...
27-4-17 11:02:41.542 | GenlinkOperatio | Test worker    | INFO : 
27-4-17 11:02:41.542 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
27-4-17 11:02:41.542 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.543 | ConnectOperatio | Test worker    | INFO : 
27-4-17 11:02:41.543 | ConnectOperatio | Test worker    | INFO : Running 'Connect'
27-4-17 11:02:41.543 | ConnectOperatio | Test worker    | INFO : --------------------------------------------
27-4-17 11:02:41.543 | ConnectOperatio | Test worker    | INFO : Creating config TO from link: syncany://2/not-encrypted/111WQo4NAJvSe6E2DfcMjQGBFgWTzE6d9y3dKv1k33NrAdgZVBBxhNyrRcaYLWDwcjzzQ5QWBSpJpXx2VGQye8FfsU45c2NtSCXadKsVBF4wUm7daSns8pGGemhyepeKQFUegAhKivWCwR4vFAVV94Q95MtByTwhQT ...
27-4-17 11:02:41.545 | ConnectOperatio | Test worker    | INFO :  - Link is NOT encrypted. No password needed.
27-4-17 11:02:41.547 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:41.548 | ApplicationLink | Test worker    | INFO : (Decrypted) link contains: local -- <localTransferSettings type="local"><path>/tmp/syncanytest/syncany-170427110008054-10065-repo</path></localTransferSettings>
27-4-17 11:02:41.548 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:41.548 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
27-4-17 11:02:41.548 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
27-4-17 11:02:41.548 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
27-4-17 11:02:41.548 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
27-4-17 11:02:41.548 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
27-4-17 11:02:41.548 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
27-4-17 11:02:41.548 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
27-4-17 11:02:41.548 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
27-4-17 11:02:41.548 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:41.548 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
27-4-17 11:02:41.548 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file exists, list(syncany) returned one result.
27-4-17 11:02:41.549 | ConnectOperatio | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=true]
27-4-17 11:02:41.549 | ConnectOperatio | Test worker    | INFO : --> OKAY: Repo file exists. We're good to go!
27-4-17 11:02:41.549 | ConnectOperatio | Test worker    | INFO : - Connecting to the repo was successful; now downloading repo file ...
27-4-17 11:02:41.560 | hsqldb.db.HSQLD | WR/syncany-170 | FINE : log close size: 18179
27-4-17 11:02:41.561 | hsqldb.db.HSQLD | WR/syncany-170 | SEVE : error closing log
org.hsqldb.HsqlException: file input/output error java.io.FileNotFoundException: /tmp/syncanytest/syncany-170427110008054-66621-client-ClientB/.syncany/db/local.db.script.new (No such file or directory) /tmp/syncanytest/syncany-170427110008054-66621-client-ClientB/.syncany/db/local.db.script.new
	at org.hsqldb.error.Error.error(Unknown Source)
	at org.hsqldb.scriptio.ScriptWriterBase.openFile(Unknown Source)
	at org.hsqldb.scriptio.ScriptWriterBase.<init>(Unknown Source)
	at org.hsqldb.scriptio.ScriptWriterText.<init>(Unknown Source)
	at org.hsqldb.persist.Log.writeScript(Unknown Source)
	at org.hsqldb.persist.Log.close(Unknown Source)
	at org.hsqldb.persist.Logger.close(Unknown Source)
	at org.hsqldb.Database.close(Unknown Source)
	at org.hsqldb.StatementCommand.getResult(Unknown Source)
	at org.hsqldb.StatementCommand.execute(Unknown Source)
	at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
	at org.hsqldb.Session.execute(Unknown Source)
	at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)
	at org.hsqldb.jdbc.JDBCPreparedStatement.execute(Unknown Source)
	at org.syncany.database.dao.ApplicationSqlDao.shutdown(ApplicationSqlDao.java:144)
	at org.syncany.database.SqlDatabase.shutdown(SqlDatabase.java:167)
	at org.syncany.operations.watch.WatchOperation.execute(WatchOperation.java:182)
	at org.syncany.operations.daemon.WatchRunner$1.run(WatchRunner.java:83)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: /tmp/syncanytest/syncany-170427110008054-66621-client-ClientB/.syncany/db/local.db.script.new (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at org.hsqldb.lib.FileUtil.openOutputStreamElement(Unknown Source)
	... 18 more
27-4-17 11:02:41.561 | hsqldb.db.HSQLD | WR/syncany-170 | INFO : Database closed