Ticket #661 (closed task: fixed)

Opened 4 years ago

Last modified 4 years ago

Create CKAN site tester

Reported by: dread Owned by:
Priority: Milestone: ckan-v1.3
Component: Keywords:
Cc: Repository:
Theme:

Description

From Rufus:

'blackbox' testing command (read-only only would be fine) -- very
useful for upgrade on sunday

On blackbox thinking of something like:

paster test-site http://hmg.ckan.net {package-name}

Or (maybe better):

paster test-site --site-spec {myconfig.json}

my-config is a json file with info for testing (could overload
--config rather than site-spec):

site-url: http://hmg.ckan.net/
package-name:
package-title:
...etc ...

Then:

Test front-page
Test /revision/
Test /package/{page}  -- check title
Test /package/history
Test /api/rest/package/ ...
Test /api/search/package ...
etc

Change History

comment:1 Changed 4 years ago by dread

  • Status changed from new to closed
  • sprint set to 1.3.1
  • Resolution set to fixed
  • Milestone set to ckan v1.3

Friedrich has done the main meat of this in ckanext/blackbox/smoke.py

I've extended it to include http basic auth, testing wanted error statuses, checking API calls etc.

Note: See TracTickets for help on using tickets.