Ticket #661 (closed task: fixed)
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
Note: See
TracTickets for help on using
tickets.
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.