Advertisement
Guest User

fauxpaas integration tests

a guest
Jun 22nd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.18 KB | None | 0 0
  1. aelkiss@claret:~/fauxpaas$ be rspec -t integration
  2. Run options: include {:integration=>true}
  3.  
  4. integration tests
  5. deploy
  6. without rails
  7. the 'releases' dir exists (FAILED - 1)
  8. the 'current' dir exists (FAILED - 2)
  9. installs unshared files (FAILED - 3)
  10. sets unshared files to be readable only by the application user
  11. installs shared files (FAILED - 4)
  12. sets shared files to be readable only by the application user
  13. runs after_build commands (FAILED - 5)
  14. installs the gems (FAILED - 6)
  15. installs the source files (FAILED - 7)
  16. git: 'discard' is not a git command. See 'git --help'.
  17. git: 'discard' is not a git command. See 'git --help'.
  18. with rails
  19. the 'releases' dir exists (FAILED - 8)
  20. the 'current' dir exists (FAILED - 9)
  21. installs unshared files (FAILED - 10)
  22. sets unshared files to be readable only by the application user
  23. installs shared files (FAILED - 11)
  24. sets shared files to be readable only by the application user
  25. runs after_build commands (FAILED - 12)
  26. installs the gems (FAILED - 13)
  27. installs the source files (FAILED - 14)
  28. Error: unable to open database "/tmp/fauxpaas/sandbox/test-rails/current/db/production.sqlite3": unable to open database file
  29. runs the migrations (FAILED - 15)
  30. installs a working project (FAILED - 16)
  31. git: 'discard' is not a git command. See 'git --help'.
  32. git: 'discard' is not a git command. See 'git --help'.
  33.  
  34. Failures:
  35.  
  36. 1) integration tests deploy without rails the 'releases' dir exists
  37. Failure/Error: expect((root/"releases").exist?).to be true
  38.  
  39. expected true
  40. got false
  41. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:95
  42. # ./spec/integration_spec.rb:52:in `block (4 levels) in <module:Fauxpaas>'
  43.  
  44. 2) integration tests deploy without rails the 'current' dir exists
  45. Failure/Error: expect(current_dir.exist?).to be true
  46.  
  47. expected true
  48. got false
  49. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:95
  50. # ./spec/integration_spec.rb:55:in `block (4 levels) in <module:Fauxpaas>'
  51.  
  52. 3) integration tests deploy without rails installs unshared files
  53. Failure/Error: expect(File.read(current_dir/"some"/"dev"/"file.txt")).to eql("with some dev contents\n")
  54.  
  55. Errno::ENOENT:
  56. No such file or directory @ rb_sysopen - /tmp/fauxpaas/sandbox/test-norails/current/some/dev/file.txt
  57. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:95
  58. # ./spec/integration_spec.rb:58:in `read'
  59. # ./spec/integration_spec.rb:58:in `block (4 levels) in <module:Fauxpaas>'
  60.  
  61. 4) integration tests deploy without rails installs shared files
  62. Failure/Error:
  63. expect(File.read(current_dir/"some"/"shared"/"file.txt"))
  64. .to eql("with some shared contents\n")
  65.  
  66. Errno::ENOENT:
  67. No such file or directory @ rb_sysopen - /tmp/fauxpaas/sandbox/test-norails/current/some/shared/file.txt
  68. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:95
  69. # ./spec/integration_spec.rb:66:in `read'
  70. # ./spec/integration_spec.rb:66:in `block (4 levels) in <module:Fauxpaas>'
  71.  
  72. 5) integration tests deploy without rails runs after_build commands
  73. Failure/Error: expect((current_dir/"eureka_2.txt").exist?).to be true
  74.  
  75. expected true
  76. got false
  77. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:95
  78. # ./spec/integration_spec.rb:75:in `block (4 levels) in <module:Fauxpaas>'
  79.  
  80. 6) integration tests deploy without rails installs the gems
  81. Failure/Error:
  82. Dir.chdir(current_dir) do
  83. expect(`BUNDLE_GEMFILE=#{current_dir/"Gemfile"} bundle list`).to match(/#{gem}/)
  84. end
  85.  
  86. Errno::ENOENT:
  87. No such file or directory @ dir_chdir - /tmp/fauxpaas/sandbox/test-norails/current
  88. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:95
  89. # ./spec/integration_spec.rb:80:in `chdir'
  90. # ./spec/integration_spec.rb:80:in `block (4 levels) in <module:Fauxpaas>'
  91.  
  92. 7) integration tests deploy without rails installs the source files
  93. Failure/Error:
  94. expect((current_dir/source).exist?)
  95. .to be true
  96.  
  97. expected true
  98. got false
  99. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:95
  100. # ./spec/integration_spec.rb:85:in `block (4 levels) in <module:Fauxpaas>'
  101.  
  102. 8) integration tests deploy with rails the 'releases' dir exists
  103. Failure/Error: expect((root/"releases").exist?).to be true
  104.  
  105. expected true
  106. got false
  107. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:103
  108. # ./spec/integration_spec.rb:52:in `block (4 levels) in <module:Fauxpaas>'
  109.  
  110. 9) integration tests deploy with rails the 'current' dir exists
  111. Failure/Error: expect(current_dir.exist?).to be true
  112.  
  113. expected true
  114. got false
  115. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:103
  116. # ./spec/integration_spec.rb:55:in `block (4 levels) in <module:Fauxpaas>'
  117.  
  118. 10) integration tests deploy with rails installs unshared files
  119. Failure/Error: expect(File.read(current_dir/"some"/"dev"/"file.txt")).to eql("with some dev contents\n")
  120.  
  121. Errno::ENOENT:
  122. No such file or directory @ rb_sysopen - /tmp/fauxpaas/sandbox/test-rails/current/some/dev/file.txt
  123. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:103
  124. # ./spec/integration_spec.rb:58:in `read'
  125. # ./spec/integration_spec.rb:58:in `block (4 levels) in <module:Fauxpaas>'
  126.  
  127. 11) integration tests deploy with rails installs shared files
  128. Failure/Error:
  129. expect(File.read(current_dir/"some"/"shared"/"file.txt"))
  130. .to eql("with some shared contents\n")
  131.  
  132. Errno::ENOENT:
  133. No such file or directory @ rb_sysopen - /tmp/fauxpaas/sandbox/test-rails/current/some/shared/file.txt
  134. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:103
  135. # ./spec/integration_spec.rb:66:in `read'
  136. # ./spec/integration_spec.rb:66:in `block (4 levels) in <module:Fauxpaas>'
  137.  
  138. 12) integration tests deploy with rails runs after_build commands
  139. Failure/Error: expect((current_dir/"eureka_2.txt").exist?).to be true
  140.  
  141. expected true
  142. got false
  143. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:103
  144. # ./spec/integration_spec.rb:75:in `block (4 levels) in <module:Fauxpaas>'
  145.  
  146. 13) integration tests deploy with rails installs the gems
  147. Failure/Error:
  148. Dir.chdir(current_dir) do
  149. expect(`BUNDLE_GEMFILE=#{current_dir/"Gemfile"} bundle list`).to match(/#{gem}/)
  150. end
  151.  
  152. Errno::ENOENT:
  153. No such file or directory @ dir_chdir - /tmp/fauxpaas/sandbox/test-rails/current
  154. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:103
  155. # ./spec/integration_spec.rb:80:in `chdir'
  156. # ./spec/integration_spec.rb:80:in `block (4 levels) in <module:Fauxpaas>'
  157.  
  158. 14) integration tests deploy with rails installs the source files
  159. Failure/Error:
  160. expect((current_dir/source).exist?)
  161. .to be true
  162.  
  163. expected true
  164. got false
  165. Shared Example Group: "a successful deploy" called from ./spec/integration_spec.rb:103
  166. # ./spec/integration_spec.rb:85:in `block (4 levels) in <module:Fauxpaas>'
  167.  
  168. 15) integration tests deploy with rails runs the migrations
  169. Failure/Error:
  170. expect(`sqlite3 #{current_dir/"db"/"production.sqlite3"} ".schema posts"`.chomp)
  171. .to match(/CREATE TABLE (IF NOT EXISTS )?"posts"/)
  172.  
  173. expected "" to match /CREATE TABLE (IF NOT EXISTS )?"posts"/
  174. Diff:
  175. @@ -1,2 +1,2 @@
  176. -/CREATE TABLE (IF NOT EXISTS )?"posts"/
  177. +""
  178.  
  179. # ./spec/integration_spec.rb:106:in `block (4 levels) in <module:Fauxpaas>'
  180.  
  181. 16) integration tests deploy with rails installs a working project
  182. Failure/Error: expect(status.success?).to be true
  183.  
  184. expected true
  185. got false
  186. # ./spec/integration_spec.rb:116:in `block (4 levels) in <module:Fauxpaas>'
  187.  
  188. Finished in 1.16 seconds (files took 0.29455 seconds to load)
  189. 20 examples, 16 failures
  190.  
  191. Failed examples:
  192.  
  193. rspec ./spec/integration_spec.rb[1:1:1:1] # integration tests deploy without rails the 'releases' dir exists
  194. rspec ./spec/integration_spec.rb[1:1:1:2] # integration tests deploy without rails the 'current' dir exists
  195. rspec ./spec/integration_spec.rb[1:1:1:3] # integration tests deploy without rails installs unshared files
  196. rspec ./spec/integration_spec.rb[1:1:1:5] # integration tests deploy without rails installs shared files
  197. rspec ./spec/integration_spec.rb[1:1:1:7] # integration tests deploy without rails runs after_build commands
  198. rspec ./spec/integration_spec.rb[1:1:1:8] # integration tests deploy without rails installs the gems
  199. rspec ./spec/integration_spec.rb[1:1:1:9] # integration tests deploy without rails installs the source files
  200. rspec ./spec/integration_spec.rb[1:1:2:1] # integration tests deploy with rails the 'releases' dir exists
  201. rspec ./spec/integration_spec.rb[1:1:2:2] # integration tests deploy with rails the 'current' dir exists
  202. rspec ./spec/integration_spec.rb[1:1:2:3] # integration tests deploy with rails installs unshared files
  203. rspec ./spec/integration_spec.rb[1:1:2:5] # integration tests deploy with rails installs shared files
  204. rspec ./spec/integration_spec.rb[1:1:2:7] # integration tests deploy with rails runs after_build commands
  205. rspec ./spec/integration_spec.rb[1:1:2:8] # integration tests deploy with rails installs the gems
  206. rspec ./spec/integration_spec.rb[1:1:2:9] # integration tests deploy with rails installs the source files
  207. rspec ./spec/integration_spec.rb:105 # integration tests deploy with rails runs the migrations
  208. rspec ./spec/integration_spec.rb:112 # integration tests deploy with rails installs a working project
  209.  
  210. Coverage report generated for RSpec to /home/aelkiss/fauxpaas/coverage. 595 / 735 LOC (80.95%) covered.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement