Skip to content

Instantly share code, notes, and snippets.

@kevn
Created October 5, 2011 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevn/1263543 to your computer and use it in GitHub Desktop.
Save kevn/1263543 to your computer and use it in GitHub Desktop.
Etherpad-lite ruby gem timeouts
~/dev/ruby-etherpad-lite% rspec spec [master]
*****************************************************************
DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
* Rspec is deprecated.
* RSpec is the new top-level module in RSpec-2
***************************************************************
.........FFFFFFFFF..F.FFFFFFFFF.FF.......
Failures:
1) EtherpadLite::Group should find a Group Pad with the right id
Failure/Error: group.pad_ids.should == [:"#{group.id}$Important Group Stuff"]
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:94:in `listPads'
# ./spec/../lib/etherpad-lite/models/group.rb:65:in `pad_ids'
# ./spec/group_spec.rb:44
2) EtherpadLite::Group should find a Group Pad with the right name
Failure/Error: group.pads.first.name.should == "Important Group Stuff"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:94:in `listPads'
# ./spec/../lib/etherpad-lite/models/group.rb:65:in `pad_ids'
# ./spec/../lib/etherpad-lite/models/group.rb:60:in `pads'
# ./spec/group_spec.rb:49
3) EtherpadLite::Group should explicitly create a Group Pad
Failure/Error: pad = group.create_pad 'new group pad', :text => 'abc'
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:100:in `createGroupPad'
# ./spec/../lib/etherpad-lite/models/pad.rb:16:in `create'
# ./spec/../lib/etherpad-lite/models/padded.rb:23:in `create_pad'
# ./spec/../lib/etherpad-lite/models/group.rb:55:in `create_pad'
# ./spec/group_spec.rb:54
4) EtherpadLite::Group Group Pad Privacy should be private
Failure/Error: pad.private?.should == true
EtherpadLite::Error:
Response error code 400: No error
# ./spec/../lib/etherpad-lite/client.rb:240:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:216:in `getPublicStatus'
# ./spec/../lib/etherpad-lite/models/pad.rb:110:in `public?'
# ./spec/../lib/etherpad-lite/models/pad.rb:122:in `private?'
# ./spec/group_spec.rb:63
5) EtherpadLite::Group Group Pad Privacy should not be public
Failure/Error: pad.public?.should == false
EtherpadLite::Error:
Response error code 400: No error
# ./spec/../lib/etherpad-lite/client.rb:240:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:216:in `getPublicStatus'
# ./spec/../lib/etherpad-lite/models/pad.rb:110:in `public?'
# ./spec/group_spec.rb:69
6) EtherpadLite::Group Group Pad Privacy should change to public
Failure/Error: pad.public = true
EtherpadLite::Error:
Response error code 500: No error
# ./spec/../lib/etherpad-lite/client.rb:240:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:211:in `setPublicStatus'
# ./spec/../lib/etherpad-lite/models/pad.rb:116:in `public='
# ./spec/group_spec.rb:75
7) EtherpadLite::Group Group Pad Privacy should change to not private
Failure/Error: pad.private = false
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:211:in `setPublicStatus'
# ./spec/../lib/etherpad-lite/models/pad.rb:116:in `public='
# ./spec/../lib/etherpad-lite/models/pad.rb:128:in `private='
# ./spec/group_spec.rb:82
8) EtherpadLite::Group Group Pad Password should not have a password
Failure/Error: pad.password?.should == false
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:226:in `isPasswordProtected'
# ./spec/../lib/etherpad-lite/models/pad.rb:134:in `password?'
# ./spec/group_spec.rb:91
9) EtherpadLite::Group Group Pad Password should have a password set
Failure/Error: pad.password = 'correct horse battery staple'
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:221:in `setPassword'
# ./spec/../lib/etherpad-lite/models/pad.rb:140:in `password='
# ./spec/group_spec.rb:97
10) EtherpadLite::Pad should blow up when querying a non-existing pad
Failure/Error: txt = pad.text
EtherpadLite::Error:
Response error code 500: No error
# ./spec/../lib/etherpad-lite/client.rb:240:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:164:in `getText'
# ./spec/../lib/etherpad-lite/models/pad.rb:70:in `text'
# ./spec/pad_spec.rb:11
11) EtherpadLite::Pad should blow up when creating a Pad that already exists
Failure/Error: pad = @eth.create_pad 'my new pad', :text => 'The initial text'
EtherpadLite::Error:
Response error code 400: No error
# ./spec/../lib/etherpad-lite/client.rb:240:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:186:in `createPad'
# ./spec/../lib/etherpad-lite/models/pad.rb:19:in `create'
# ./spec/../lib/etherpad-lite/models/padded.rb:23:in `create_pad'
# ./spec/pad_spec.rb:24
12) EtherpadLite::Pad should automatically create a Pad
Failure/Error: pad.text = "The initial text"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:175:in `setText'
# ./spec/../lib/etherpad-lite/models/pad.rb:75:in `text='
# ./spec/pad_spec.rb:32
13) EtherpadLite::Pad should automatically find a Pad
Failure/Error: pad.text.should == "The initial text\n"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:164:in `getText'
# ./spec/../lib/etherpad-lite/models/pad.rb:70:in `text'
# ./spec/pad_spec.rb:38
14) EtherpadLite::Pad should find a Pad
Failure/Error: pad.text.should == "The initial text\n"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:164:in `getText'
# ./spec/../lib/etherpad-lite/models/pad.rb:70:in `text'
# ./spec/pad_spec.rb:43
15) EtherpadLite::Pad should have a read-only id
Failure/Error: pad.read_only_id.should =~ /^r\.\w+/
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:206:in `getReadOnlyID'
# ./spec/../lib/etherpad-lite/models/pad.rb:104:in `read_only_id'
# ./spec/pad_spec.rb:48
16) EtherpadLite::Pad should have html body
Failure/Error: pad.html.should == "The initial text<br>"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:170:in `getHtml'
# ./spec/../lib/etherpad-lite/models/pad.rb:80:in `html'
# ./spec/pad_spec.rb:53
17) EtherpadLite::Pad should add revisions
Failure/Error: pad.text == "New text"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:164:in `getText'
# ./spec/../lib/etherpad-lite/models/pad.rb:70:in `text'
# ./spec/pad_spec.rb:58
18) EtherpadLite::Pad should have the first revision
Failure/Error: pad.text(:rev => 1).should == "The initial text\n"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:164:in `getText'
# ./spec/../lib/etherpad-lite/models/pad.rb:70:in `text'
# ./spec/pad_spec.rb:64
19) EtherpadLite::Pad should have the first revision
Failure/Error: pad.revisions[1].text.should == "The initial text\n"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:196:in `getRevisionsCount'
# ./spec/../lib/etherpad-lite/models/pad.rb:89:in `revision_numbers'
# ./spec/../lib/etherpad-lite/models/pad.rb:95:in `revisions'
# ./spec/pad_spec.rb:69
20) EtherpadLite::Pad should be initialized as revision 1
Failure/Error: pad.text.should == "The initial text\n"
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:164:in `getText'
# ./spec/../lib/etherpad-lite/models/pad.rb:70:in `text'
# ./spec/pad_spec.rb:79
21) EtherpadLite::Pad should be deleted
Failure/Error: @eth.get_pad('another new pad').delete
EtherpadLite::Timeout:
Request exceeded timeout: 5000ms
# ./spec/../lib/etherpad-lite/client.rb:239:in `handleResult'
# ./spec/../lib/etherpad-lite/client.rb:56:in `call'
# ./spec/../lib/etherpad-lite/client.rb:201:in `deletePad'
# ./spec/../lib/etherpad-lite/models/pad.rb:145:in `delete'
# ./spec/pad_spec.rb:83
Finished in 90.09 seconds
41 examples, 21 failures
Failed examples:
rspec ./spec/group_spec.rb:42 # EtherpadLite::Group should find a Group Pad with the right id
rspec ./spec/group_spec.rb:47 # EtherpadLite::Group should find a Group Pad with the right name
rspec ./spec/group_spec.rb:52 # EtherpadLite::Group should explicitly create a Group Pad
rspec ./spec/group_spec.rb:60 # EtherpadLite::Group Group Pad Privacy should be private
rspec ./spec/group_spec.rb:66 # EtherpadLite::Group Group Pad Privacy should not be public
rspec ./spec/group_spec.rb:72 # EtherpadLite::Group Group Pad Privacy should change to public
rspec ./spec/group_spec.rb:79 # EtherpadLite::Group Group Pad Privacy should change to not private
rspec ./spec/group_spec.rb:88 # EtherpadLite::Group Group Pad Password should not have a password
rspec ./spec/group_spec.rb:94 # EtherpadLite::Group Group Pad Password should have a password set
rspec ./spec/pad_spec.rb:8 # EtherpadLite::Pad should blow up when querying a non-existing pad
rspec ./spec/pad_spec.rb:22 # EtherpadLite::Pad should blow up when creating a Pad that already exists
rspec ./spec/pad_spec.rb:30 # EtherpadLite::Pad should automatically create a Pad
rspec ./spec/pad_spec.rb:36 # EtherpadLite::Pad should automatically find a Pad
rspec ./spec/pad_spec.rb:41 # EtherpadLite::Pad should find a Pad
rspec ./spec/pad_spec.rb:46 # EtherpadLite::Pad should have a read-only id
rspec ./spec/pad_spec.rb:51 # EtherpadLite::Pad should have html body
rspec ./spec/pad_spec.rb:56 # EtherpadLite::Pad should add revisions
rspec ./spec/pad_spec.rb:62 # EtherpadLite::Pad should have the first revision
rspec ./spec/pad_spec.rb:67 # EtherpadLite::Pad should have the first revision
rspec ./spec/pad_spec.rb:77 # EtherpadLite::Pad should be initialized as revision 1
rspec ./spec/pad_spec.rb:82 # EtherpadLite::Pad should be deleted
~/dev/ruby-etherpad-lite%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment