Advertisement
Guest User

Untitled

a guest
May 17th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.32 KB | None | 0 0
  1. 24 passing (571ms)
  2. 6 failing
  3.  
  4. 1) Rsync: should automatically append a slash at the end of source:
  5.  
  6. AssertionError: expected 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" foo/ test@ssh.resindevice.io:' to equal 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" "foo\\" test@ssh.resindevice.io:'
  7. + expected - actual
  8.  
  9. +"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" \"foo\\\" test@ssh.resindevice.io:"
  10. -"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" foo/ test@ssh.resindevice.io:"
  11.  
  12. at assertCommand (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:27:28)
  13. at Context.<anonymous> (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:80:3)
  14. at callFn (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:250:21)
  15. at Test.Runnable.run (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:243:7)
  16. at Runner.runTest (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:373:10)
  17. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:451:12
  18. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:298:14)
  19. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:308:7
  20. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:246:23)
  21. at Immediate._onImmediate (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:275:5)
  22. at processImmediate [as _immediateCallback] (timers.js:383:17)
  23.  
  24.  
  25. 2) Rsync: should not append a slash at the end of source is there is one already:
  26.  
  27. AssertionError: expected 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" "foo\\/" test@ssh.resindevice.io:' to equal 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" "foo\\" test@ssh.resindevice.io:'
  28. + expected - actual
  29.  
  30. +"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" \"foo\\\" test@ssh.resindevice.io:"
  31. -"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" \"foo\\/\" test@ssh.resindevice.io:"
  32.  
  33. at assertCommand (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:27:28)
  34. at Context.<anonymous> (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:93:3)
  35. at callFn (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:250:21)
  36. at Test.Runnable.run (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:243:7)
  37. at Runner.runTest (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:373:10)
  38. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:451:12
  39. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:298:14)
  40. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:308:7
  41. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:246:23)
  42. at Immediate._onImmediate (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:275:5)
  43. at processImmediate [as _immediateCallback] (timers.js:383:17)
  44.  
  45.  
  46. 3) Rsync: should be able to set progress to true:
  47.  
  48. AssertionError: expected 'rsync -az --progress --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" "foo\\bar\\/" test@ssh.resindevice.io:' to equal 'rsync -az --progress --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" "foo\\bar\\" test@ssh.resindevice.io:'
  49. + expected - actual
  50.  
  51. +"rsync -az --progress --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" \"foo\\bar\\\" test@ssh.resindevice.io:"
  52. -"rsync -az --progress --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" \"foo\\bar\\/\" test@ssh.resindevice.io:"
  53.  
  54. at assertCommand (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:27:28)
  55. at Context.<anonymous> (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:107:3)
  56. at callFn (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:250:21)
  57. at Test.Runnable.run (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:243:7)
  58. at Runner.runTest (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:373:10)
  59. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:451:12
  60. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:298:14)
  61. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:308:7
  62. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:246:23)
  63. at Immediate._onImmediate (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:275:5)
  64. at processImmediate [as _immediateCallback] (timers.js:383:17)
  65.  
  66.  
  67. 4) Rsync: should be able to set progress to false:
  68.  
  69. AssertionError: expected 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" "foo\\bar\\/" test@ssh.resindevice.io:' to equal 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" "foo\\bar\\" test@ssh.resindevice.io:'
  70. + expected - actual
  71.  
  72. +"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" \"foo\\bar\\\" test@ssh.resindevice.io:"
  73. -"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" \"foo\\bar\\/\" test@ssh.resindevice.io:"
  74.  
  75. at assertCommand (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:27:28)
  76. at Context.<anonymous> (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:122:3)
  77. at callFn (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:250:21)
  78. at Test.Runnable.run (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:243:7)
  79. at Runner.runTest (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:373:10)
  80. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:451:12
  81. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:298:14)
  82. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:308:7
  83. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:246:23)
  84. at Immediate._onImmediate (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:275:5)
  85. at processImmediate [as _immediateCallback] (timers.js:383:17)
  86.  
  87.  
  88. 5) Rsync: should be able to exclute a single pattern:
  89.  
  90. AssertionError: expected 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" --exclude=.git "foo\\bar\\/" test@ssh.resindevice.io:' to equal 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" --exclude=.git "foo\\bar\\" test@ssh.resindevice.io:'
  91. + expected - actual
  92.  
  93. +"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" --exclude=.git \"foo\\bar\\\" test@ssh.resindevice.io:"
  94. -"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" --exclude=.git \"foo\\bar\\/\" test@ssh.resindevice.io:"
  95.  
  96. at assertCommand (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:27:28)
  97. at Context.<anonymous> (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:136:3)
  98. at callFn (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:250:21)
  99. at Test.Runnable.run (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:243:7)
  100. at Runner.runTest (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:373:10)
  101. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:451:12
  102. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:298:14)
  103. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:308:7
  104. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:246:23)
  105. at Immediate._onImmediate (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:275:5)
  106. at processImmediate [as _immediateCallback] (timers.js:383:17)
  107.  
  108.  
  109. 6) Rsync: should be able to exclute a multiple patterns:
  110.  
  111. AssertionError: expected 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" --exclude=.git --exclude=node_modules "foo\\bar\\/" test@ssh.resindevice.io:' to equal 'rsync -az --rsh="ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567" --exclude=.git --exclude=node_modules "foo\\bar\\" test@ssh.resindevice.io:'
  112. + expected - actual
  113.  
  114. +"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" --exclude=.git --exclude=node_modules \"foo\\bar\\\" test@ssh.resindevice.io:"
  115. -"rsync -az --rsh=\"ssh -p 22 -o LogLevel=QUIET -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null test@ssh.resindevice.io rsync 1234 4567\" --exclude=.git --exclude=node_modules \"foo\\bar\\/\" test@ssh.resindevice.io:"
  116.  
  117. at assertCommand (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:27:28)
  118. at Context.<anonymous> (C:\Users\Joe\GitHub\resin-sync\tests\rsync.spec.coffee:151:3)
  119. at callFn (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:250:21)
  120. at Test.Runnable.run (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runnable.js:243:7)
  121. at Runner.runTest (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:373:10)
  122. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:451:12
  123. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:298:14)
  124. at C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:308:7
  125. at next (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:246:23)
  126. at Immediate._onImmediate (C:\Users\Joe\GitHub\resin-sync\node_modules\mocha\lib\runner.js:275:5)
  127. at processImmediate [as _immediateCallback] (timers.js:383:17)
  128.  
  129.  
  130.  
  131.  
  132. [11:39:21] 'test' errored after 1.77 s
  133. [11:39:21] Error in plugin 'gulp-mocha'
  134. Message:
  135. 6 tests failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement