Commit graph

166 commits

Author SHA1 Message Date
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
Bill Fenner 2d9cc036a6 If we're passed in None, don't try to get the domain name out of it.
- Legacy-Id: 260
2007-06-08 15:48:09 +00:00
Bill Fenner 3cd72bc1fe Great leaps towards completing the mailing list request tool.
- Legacy-Id: 259
2007-06-08 15:30:34 +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
Bill Fenner e851dbac27 Create mailing list domains table and idtracker Roles model.
Add fixtures to populate IAD into Roles and existing domains
and authorizers into mailinglists_domains.  (The Roles fixture
will become wrong when we get a new IAD so should be removed
after the production database has this value.)
 - Legacy-Id: 255
2007-06-07 17:58:06 +00:00
Henrik Levkowetz b93c34d7bb Removing 200-response non-parameter url from the testurl.list; they are better handled by the fallback test.
- Legacy-Id: 254
2007-06-07 17:40:06 +00:00
Henrik Levkowetz 6ac5172c90 Updated pyflakes exceptions
- Legacy-Id: 253
2007-06-07 15:30:06 +00:00
Henrik Levkowetz 79ca952b76 ietf/test/run is a simple shell-script which runs the same test set as the buildbot, using a patched local Django copy in order to run the Django test framework. This makes it possible to run the test suite locally before committing, rather than committing in order to have the buildbot run the tests. Some tests on the fully populated database takes a long time (such as retrieving all the IDs) and probably should be moved to a separate test set.
- Legacy-Id: 252
2007-06-07 14:22:48 +00:00
Henrik Levkowetz 742737251f Adding a placeholder HTTP 500 error page template
- Legacy-Id: 251
2007-06-07 14:17:09 +00:00
Henrik Levkowetz 7962e722d3 Adding HTTP 404 error page template
- Legacy-Id: 250
2007-06-07 14:11:43 +00:00
Henrik Levkowetz edc55bcf05 Adding a wrapper around pyflakes to filter out warnings which have been inspected and should be ignored.
- Legacy-Id: 249
2007-06-06 19:35:40 +00:00
Henrik Levkowetz 8b17a99d22 Removing explicit listing of URLs caught by the fallback URL test.
- Legacy-Id: 248
2007-06-06 19:34:16 +00:00
Michael Lee ac82271bcb Update IESG Announcement scripts to work with latest models and template changes.
- Legacy-Id: 247
2007-06-06 05:11:06 +00:00
Bill Fenner 7fec55b633 Initial implementation of view_related. The related_docs() function
is still a work in progress.  I've been using
draft-ietf-dnsext-dnssec-protocol as a test case; related_docs()
returns the same 137 documents as the cgi code but some of the
relationships are different.  Right now, the skip argument is
ignored.
 - Legacy-Id: 246
2007-06-06 02:14:29 +00:00
Henrik Levkowetz f5027059b3 Corrected some test URLs. (should be changed later to not use underscore -- or we should change all dashes to underscore...)
- Legacy-Id: 245
2007-06-05 19:02:27 +00:00
Henrik Levkowetz cf878dc7a5 Some more permitted codes
- Legacy-Id: 244
2007-06-05 18:57:17 +00:00
Henrik Levkowetz 5e6a346ddc Should not compare apples and oranges
- Legacy-Id: 243
2007-06-05 18:48:14 +00:00
Henrik Levkowetz 49f8de31b4 Permitting both 404 and 200 responses for some URLs, for now; till we can run tests with a populated database
- Legacy-Id: 242
2007-06-05 18:43:48 +00:00
Henrik Levkowetz 24400ff103 Adding handler404 and handler 500 in the right place ,;-)
- Legacy-Id: 241
2007-06-05 18:18:40 +00:00
Bill Fenner 3754c0c6b4 Initial list wizard templates.
- Legacy-Id: 240
2007-06-05 18:05:57 +00:00
Henrik Levkowetz 1523f859af Adding 'handler404, hadler500' to apps needing them
- Legacy-Id: 239
2007-06-05 17:54:43 +00:00
Henrik Levkowetz e0a30980fa Can't use the mysql XML dump as fixture -- too optimistic! ;-)
- Legacy-Id: 238
2007-06-05 17:40:06 +00:00
Henrik Levkowetz 2f8f7742a4 Improved fix to the first undefined symbol problem in proceedings/models.py (Bills original fix in [213] reinstated)
- Legacy-Id: 237
Note: SVN reference [213] has been migrated to Git commit 01f0baaf56
2007-06-05 17:30:22 +00:00
Henrik Levkowetz 888418a14f Fixed two instances of undefined symbols in proceedings/models.py
- Legacy-Id: 236
2007-06-05 17:06:31 +00:00
Henrik Levkowetz 03c18bd33d Fixing a bunch of nits pyflakes were complaining about, in order to get a clean run. There are still at least 2 cases of using undefined values which needs scrutiny.
- Legacy-Id: 235
2007-06-05 16:58:58 +00:00
Bill Fenner 595c656afc Require a login instead of throwing an exception when an anonymous
user visits.

Handle a lack of UserMap or an incorrect PersonOrOrgInfo by
passing None to the template.
 - Legacy-Id: 234
2007-06-05 15:10:15 +00:00
Henrik Levkowetz 5c9e46027b Try to make the utils/listop functions return something sensible with empty input.
- Legacy-Id: 233
2007-06-05 15:05:31 +00:00
Henrik Levkowetz 47a88da313 Separate response count listing and assertions
- Legacy-Id: 232
2007-06-05 10:16:17 +00:00
Henrik Levkowetz fbcd9eddf3 Added test assertions requiring no non-200 responses and no exceptions for URLs not listed in the testurls.list
- Legacy-Id: 231
2007-06-05 10:14:24 +00:00
Henrik Levkowetz b7c816cf4e Added test functionality to extract all URLs in the apps and access those that
doesn't seem to take parameters.
 - Legacy-Id: 230
2007-06-05 10:11:18 +00:00
Henrik Levkowetz 745ae10965 Added some more internal IPs
- Legacy-Id: 229
2007-06-05 10:09:24 +00:00
comimom b73efa811a Complete Meeting Materials page
* Tested with IETF 67 and 68 data.
 * For testing, c_sub_cut_off_date should set to future date, otherwise a Closed page will show.
 - Legacy-Id: 228
2007-06-04 19:52:52 +00:00
Henrik Levkowetz 8ff20e3127 Expanded the test code which finds urlpatterns to extract all URLs
specified in the various Django apps of the site.  Also fixed the
documentation of the TemplatedForm factory to be more correct.
 - Legacy-Id: 227
2007-06-04 19:26:16 +00:00
Bill Fenner 4e25407e25 Use python module instead of file path to settings file.
Switch back to using a temp file, since unflatten/gvpr don't
like taking input straight from the while loop.
 - Legacy-Id: 226
2007-06-04 13:54:29 +00:00
Bill Fenner 688b4fdd43 Use revision_display to decrease the version number appropriately
- Legacy-Id: 225
2007-06-04 13:53:17 +00:00
Bill Fenner cae902a373 Add two middleware classes:
- SQLLogMiddleware.  This logs any INSERT or UPDATE performed by
a request.

- SMTPExceptionMiddleware.  This renders a "please try again"
(template email_failed.html) message when an attempt to send
email failed.  This uses a bit of a hack, in that the middleware
looks explicitly for smtplib.SMTPException, and smtplib can
raise other exceptions (particularly socket errors).  utils/mail/send_smtp
catches all exceptions and reraises non-smtplib exceptions as
fake smtplib exceptions, and the middleware undoes the wrapping.
 - Legacy-Id: 224
2007-06-04 13:52:34 +00:00
Henrik Levkowetz 600002f1f8 Cleaning out miscellaneous non-functional stuff from ietf/meeting/models.py
- Legacy-Id: 223
2007-06-04 00:50:48 +00:00
Henrik Levkowetz d5c66de1a1 Removing superfluous import
- Legacy-Id: 222
2007-06-04 00:46:40 +00:00
Henrik Levkowetz ae323e9181 Removing ietf/query.py which isn't being used
- Legacy-Id: 221
2007-06-04 00:43:21 +00:00
Henrik Levkowetz 8953e1a647 Turning off the test error for missing test URLs for now
- Legacy-Id: 220
2007-06-04 00:32:20 +00:00
Henrik Levkowetz eedd6a8e8c Made URL check code accept comment lines and empty lines in URL file.
Commented out broken URLs in the testurl.list
Fixed a missing import in ipr/views.py
 - Legacy-Id: 219
2007-06-03 23:39:02 +00:00
Henrik Levkowetz 3d4e9286c2 Minor tweaks to test output
- Legacy-Id: 218
2007-06-03 22:43:43 +00:00
Henrik Levkowetz c7230247b1 Making the url test more verbose. Adding an initial list of urls to test.
- Legacy-Id: 217
2007-06-03 21:21:29 +00:00
Henrik Levkowetz 4cfe601ed7 Moving and updating the svn copy of the buildbot master config
- Legacy-Id: 216
2007-06-03 20:26:55 +00:00
Henrik Levkowetz 9bced60e2f Added a top-level test module which will run through django URLs in any
committed file named 'testurl.list' in any directory in the ietf/ tree.
There is also a test for URL coverage -- if there isn't declared test
URLs for all the url patterns in ietf/urls.py this coverage test will
fail.
 - Legacy-Id: 215
2007-06-03 19:52:06 +00:00
Bill Fenner 1d54ad36c9 Use a known exception when there are too many path arguments (in bits)
- Legacy-Id: 214
2007-06-02 01:15:59 +00:00
Bill Fenner 01f0baaf56 Fix some undefined names reported by pyflakes
- Legacy-Id: 213
2007-06-02 01:12:41 +00:00
Bill Fenner faf885aabd MailingList model updates:
- Add domain helper function to default domain name to ietf.org
- Use correct values for post_who

Template updates:
- Use the domain helper function
- Use the post_who_display helper function
- Move some of the items that could wrap to the next line
 - Legacy-Id: 212
2007-06-01 20:40:21 +00:00