HTTP/1.1 -1 Read error in cache disk data: SuccessContent-Type: text/plain; charset="utf-8" Last-Modified: Sat, 22 Jan 2022 07:04:03 GMT Content-length: 3984 Connection: Close Proxy-Connection: Close X-Cache: HIT from web1.osuosl.org Server: ProxyTrack 0.5 (HTTrack 3.49.2) The GitHub Trac plugin doesn't come with any test suite, so the purpose of this page is to create a list of manual tests. This will give us some level of QA that the plugin conforms to a minimal level of quality in addition to serving as a list of features which have been successfully implemented. == Setup == == Test Results == || test || status at [http://github.com/cotto/github-trac/commit/25c3650abd8b742377a9f4ba04efea2aae6de36c 25c365] || || clean install || PASS || == Test Cases == When running these test cases, use the below generic configuration options unless otherwise specified. {{{ [github] apitoken = #get this from https://github.com/account autofetch = 0 browser = http://github.com/parrot/parrot/commit/ closestatus = "closed" enable_revmap = 1 long_tooltips = 1 svn_revmap = revmap }}} === clean install (enabled) === ''The plugin can be installed onto a db which doesn't have an existing svn_revmap table.'' Procedure: 1. Start with the generic config options. 1. Delete the svn_revmap db table, if it exists. 1. Enable the plugin via Trac's config file (or via trac,ini). 1. '''Verify that Trac shows the need for an upgrade.''' 1. Upgrade Trac. 1. '''Verify that Trac no longer needs to be upgraded.''' === clean install (disabled) === ''The plugin doesn't require the extra db table if revmaps are disabled.'' Procedure: 1. Start with the generic config options, but with enable_revmap = 0. 1. Delete the svn_revmap db table, if it exists. 1. Enable the plugin via Trac's config file (or via trac,ini). 1. '''Verify that Trac does not need to be upgraded''' === incorrect revmap === ''The plugin will fail gracefully if the revmap is broken.'' Procedure: 1. Start with the generic config options. 1. Delete the svn_revmap db table, if it exists. 1. Enable the plugin via Trac's config file (or via trac,ini). 1. Generate a revmap ( git log --quiet --format='%H%n%s%n%b' ), but delete instances of "git-svn-id:". 1. '''Verify that an upgrade does not produce corrupt data.''' === tooltips === ''The plugin will properly display tooltips according to configuration.'' Procedure: 1. Start with the generic config options. 1. Create or view a wiki page with valid svn revisions and git ids. 1. '''Verify that the wiki syntax works and that tooltips are displayed.''' 1. Change the "long_tooltips" config option to 0 and restart Trac. 1. '''Verify that truncated tooltips are displayed.''' === wiki syntax === ''The plugin will properly detect and display svn and git links.'' Procedure: 1. Start with the generic config options. 1. Create or view a wiki page with valid and invalid svn revisions and git ids. 1. '''Verify that the valid links are displayed as links.''' 1. '''Verify that the invalid links are displayed unchanged.''' === changeset urls === ''The plugin will properly redirect changeset urls to GitHub.'' Procedure: 1. Start with the generic config options. 1. Create or view a wiki page with valid svn revisions and git ids. 1. '''Verify that the git ids redirect the appropriate commit at GitHub.''' 1. '''Verify that the svn revisions redirect the appropriate git commit at GitHub.''' (look for the git-svn-id on the GitHub page) === github hooks === ''The plugin responds correctly to GitHub's post-receive urls.'' Procedure: 1. Start with the generic config options. 1. Get an example of the data sent with a post-receive callback. (todo: how) 1. Use curl or wget to post the data to the github hook url (todo: specific instructions) 1. Create a wiki page that refers to the newly-added commit. 1. '''Verify that the link to the commit is displayed correctly, including its tooltip.''' == TODO == * browser url works “eats through” 57LBs? (new)">#5051 (Juicy purple fruit “eats through” 57LBs?) c