Robert Sparks
73b0831b57
Replumbed how SMTP Exceptions are handled, which involved refactoring several mail functions
...
- Legacy-Id: 7635
2014-04-24 18:29:01 +00:00
Henrik Levkowetz
fe5d53fc40
Merged in [7591] from rjsparks@nostrum.com:
...
Adds a real (if simple) SMTP server to the test framework and tests handling of exceptions and rejected addresses. Fixes ticket #1314 .
- Legacy-Id: 7613
Note: SVN reference [7591] has been migrated to Git commit 54919f01343995ab154d27dcfaf7a60b15dd5eee
2014-04-16 19:40:57 +00:00
Henrik Levkowetz
454c9d83cb
Fixed support for verbosity and overwrite flags for the import_htpasswd command, which was lost in [7583].
...
- Legacy-Id: 7585
Note: SVN reference [7583] has been migrated to Git commit 4c0d52d9ed
2014-04-09 18:34:18 +00:00
Henrik Levkowetz
4c0d52d9ed
Split out the actual htpasswd import functionality from the BaseCommand subclass, so we can call it from elsewhere.
...
- Legacy-Id: 7583
2014-04-09 18:28:42 +00:00
Henrik Levkowetz
156b0d4e3a
Changed the code to use django's own authentication, instead of http basic auth. This will let people log out, and will also use stronger password hashing than basic auth. Added a login page, and logout links, and links from the logged in username (in the upper right corner) to the user's profile page.
...
- Legacy-Id: 7580
2014-04-07 18:56:44 +00:00
Henrik Levkowetz
b02b0a96df
All tests pass, except for some pyflakes tests which I believe are fixed in trunk.
...
- Legacy-Id: 7579
2014-04-06 20:04:36 +00:00
Henrik Levkowetz
3a3b386a0e
A htpasswd import script, for the transition from basic http auth to Django native authentication.
...
- Legacy-Id: 7578
2014-04-06 17:20:31 +00:00
Henrik Levkowetz
8c42989d5d
Pyflakes cleanup compliant with pyflakes 0.8.1, which seems to find things 0.8.0 didn't fin.
...
- Legacy-Id: 7558
2014-04-01 16:25:18 +00:00
Henrik Levkowetz
af4c6e253c
Exclude empty email addresses from the send list.
...
- Legacy-Id: 7552
2014-03-27 22:09:37 +00:00
Henrik Levkowetz
0643f3c542
Added a pyflakes test.
...
- Legacy-Id: 7505
2014-03-16 18:24:31 +00:00
Henrik Levkowetz
b9cbb236dd
Renamed flakes.py to pyflakes, and fixed the import setup so it won't try to import itself. Added verbosity control.
...
- Legacy-Id: 7502
2014-03-16 18:16:37 +00:00
Henrik Levkowetz
6606538453
Fixed mistaken outcomment.
...
- Legacy-Id: 7497
2014-03-16 07:48:59 +00:00
Henrik Levkowetz
49edc7404e
Made ietf/utils pyflakes-clean.
...
- Legacy-Id: 7496
2014-03-16 07:26:03 +00:00
Henrik Levkowetz
02031a01b9
Cleaned out some (arbitrary) submodule name imports into ietf.utils, and made the corresponding import statements import the names directly from the correct submodules.
...
- Legacy-Id: 7495
2014-03-16 07:09:38 +00:00
Henrik Levkowetz
b9c38d3c06
Merged pyflakes fixes forward to new copy of trunk.
...
- Legacy-Id: 7463
2014-03-15 16:27:05 +00:00
Henrik Levkowetz
5bef5d11ae
Made doc/ pyflakes-clean.
...
- Legacy-Id: 7462
2014-03-15 16:09:47 +00:00
Henrik Levkowetz
b91524fabc
Merged [7368] from rjsparks@nostrum.com: Improves the detail in the messages sent when creating tickets about failed sent email.
...
Changes a locally defined exception name to look less like one already defined in smtplib.
This is related to ticket #1208 .
- Legacy-Id: 7382
Note: SVN reference [7368] has been migrated to Git commit 08f13239c9beb6dcb0be978e800b82c4104b61e7
2014-03-01 18:13:43 +00:00
Henrik Levkowetz
0eefa5760c
Added a management command to run pyflakes, with the added feature of being able to mark individual lines with # pyflakes:ignore, which is needed in some cases.
...
- Legacy-Id: 7367
2014-02-25 20:22:20 +00:00
Henrik Levkowetz
3f55454724
Merged [7292] from rjsparks@nostrum.com: Allow 1-3 digit RFCs in status change documents.
...
Fixes bug #1321
- Legacy-Id: 7295
Note: SVN reference [7292] has been migrated to Git commit 31808eccb2
2014-02-24 23:10:21 +00:00
Robert Sparks
31808eccb2
Allow 1-3 digit RFCs in status change documents.
...
Fixes bug #1321
Commit ready for merge
- Legacy-Id: 7292
2014-02-24 15:43:32 +00:00
Henrik Levkowetz
9ea9ba1d66
Merged in [7138] from rjsparks@nostrum.com:
...
Reworked SMTP Exception handling, adding sending a ticket to the secretariat when there are errors handing messages off for delivery.
Added SMTP exception handling to send-scheduled-mail.
This is related to ticket #1208
- Legacy-Id: 7256
Note: SVN reference [7138] has been migrated to Git commit 64727c1c33
2014-02-17 18:55:37 +00:00
Henrik Levkowetz
5d1bdde730
Added control by the --verbosity switch of the not loaded template test and not tested urls test, so they only will be run for verbosity greater than 1.
...
- Legacy-Id: 7244
2014-02-16 16:49:34 +00:00
Henrik Levkowetz
35cadc1763
Don't show deprecation warning during tests for verbosity < 2
...
- Legacy-Id: 7205
2014-02-04 21:35:19 +00:00
Ole Laursen
e2554a6a0c
It turns out that Django resetting the user if REMOTE_USER is not passed in is a problem on live to, so switch the whole code base to using the middleware to set REMOTE_USER from the logged in user if not passed in from the outside
...
- Legacy-Id: 7167
2014-01-24 14:30:00 +00:00
Ole Laursen
591e90a7a0
Put a proper command-line interface on the test crawler, spit out number of errors (if any), also add wrapper script for running the test-crawler and idindex generation scripts, in the future other (safe, non-mutating) scripts operating on real data can be added too
...
- Legacy-Id: 7107
2014-01-12 16:55:42 +00:00
Ole Laursen
86f2baea0a
Move group feed from wgcharter (where it historically ended up) to wginfo, add test
...
- Legacy-Id: 7086
2014-01-09 16:24:54 +00:00
Ole Laursen
954c8fcedb
Fix spelling mistake in patterns that are ignored in coverage check
...
- Legacy-Id: 7080
2014-01-08 17:41:40 +00:00
Ole Laursen
8dc19fd17e
Improve the coverage checker, skip some trivial views (redirects and
...
flat templates)
- Legacy-Id: 7078
2014-01-08 17:00:37 +00:00
Ole Laursen
cb4d5b7c2b
Simplify make_test_data a bit by using the create_person helper for the chair and WG delegate, regularize the naming of those
...
- Legacy-Id: 6990
2013-12-18 16:27:02 +00:00
Ole Laursen
72e36bde55
Don't output coverage data if there are test failures
...
- Legacy-Id: 6959
2013-12-17 10:08:12 +00:00
Ole Laursen
beda4bafcd
Fix bug with coverage testing
...
- Legacy-Id: 6937
2013-12-16 13:06:41 +00:00
Ole Laursen
7aa3737c3b
Reenable RemoteUserMiddleware, it turns out the Secretariat tests are
...
using REMOTE_USER to auth instead of logging in - instead include a
little middleware class that adds the REMOTE_USER header during
testing.
Also fix problem with the empty test_label hack not working with
double-dotted Secretariat apps.
- Legacy-Id: 6935
2013-12-16 12:59:27 +00:00
Ole Laursen
77e03c7355
Fix bugs in stream edit test
...
- Legacy-Id: 6933
2013-12-16 11:55:15 +00:00
Ole Laursen
7f25469c6b
Drop the group/person/role global fixtures, the fixture loader in
...
Django 1.6 refuses to load them because they have dangling foreign
keys, and in rewriting them it turns out it is easier to do so in code
- so refactor the test data generation code to have a separate
function with the unchanging base data and call that from the global
fixture setup
- Legacy-Id: 6917
2013-12-13 15:58:36 +00:00
Ole Laursen
c9984e40fc
Call base class fixture handling in perma_fixtures hack rather than
...
duplicating the (now incorrect) code from the base class
- Legacy-Id: 6915
2013-12-13 15:39:34 +00:00
Ole Laursen
b4706af925
Fix problem with tests and RemoteUserMiddleware - it interferes with
...
the tests, also fix bug in previous test runner refactor
- Legacy-Id: 6914
2013-12-13 15:37:04 +00:00
Ole Laursen
dec6862787
Make GLOBAL_TEST_FIXTURES support Python functions as fixtures
...
- Legacy-Id: 6906
2013-12-13 13:13:03 +00:00
Ole Laursen
c470e57dae
Port test runner to new Django interface
...
- Legacy-Id: 6903
2013-12-13 11:22:40 +00:00
Ole Laursen
cfa0d47ca0
Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django
...
- Legacy-Id: 6878
2013-12-11 16:36:09 +00:00
Ole Laursen
3053bef4cc
Resurrect URL coverage making it work with all tests, and move it to the test runner together with the template coverage report
...
- Legacy-Id: 6844
2013-12-07 19:31:32 +00:00
Ole Laursen
f6fa699992
Fix MultiEmailField to use validate_email for validation
...
- Legacy-Id: 6835
2013-12-07 12:54:24 +00:00
Ole Laursen
58afa08edf
Remove import of unused FKAsOneToOne
...
- Legacy-Id: 6834
2013-12-07 12:49:32 +00:00
Ole Laursen
924d58f935
Remove model field utilities that were needed because of brokenness in the old schema
...
- Legacy-Id: 6833
2013-12-07 12:37:29 +00:00
Ole Laursen
3e709e3f24
Remove proxies
...
- Legacy-Id: 6826
2013-12-07 12:01:57 +00:00
Ole Laursen
bb2d070679
Redo tests for IPR to cover all views, fix some bugs and add some
...
finishing touches
- Legacy-Id: 6779
2013-12-03 18:33:07 +00:00
Ole Laursen
9457669310
Merge in changes from the old shimfree branch
...
- Legacy-Id: 6764
2013-11-27 12:55:50 +00:00
Ole Laursen
6174e72036
Rename unique key to random key as it is not really unique, add function for generating an access token from the key
...
- Legacy-Id: 6716
2013-11-15 16:07:10 +00:00
Ole Laursen
e98abbf56d
Change the port accepted for debug purposes to 2025 instead of 1025 to
...
not conflict with the port on the live server
- Legacy-Id: 6715
2013-11-15 13:55:10 +00:00
Ole Laursen
fd01ddd215
Make the mail code detect USING_DEBUG_EMAIL_SERVER which if set to
...
true and EMAIL_HOST and EMAIL_PORT is set to localhost:1025 will turn
on debugging which essentially makes it send emails; also added
instructions for starting the debugging SMTP server bundled with
Python
python -m smtpd -n -c DebuggingServer localhost:1025
in a comment near the code
- Legacy-Id: 6713
2013-11-15 12:57:31 +00:00
Ole Laursen
322e15e9a9
Add generate_unique_key utility for generating access tokens (like
...
abda31fee90aabe...)
- Legacy-Id: 6712
2013-11-15 12:52:33 +00:00