Commit graph

66 commits

Author SHA1 Message Date
Henrik Levkowetz faeb7a152a We should still check all the test URLs if no prefixes have been given.
- Legacy-Id: 470
2007-06-17 11:29:06 +00:00
Henrik Levkowetz f303d6f226 Moving some of the setup out to the module level to avoid repeating things unnecessary. In particular applying fixtures and finding patterns and testurls need only be done once.
- Legacy-Id: 469
2007-06-17 11:25:48 +00:00
Henrik Levkowetz 63754d4b2b The URL tests in tests.py can now limit the tests to be run to given URL prefixes. The test class looks for an environment variable URLPREFIX, and if it exists and is non-empty, it is expected to contain a space-separated list of URL prefix patterns for which tests should be run. test/run has been updated to place arguments given on the command line in the URLPREFIX environment variable, so you can say:
{{{
 $ test/run ipr
}}}
and only the URLs which start with /ipr will be tested.
 - Legacy-Id: 468
2007-06-17 11:09:52 +00:00
Henrik Levkowetz 2e8902d8b4 Formatting tweaks.
- Legacy-Id: 455
2007-06-17 00:45:25 +00:00
Henrik Levkowetz 54f5456c25 Change timestamp placement (now after related string, and indented. Added retrieval info for comparison URLs
- Legacy-Id: 454
2007-06-17 00:09:34 +00:00
Henrik Levkowetz a8f8ace37c Added timestamps to the urltests
- Legacy-Id: 453
2007-06-16 23:17:31 +00:00
Henrik Levkowetz c37319ccd7 Ignore trailing (and leading) newlines in diff chunks.
- Legacy-Id: 447
2007-06-16 21:41:04 +00:00
Henrik Levkowetz 0f391a1d90 More diff test normalizing
- Legacy-Id: 443
2007-06-16 19:50:06 +00:00
Henrik Levkowetz 2c6c881a3d Ignore 'RFC 1234' vs. 'RFC1234' diffs. Ignore 'ID' vs. 'I-D' diffs.
- Legacy-Id: 442
2007-06-16 18:29:36 +00:00
Henrik Levkowetz a22d35877c Layout tweak
- Legacy-Id: 440
2007-06-16 16:47:59 +00:00
Henrik Levkowetz 6c8ade30a4 Layout tweak
- Legacy-Id: 438
2007-06-16 16:27:32 +00:00
Henrik Levkowetz d89e4b909a Place redirect failure information on consecutive lines for better overview.
- Legacy-Id: 437
2007-06-16 16:25:59 +00:00
Henrik Levkowetz 1eafc820c1 Add a separation line between NoTest lines and the following in the test output
- Legacy-Id: 435
2007-06-16 16:21:18 +00:00
Henrik Levkowetz df6836e301 Changing test classification for No test URL and redirect test comparison failures. The first for clarity, the latter temporarily in order not to continuously run the buildbot on the highest error level. Change back when cleaner.
- Legacy-Id: 432
2007-06-16 15:04:29 +00:00
Henrik Levkowetz 70f85c60aa Don't require test URLs for admin and account apps now.
- Legacy-Id: 429
2007-06-16 13:14:54 +00:00
Henrik Levkowetz dab68d8d69 Run syncdb before running tests on the populated database, to apply any new fixtures which are part of the svn checkout we're testing
- Legacy-Id: 426
2007-06-16 11:20:15 +00:00
Bill Fenner 07ba4c0132 Skip any url query segment that doesn't contain an "=", so
that a query like "?&ipr_id=657" can be parsed.
 - Legacy-Id: 415
2007-06-15 18:25:19 +00:00
Bill Fenner ac8b6ee6af Test redirects if there's a right-hand URL in testurl.list.
Strip off a static "https://datatracker.ietf.org" and then
fetch it locally, and make sure it returns a 301 redirect
to the left-hand URL.
 - Legacy-Id: 408
2007-06-15 16:47:40 +00:00
Henrik Levkowetz b04b50bd63 Refined the handling of sorted comparison tests
- Legacy-Id: 405
2007-06-15 13:29:50 +00:00
Henrik Levkowetz e044b6e228 Fixed broken report of untested URLs in tests.py
- Legacy-Id: 401
2007-06-15 12:02:05 +00:00
Henrik Levkowetz 025178a514 Additional testing functionality. It's now possible to add 'sort' to the result codes in testurl.list, and the lines of the pages returned will be sorted before they are compared.
- Legacy-Id: 397
2007-06-15 11:48:12 +00:00
Henrik Levkowetz 8a3936dfa5 Acceptable diff: changed order of related drafts in IPR search result. Also a tweak to tests.py regarding test-url to diff filename mangling.
- Legacy-Id: 395
2007-06-15 00:41:38 +00:00
Henrik Levkowetz 76378ade5d Another tweak to the URL text comparisons in tests.py
- Legacy-Id: 394
2007-06-15 00:16:05 +00:00
Henrik Levkowetz 84b9a959a8 Backing out the previous change so I can commit it with proper comments...(3)
- Legacy-Id: 389
2007-06-14 23:45:15 +00:00
Henrik Levkowetz d989d0aa21 A little filter to add a space to strings like 'RFC1234' to get 'RFC 1234'
- Legacy-Id: 386
2007-06-14 23:38:51 +00:00
Henrik Levkowetz 1ec697c90a Slightly better 'skip' messages from ietf/tests.py
- Legacy-Id: 354
2007-06-12 23:01:16 +00:00
Henrik Levkowetz dd37257c0c Only print the first 100 lines of a long diff. New soup2html code for spacing associated with certain tags.
- Legacy-Id: 337
2007-06-12 17:52:07 +00:00
Henrik Levkowetz 6acb406762 Don't loose the full url when doing base-url / query-args splitting
- Legacy-Id: 332
2007-06-12 14:42:55 +00:00
Henrik Levkowetz 0374ea9f4e Consistensy fix for test result lines
- Legacy-Id: 331
2007-06-12 09:22:31 +00:00
Henrik Levkowetz 24b3eeb3d3 For use with the django test client, parse test urls into a base-url / query-args-dict pair.
- Legacy-Id: 323
2007-06-11 21:12:50 +00:00
Henrik Levkowetz 0d69f63829 Consistency fix...
- Legacy-Id: 322
2007-06-11 20:29:25 +00:00
Henrik Levkowetz c05bcfce8f Announce diff success for both empty diff and diff matching stored diff.
- Legacy-Id: 319
2007-06-11 19:05:17 +00:00
Henrik Levkowetz a3f93df8a4 Clear the diff when 2 ''lines'' are left, rather than 2 ''words''.
- Legacy-Id: 318
2007-06-11 18:56:43 +00:00
Henrik Levkowetz e7a13bff68 * Adding 3 generic chunks, which will ignore the A-hat diffs and the
'produced by' diffs.
 * Updating ietf/tests.py to handle diff chunks right
 - Legacy-Id: 316
2007-06-11 18:44:49 +00:00
Henrik Levkowetz 8e8c3ff5e2 * ietf/tests.py: Remove filetime() again -- not using it.
* ietf/utils/soup2text.py: Do line ending normalization.
 - Legacy-Id: 315
2007-06-11 17:26:59 +00:00
Henrik Levkowetz 8f81a7a7de Adding the ability to define generic diff chunks which should be ignored. Fixing the inverted filename indication in the unified diff.
- Legacy-Id: 311
2007-06-11 16:41:24 +00:00
Henrik Levkowetz deecbc9da3 Don't list URLs which have explicit tests as Skipped during the fallback URL test.
- Legacy-Id: 307
2007-06-11 09:36:45 +00:00
Henrik Levkowetz 0452fca7d2 * ietf/tests.py, in reduce(): add ad-hoc fix for pathologic case of not
closing <li> tags.  BeautifulSoup can handle it, but the recursive text
   rendering code in soup2text recurses too deeply with a sufficiently long
   list...
 * ietf/tests.py, in setUp(): grab the right tuple element when extracting
   the URLs from the url test tuples
 * ietf/tests.py, in read_testurls(): close opened file
 * ietf/tests.py, in doUrlsTest(): narrower try/except clause, and a new one
 * soup2text.py, in para(): undo previous change
 - Legacy-Id: 304
2007-06-11 06:13:29 +00:00
Henrik Levkowetz b42e0728c8 Accept both testurl.list and testurls.list as test url list file names. Output status for good compares, too.
- Legacy-Id: 303
2007-06-11 04:43:22 +00:00
Henrik Levkowetz 2403b0b531 Enabled the temporarily disabled fallback URL tests.
- Legacy-Id: 298
2007-06-10 20:30:43 +00:00
Henrik Levkowetz 04f8f1ca0d Commenting out some diagnostic printouts. Changing the summary format so it differs from the primary result lines.
- Legacy-Id: 296
2007-06-10 18:37:50 +00:00
Henrik Levkowetz 6d5afa514a Adding diff file for an IPR url, and some ipr/tests.py tweaks.
- Legacy-Id: 294
2007-06-10 18:19:42 +00:00
Henrik Levkowetz b6c7aed469 Adding a recognizable tag for the diffs, for use by the buildbot
- Legacy-Id: 291
2007-06-10 16:40:55 +00:00
Henrik Levkowetz 06eae09af4 Removing unused imports from ietf/tests.py. Using the right Exception type in soup2html.
- Legacy-Id: 283
2007-06-10 11:43:19 +00:00
Henrik Levkowetz 0e1bda0997 Adding diff capability to the URL tests.
If you list a second url or file on a line in an urltest.list file, the
second url will be downloaded, both urls will be converted to text, and
then compared.  If there are differences, a unified diff will be output.
 - Legacy-Id: 278
2007-06-10 11:30:23 +00:00
Henrik Levkowetz f55e0b00f9 * Adding a SERVER_EMAIL setting in settings.py and settings_local_test.py
* Adding the ability to take trailing comments in testurl.list files
 * Listing skipped (not tested) urls in the URL test
 - Legacy-Id: 262
2007-06-08 17:01:07 +00:00
Henrik Levkowetz 027d471dd0 Changing the default email-from address used whentesting, and tweaking the test output
- Legacy-Id: 261
2007-06-08 16:01:52 +00:00
Henrik Levkowetz a99d598cc0 * Minor refactoring in ietf/tests.py
* Added correct dates for two entries in ipr_detail which had 0000-00-00,
   in the sql_fixup.sql file
 * Fixed test/run so it can be run from any directory
 - Legacy-Id: 258
2007-06-08 12:06:15 +00:00
Henrik Levkowetz 88666eac59 Some bugfixes after refactoring
- Legacy-Id: 257
2007-06-07 20:40:50 +00:00
Henrik Levkowetz 73bd413e07 A bit of refactoring in ietf/tests.py
- Legacy-Id: 256
2007-06-07 20:12:52 +00:00