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

2

tests

0

failures

0

ignored

0.063s

duration

100%

successful

Tests

Test Duration Result
testFaultyInitOperation 0.039s passed
testInitOperation 0.024s passed

Standard error

29-5-19 15:04:40.164 | AbstractInitOpe | Test worker    | INFO : 
29-5-19 15:04:40.164 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
29-5-19 15:04:40.164 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
29-5-19 15:04:40.164 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:04:40.164 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
29-5-19 15:04:40.164 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
29-5-19 15:04:40.165 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
29-5-19 15:04:40.165 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
29-5-19 15:04:40.165 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
29-5-19 15:04:40.165 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
29-5-19 15:04:40.165 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
29-5-19 15:04:40.165 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
29-5-19 15:04:40.165 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:04:40.165 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
29-5-19 15:04:40.166 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
29-5-19 15:04:40.166 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
29-5-19 15:04:40.166 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
29-5-19 15:04:40.166 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
29-5-19 15:04:40.171 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
29-5-19 15:04:40.173 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:04:40.177 | AbstractInitOpe | Test worker    | INFO : Creating default .syignore file at /tmp/syncanytest/syncany-190529150340085-10065-client-A/.syignore ...
29-5-19 15:04:40.178 | GenlinkOperatio | Test worker    | INFO : 
29-5-19 15:04:40.182 | GenlinkOperatio | Test worker    | INFO : Running 'GenLink'
29-5-19 15:04:40.182 | GenlinkOperatio | Test worker    | INFO : --------------------------------------------
29-5-19 15:04:40.189 | AbstractInitOpe | Test worker    | INFO : 
29-5-19 15:04:40.190 | AbstractInitOpe | Test worker    | INFO : Running 'Init'
29-5-19 15:04:40.190 | AbstractInitOpe | Test worker    | INFO : --------------------------------------------
29-5-19 15:04:40.190 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:04:40.191 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
29-5-19 15:04:40.191 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
29-5-19 15:04:40.191 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
29-5-19 15:04:40.191 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in UnreliableLocalTransferManager ...
29-5-19 15:04:40.191 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in UnreliableLocalTransferManager ...
29-5-19 15:04:40.191 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
29-5-19 15:04:40.191 | AbstractTransfe | Test worker    | INFO : Performing storage test TM.test() ...
29-5-19 15:04:40.191 | AbstractTransfe | Test worker    | INFO : - Running connect() ...
29-5-19 15:04:40.191 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=1 rel=1 op=connect connect
29-5-19 15:04:40.192 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:04:40.192 | LocalTransferMa | Test worker    | INFO : testTargetCanWrite: Can write, test file created/deleted successfully.
29-5-19 15:04:40.193 | LocalTransferMa | Test worker    | INFO : testRepoFileExists: Repo file DOES NOT exist.
29-5-19 15:04:40.193 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=2 rel=1 op=disconnect disconnect
29-5-19 15:04:40.194 | AbstractInitOpe | Test worker    | INFO : Storage test result ist StorageTestResult [targetExists=true, targetCanConnect=true, targetCanCreate=true, targetCanWrite=true, repoFileExists=false]
29-5-19 15:04:40.194 | AbstractInitOpe | Test worker    | INFO : --> OKAY: Target exists and is writable, but repo doesn't exist. We're good to go!
29-5-19 15:04:40.194 | AbstractInitOpe | Test worker    | INFO : - Connecting to the repo was successful
29-5-19 15:04:40.204 | AbstractInitOpe | Test worker    | INFO : Uploading local repository ...
29-5-19 15:04:40.204 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=3 rel=1 op=init init
29-5-19 15:04:40.204 | UnreliableLocal | Test worker    | INFO : Operation successful:     abs=4 rel=2 op=connect connect
29-5-19 15:04:40.205 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:04:40.206 | UnreliableLocal | Test worker    | INFO : Operation NOT successful: abs=5 rel=1 op=upload upload(/tmp/syncanytest/syncany-190529150340085-10065-client-A/.syncany/syncany, syncany)
29-5-19 15:04:40.210 | 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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:40)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
	at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
	at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:71)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$100(JUnitPlatformTestClassProcessor.java:77)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:73)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	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.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:131)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	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:155)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
	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.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.syncany.plugins.transfer.StorageException: Operation failed: upload(/tmp/syncanytest/syncany-190529150340085-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)
	... 66 more