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

2

tests

0

failures

0

ignored

0.017s

duration

100%

successful

Tests

Test Duration Result
testFaultyInitOperation 0.009s passed
testInitOperation 0.008s passed

Standard error

16-2-17 8:21:06.759 | AbstractInitOpe | Test worker    | INFO : 
16-2-17 8:21:06.759 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
16-2-17 8:21:06.759 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:06.759 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:06.759 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:06.759 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:06.759 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:06.759 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in UnreliableLocalTransferManager ...
16-2-17 8:21:06.759 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in UnreliableLocalTransferManager ...
16-2-17 8:21:06.759 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:06.759 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:06.759 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:06.759 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=1 rel=1 op=connect connect
16-2-17 8:21:06.759 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:06.760 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
16-2-17 8:21:06.760 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
16-2-17 8:21:06.760 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=2 rel=1 op=disconnect disconnect
16-2-17 8:21:06.760 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
16-2-17 8:21:06.760 | 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:06.760 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
16-2-17 8:21:06.762 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
16-2-17 8:21:06.762 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=3 rel=1 op=init init
16-2-17 8:21:06.762 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=4 rel=2 op=connect connect
16-2-17 8:21:06.762 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:06.763 | UnreliableLocal | Test worker    | INFO : Operation NOT successful: abs=5 rel=1 op=upload upload(/tmp/syncanytest/syncany-170216081829395-10065-client-A/.syncany/syncany, syncany)
16-2-17 8:21:06.766 | 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:86)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:48)
	at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.messaging.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:105)
	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
	at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
	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-170216081829395-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)
	... 42 more
16-2-17 8:21:06.769 | AbstractInitOpe | Test worker    | INFO : 
16-2-17 8:21:06.769 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
16-2-17 8:21:06.769 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
16-2-17 8:21:06.769 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:06.769 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
16-2-17 8:21:06.769 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
16-2-17 8:21:06.769 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
16-2-17 8:21:06.769 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
16-2-17 8:21:06.769 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
16-2-17 8:21:06.769 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
16-2-17 8:21:06.769 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
16-2-17 8:21:06.769 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
16-2-17 8:21:06.769 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:06.770 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
16-2-17 8:21:06.770 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
16-2-17 8:21:06.770 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
16-2-17 8:21:06.770 | 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:06.770 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
16-2-17 8:21:06.772 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
16-2-17 8:21:06.772 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:06.773 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-170216081829395-10065-client-A/.syignore ...
16-2-17 8:21:06.774 | GenlinkOperatio | Test worker    | INFO : 
16-2-17 8:21:06.774 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
16-2-17 8:21:06.774 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------