GithubHelp home page GithubHelp logo

progrium / pubsubhubbub-testsuite Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 3.0 109 KB

Hub validation of the PubSubHubbub spec

Home Page: http://code.google.com/p/pubsubhubbub/wiki/HubTestSuite

Ruby 100.00%

pubsubhubbub-testsuite's Introduction

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=<url to hub> [HOST=<subscriber host>] [SUB_PORT=<subscriber port>] [PUB_PORT=<publisher port>] [TOPIC_URL=<feed 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

pubsubhubbub-testsuite's People

Contributors

blaine avatar julien51 avatar zh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

blaine zh

pubsubhubbub-testsuite's Issues

Fails with rspec2

The tests fail when using rspec2. It wasn't immediately obvious to me that the gem version was the problem, maybe a note in the README would be worthwhile?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.