Class org.syncany.tests.integration.operations.InitOperationTest

2

tests

0

failures

0

ignored

0.027s

duration

100%

successful

Tests

Test Duration Result
testFaultyInitOperation 0.015s passed
testInitOperation 0.012s passed

Standard error

25-5-17 10:18:52.167 | AbstractInitOpe | Test worker    | INFO : 
25-5-17 10:18:52.167 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
25-5-17 10:18:52.167 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
25-5-17 10:18:52.167 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:52.167 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:18:52.168 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:18:52.168 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:18:52.168 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
25-5-17 10:18:52.168 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
25-5-17 10:18:52.168 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:18:52.168 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
25-5-17 10:18:52.168 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
25-5-17 10:18:52.168 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:52.168 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
25-5-17 10:18:52.168 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
25-5-17 10:18:52.168 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
25-5-17 10:18:52.169 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
25-5-17 10:18:52.169 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
25-5-17 10:18:52.171 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
25-5-17 10:18:52.171 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:52.172 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170525101612005-10065-client-A/.syignore ...
25-5-17 10:18:52.173 | GenlinkOperatio | Test worker    | INFO : 
25-5-17 10:18:52.173 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
25-5-17 10:18:52.173 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
25-5-17 10:18:52.187 | AbstractInitOpe | Test worker    | INFO : 
25-5-17 10:18:52.187 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
25-5-17 10:18:52.187 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
25-5-17 10:18:52.187 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:52.187 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:18:52.187 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:18:52.187 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:18:52.187 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in UnreliableLocalTransferManager ...
25-5-17 10:18:52.187 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in UnreliableLocalTransferManager ...
25-5-17 10:18:52.187 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:18:52.187 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
25-5-17 10:18:52.187 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
25-5-17 10:18:52.188 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=1 rel=1 op=connect connect
25-5-17 10:18:52.188 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:52.188 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
25-5-17 10:18:52.188 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
25-5-17 10:18:52.188 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=2 rel=1 op=disconnect disconnect
25-5-17 10:18:52.188 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
25-5-17 10:18:52.188 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
25-5-17 10:18:52.188 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
25-5-17 10:18:52.190 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
25-5-17 10:18:52.190 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=3 rel=1 op=init init
25-5-17 10:18:52.190 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=4 rel=2 op=connect connect
25-5-17 10:18:52.190 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:52.192 | UnreliableLocal | Test worker    | INFO : Operation NOT successful: abs=5 rel=1 op=upload upload(/tmp/syncanytest/syncany-170525101612005-10065-client-A/.syncany/syncany, syncany)
25-5-17 10:18:52.193 | InitOperation   | Test worker    | INFO : This operation failed because of the unreliable connection.
org.syncany.plugins.transfer.StorageException: Couldn't upload to remote repo. Cleaned local repository.
	at org.syncany.operations.init.InitOperation.cleanLocalRepository(InitOperation.java:228)
	at org.syncany.operations.init.InitOperation.makeRemoteChanges(InitOperation.java:165)
	at org.syncany.operations.init.InitOperation.execute(InitOperation.java:107)
	at org.syncany.tests.integration.operations.InitOperationTest.testFaultyInitOperation(InitOperationTest.java:93)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:147)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:129)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.syncany.plugins.transfer.StorageException: Operation failed: upload(/tmp/syncanytest/syncany-170525101612005-10065-client-A/.syncany/syncany, syncany)
	at org.syncany.plugins.unreliable_local.UnreliableLocalTransferManager.upload(UnreliableLocalTransferManager.java:126)
	at org.syncany.operations.init.InitOperation.uploadRepoFile(InitOperation.java:260)
	at org.syncany.operations.init.InitOperation.makeRemoteChanges(InitOperation.java:162)
	... 45 more