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

4

tests

0

failures

1

ignored

0.235s

duration

100%

successful

Tests

Test Duration Result
testConnectOperationFailureInvalidRepo - ignored
testConnectOperationFailureNoConnection 0.108s passed
testConnectOperationSuccess 0.050s passed
testConnectOperationWithLink 0.077s passed

Standard error

16-2-17 8:21:00.393 | AbstractInitOpe | Test worker    | INFO : 
16-2-17 8:21:00.393 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
16-2-17 8:21:00.393 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.394 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.395 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:00.395 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:00.395 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:00.395 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
16-2-17 8:21:00.395 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
16-2-17 8:21:00.395 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:00.396 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:00.397 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:00.397 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.400 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
16-2-17 8:21:00.400 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
16-2-17 8:21:00.400 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
16-2-17 8:21:00.400 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
16-2-17 8:21:00.401 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
16-2-17 8:21:00.406 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
16-2-17 8:21:00.407 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.414 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170216081829395-10065-client-A/.syignore ...
16-2-17 8:21:00.419 | GenlinkOperatio | Test worker    | INFO : 
16-2-17 8:21:00.420 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
16-2-17 8:21:00.421 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.423 | hsqldb.db.HSQLD | WR/syncany-170 | FINE : log close size: 17964
16-2-17 8:21:00.424 | hsqldb.db.HSQLD | WR/syncany-170 | SEVE : error closing log
org.hsqldb.HsqlException: file input/output error java.io.FileNotFoundException: /tmp/syncanytest/syncany-170216081829395-65220-client-ClientA/.syncany/db/local.db.script.new (No such file or directory) /tmp/syncanytest/syncany-170216081829395-65220-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:171)
	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-170216081829395-65220-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
16-2-17 8:21:00.424 | hsqldb.db.HSQLD | WR/syncany-170 | INFO : Database closed
16-2-17 8:21:00.467 | ConnectOperatio | Test worker    | INFO : 
16-2-17 8:21:00.467 | ConnectOperatio | Test worker    | INFO : Running 'Connect'
16-2-17 8:21:00.467 | ConnectOperatio | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.467 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.467 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:00.468 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:00.468 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:00.468 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
16-2-17 8:21:00.469 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
16-2-17 8:21:00.469 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:00.469 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:00.467 | hsqldb.db.HSQLD | WR/syncany-170 | FINE : log close size: 18179
16-2-17 8:21:00.476 | hsqldb.db.HSQLD | WR/syncany-170 | SEVE : error closing log
org.hsqldb.HsqlException: file input/output error java.io.FileNotFoundException: /tmp/syncanytest/syncany-170216081829395-65220-client-ClientB/.syncany/db/local.db.script.new (No such file or directory) /tmp/syncanytest/syncany-170216081829395-65220-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:171)
	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-170216081829395-65220-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
16-2-17 8:21:00.476 | hsqldb.db.HSQLD | WR/syncany-170 | INFO : Database closed
16-2-17 8:21:00.477 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:00.477 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target does NOT exist.
16-2-17 8:21:00.477 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can NOT write, target does not exist.
16-2-17 8:21:00.478 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
16-2-17 8:21:00.478 | ConnectOperatio | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=false, targetCanConnect=true, targetCanCreate=false, targetCanWrite=false, repoFileExists=false]
16-2-17 8:21:00.478 | ConnectOperatio | Test worker    | INFO : --> NOT OKAY: Invalid target/repo state. Operation cannot be continued.
16-2-17 8:21:00.478 | ConnectOperatio | Test worker    | INFO : - Connecting to the repo failed, repo already exists or cannot be created: NOK_TEST_FAILED
16-2-17 8:21:00.481 | AbstractInitOpe | Test worker    | INFO : 
16-2-17 8:21:00.481 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
16-2-17 8:21:00.481 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.481 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.481 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:00.481 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:00.481 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:00.481 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
16-2-17 8:21:00.481 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
16-2-17 8:21:00.481 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:00.481 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:00.481 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:00.481 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.483 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
16-2-17 8:21:00.483 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
16-2-17 8:21:00.484 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
16-2-17 8:21:00.484 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
16-2-17 8:21:00.484 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
16-2-17 8:21:00.489 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
16-2-17 8:21:00.489 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.503 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170216081829395-10065-client-A/.syignore ...
16-2-17 8:21:00.505 | GenlinkOperatio | Test worker    | INFO : 
16-2-17 8:21:00.508 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
16-2-17 8:21:00.508 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.514 | ConnectOperatio | Test worker    | INFO : 
16-2-17 8:21:00.514 | ConnectOperatio | Test worker    | INFO : Running 'Connect'
16-2-17 8:21:00.514 | ConnectOperatio | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.514 | ConnectOperatio | Test worker    | INFO : Creating config TO from link: syncany://2/not-encrypted/111AsxYhP2uWxqrEKqgMCTfH5iKiLk4Df1CJJYzXoPoAVPH1DBhZqMrT818U1Cq18BaHqGdEbtVEturgvBbM4rPkKHYb8V3RKaPqz2Q9JUcPKLcTFit55XDLwfyzcKkaTrhix4htD3tQxSS7JEacSc8777qtcQt2BG25V ...
16-2-17 8:21:00.522 | ConnectOperatio | Test worker    | INFO :  - Link is NOT encrypted. No password needed.
16-2-17 8:21:00.536 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.540 | WatchRunner     | WR/syncany-170 | INFO : STOPPED watch at /tmp/syncanytest/syncany-170216081829395-65220-client-ClientA
16-2-17 8:21:00.541 | ApplicationLink | Test worker    | INFO : (Decrypted) link contains: local -- <localTransferSettings type="local"><path>/tmp/syncanytest/syncany-170216081829395-10065-repo</path></localTransferSettings>
16-2-17 8:21:00.541 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.541 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:00.541 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:00.541 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:00.541 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
16-2-17 8:21:00.541 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
16-2-17 8:21:00.541 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:00.541 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:00.541 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:00.541 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.544 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
16-2-17 8:21:00.544 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file exists, list(syncany) returned one result.
16-2-17 8:21:00.544 | ConnectOperatio | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=true]
16-2-17 8:21:00.544 | ConnectOperatio | Test worker    | INFO : --> OKAY: Repo file exists. We're good to go!
16-2-17 8:21:00.544 | ConnectOperatio | Test worker    | INFO : - Connecting to the repo was successful; now downloading repo file ...
16-2-17 8:21:00.568 | AbstractInitOpe | Test worker    | INFO : 
16-2-17 8:21:00.568 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
16-2-17 8:21:00.568 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.568 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.568 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:00.568 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:00.568 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:00.568 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
16-2-17 8:21:00.568 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
16-2-17 8:21:00.568 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:00.568 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:00.568 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:00.568 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.569 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
16-2-17 8:21:00.569 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
16-2-17 8:21:00.569 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
16-2-17 8:21:00.569 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
16-2-17 8:21:00.569 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
16-2-17 8:21:00.573 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
16-2-17 8:21:00.573 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.577 | WatchRunner     | WR/syncany-170 | INFO : STOPPED watch at /tmp/syncanytest/syncany-170216081829395-65220-client-ClientB
16-2-17 8:21:00.587 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170216081829395-10065-client-A/.syignore ...
16-2-17 8:21:00.587 | GenlinkOperatio | Test worker    | INFO : 
16-2-17 8:21:00.587 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
16-2-17 8:21:00.587 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.591 | ConnectOperatio | Test worker    | INFO : 
16-2-17 8:21:00.592 | ConnectOperatio | Test worker    | INFO : Running 'Connect'
16-2-17 8:21:00.592 | ConnectOperatio | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:00.592 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.596 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:00.596 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:00.596 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:00.596 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
16-2-17 8:21:00.596 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
16-2-17 8:21:00.596 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:00.596 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:00.596 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:00.596 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.596 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
16-2-17 8:21:00.596 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file exists, list(syncany) returned one result.
16-2-17 8:21:00.596 | ConnectOperatio | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=true]
16-2-17 8:21:00.596 | ConnectOperatio | Test worker    | INFO : --> OKAY: Repo file exists. We're good to go!
16-2-17 8:21:00.596 | ConnectOperatio | Test worker    | INFO : - Connecting to the repo was successful; now downloading repo file ...