https://github.com/progrium/pubsubhubbub-testsuite
Hub validation of the PubSubHubbub spec
https://github.com/progrium/pubsubhubbub-testsuite
Last synced: about 1 year ago
JSON representation
Hub validation of the PubSubHubbub spec
- Host: GitHub
- URL: https://github.com/progrium/pubsubhubbub-testsuite
- Owner: progrium
- Created: 2010-01-24T12:32:02.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-08-11T18:33:51.000Z (almost 16 years ago)
- Last Synced: 2025-03-25T12:07:11.497Z (over 1 year ago)
- Language: Ruby
- Homepage: http://code.google.com/p/pubsubhubbub/wiki/HubTestSuite
- Size: 106 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
PubSubHubbub Hub Test Suite
---------------------------
This suite is intended to be used for hub compliancy. The test examples came
directly from the current 0.1 PubSubHubbub Core working draft. However, not
everything can be tested currently. This may change as the spec changes.
This requires Ruby, RSpec and Mechanize, the later two can be installed with
Ruby Gems using "gem install rspec mechanize". RSpec is a great approach to
testing and Ruby allows for nice DSL-like testing. The interface is HTTP, so
it's language independent.
When you use this test suite, make sure that the HOST and SUB_PORT are within
reach of the HUB_URL. If you chose a "public" HUB_URL, your HOST and SUB_PORT
must be "public" too.
You can also specify a specific topic url to test a given hub as not all hubs
accept all feed urls.
Using the Test Suite:
$ HUB_URL= [HOST=] [SUB_PORT=] [PUB_PORT=] [TOPIC_URL=] spec -c hub_*_spec.rb --format specdoc
Example:
$ HUB_URL=http://localhost:8000 HOST=localhost SUB_PORT=8098 spec -c hub_*_spec.rb --format specdoc