Skip to content

Instantly share code, notes, and snippets.

@jamii
Created April 7, 2011 19:13
Show Gist options
  • Select an option

  • Save jamii/908476 to your computer and use it in GitHub Desktop.

Select an option

Save jamii/908476 to your computer and use it in GitHub Desktop.
Waiting for the locker to startup...
♢ Facebook Connector
Facebook Connector can get friends from Facebook
✓ and returns within 5 seconds
Facebook connector can get all friends A GET to /Me/c2b28e92ebe576c5687ce1ce9d2f25c2/allContacts
✓ should respond with 200
✓ returns one friend
✓ returns Simon as only friend
Facebook Connector can get photos from Facebook
✓ and returns within 5 seconds
Facebook connector can get all photos A GET to /Me/c2b28e92ebe576c5687ce1ce9d2f25c2/allPhotos
✓ should respond with 200
✓ returns 3 albums
♢ Flickr Connector
Flickr Connector can get photos from Flickr
✓ and returns within 60 seconds
Flickr Connector emits events
✗ within 3 seconds
» expected null, got 'Events did not emit in time.' // connector-flickr-test.js:107
Flicker Connector can get all photos A GET to /Me/9fdfb7e5c6551dc45300aeb0d21fdff4/allPhotos
✓ should respond with 200
✓ returns two photos
Flicker Connector can get an individual photo object A GET to /Me/9fdfb7e5c6551dc45300aeb0d21fdff4/photoObject/5577555595
✓ should respond with 200
✓ returns the correct photo object
Flicker Connector can get an individual photo file A GET to /Me/9fdfb7e5c6551dc45300aeb0d21fdff4/photo/5577555595
✓ should respond with 200
♢ Locker core API
Core can map existing services with A GET to /map
✓ should respond with 200
✓ has an available and installed attribute
✗ has 12 available services
» expected 12,
got 13 (==) // locker-test.js:37
✓ has 4 installed services
✓ has the required test services installed
Core can proxy requests via POST to services A POST to /Me/invalidServicename/test
✓ should respond with 404
Core can store diary messages A POST to /diary
✓ should respond with 200
Core can proxy requests via GET to services A GET to /Me/invalidServicename/test
✓ should respond with 404
Core can register a listener for an event A GET to /listen
✓ should respond with 200
Core can install an available service but requires a srcdir attribute A POST to /install
✓ should respond with 400
Core can install an available service and fails on an invalid service A POST to /install
✓ should respond with 404
Core can install an available service by srcdir attribute A POST to /install
✓ should respond with 200
✓ and returns the installed service information
✓ and has a created instance directory
Core can proxy requests via POST to services A POST to /Me/testURLCallback/test
✓ should respond with 200
✓ should respond with url, method
Core can proxy requests via GET to services A GET to /Me/testURLCallback/test
✓ should respond with 200
✓ should respond with url, method
Core can deafen a listener for an event A GET to /deafen
✓ should respond with 200
Core can retrieve stored diary messages A GET to /diary
✓ should respond with 200
✓ that have full info
Core can schedule a uri callback
✓ and is called
Core can fire an event
✓ and callbacks are called
♢ Locker Scheduling System
Scheduler schedules a callback
✓ and fires the callback in a timely fashion
✗ Broken » 36 honored ∙ 2 broken (24.866s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment