Henrik Levkowetz
2687c8d839
Added a workaround for libmagic mislabelling plain text content with a line beginning with 'virtual' as text/x-c++.
...
- Legacy-Id: 14586
2018-01-30 08:29:21 +00:00
Henrik Levkowetz
a3d1d5595d
Added an option to list the slugs that can be used with the generate_apache_perms management command.
...
- Legacy-Id: 14576
2018-01-26 22:40:48 +00:00
Henrik Levkowetz
fd01a612b7
Added a management command to generate apache 'Require user ...' stanzas from group:type:role specifications.
...
- Legacy-Id: 14574
2018-01-26 20:43:40 +00:00
Henrik Levkowetz
d6e4404d63
Only do coverage set/reset operations if we're in test mode. Fixes a 500 error during draft submission yang checking.
...
- Legacy-Id: 14569
2018-01-25 11:31:38 +00:00
Henrik Levkowetz
008eaf7fda
Modified the run_yang_model_checks management command to accept document aliases on the command line.
...
- Legacy-Id: 14443
2017-12-19 14:09:40 +00:00
Henrik Levkowetz
6567e707ce
Merged in ^/personal/henrik/6.64.2-ballotapi@14426. This provides personal API keys and a ballot position API at /api/iesg/position. Also added an endpoint description at /api/.
...
- Legacy-Id: 14430
2017-12-17 23:43:44 +00:00
Henrik Levkowetz
a08c8dc76f
Added an API endpoint to support automation of IESG ballot position posting, at /api/iesg/position. Added tests for the API endpoint, and updated the apikey validation decorator tests. Tweaked the decorator to handle a weakness found during testing.
...
- Legacy-Id: 14429
2017-12-17 21:55:27 +00:00
Henrik Levkowetz
b0863c8963
Modified some names.
...
- Legacy-Id: 14428
2017-12-16 18:43:08 +00:00
Henrik Levkowetz
ec4e238185
Added some missing files.
...
- Legacy-Id: 14427
2017-12-16 18:39:26 +00:00
Henrik Levkowetz
e7209c6e50
Added a new personal event table to keep track of personal API key logins, and a management command to send out reports about activity to users with API keys. Added a weekly cronjob script to trigger weekly reports, and a monthly script for future use. Added a @require_api_key decorator to validate API keys for API key views and log in the API key owner. Modified the API key management urls to use create and disable rather than add and delete. Updated the API key list view. Added an API placeholder view function for ballot position setting, for test purposes. Added tests for the decorator and management command.
...
- Legacy-Id: 14426
2017-12-16 18:37:52 +00:00
Henrik Levkowetz
152261a869
Added new infrastructure for personal API keys, to generate, view, and delete them.
...
- Legacy-Id: 14423
2017-12-14 14:30:59 +00:00
Henrik Levkowetz
660c81c272
Tweaked the file content read refactoring in [14406] to try latin-1 conversion if unicode doesn't work.
...
- Legacy-Id: 14410
Note: SVN reference [14406] has been migrated to Git commit 967ece7e7d
2017-12-10 17:48:09 +00:00
Henrik Levkowetz
967ece7e7d
Started refactoring of reading text from document files (drafts, charters, etc.) in order to normalise on one way of doing this, and making that return unicode rather than undecoded bytes. This is the first step of two, in order to gauge the possible issues and report on discrepancies.
...
- Legacy-Id: 14406
2017-12-08 21:51:11 +00:00
Henrik Levkowetz
3cd3c3526f
Tweaked the coverage_changes management comand output.
...
- Legacy-Id: 14402
2017-12-06 13:31:33 +00:00
Henrik Levkowetz
57c18ef3fe
Changed settings and handling of adhoc wiki paths to be more testing-friendly.
...
- Legacy-Id: 14390
2017-12-04 15:09:03 +00:00
Henrik Levkowetz
47a0b9d3ce
Changed handling of yang modeules from drafts with errors, to not place them in separate directories, due to possible follow-on effects. Added use of IANA-held modules when validating, and regular rsyncing from IANA.
...
- Legacy-Id: 14389
2017-12-04 14:37:15 +00:00
Henrik Levkowetz
98d234cd86
Refactored the handling of BallotDocEvent in tests, only creating them as needed, in preparation for stricter checks on state transitions to avoid mismatches between state and ballot.
...
- Legacy-Id: 14380
2017-11-30 16:02:31 +00:00
Henrik Levkowetz
b29e096f92
Added a test for the IESG past documents page, and tweaked some test documents to have titles.
...
- Legacy-Id: 14303
2017-11-04 16:15:39 +00:00
Henrik Levkowetz
260bac9346
Updated some tests to match api views refactoring.
...
- Legacy-Id: 14295
2017-11-03 16:42:09 +00:00
Henrik Levkowetz
3269a696fe
Variable naming fix
...
- Legacy-Id: 14286
2017-11-03 10:36:50 +00:00
Henrik Levkowetz
23a3056260
Fixed a typo.
...
- Legacy-Id: 14270
2017-11-01 14:51:08 +00:00
Henrik Levkowetz
6e23f99019
Improved the help message for the run_yang_model_checks management command.
...
- Legacy-Id: 14267
2017-11-01 14:39:53 +00:00
Henrik Levkowetz
48fe02d58c
Permit tildes in romanization of draft author names when looking for draft authors. Can be used in romanization of arabic names.
...
- Legacy-Id: 14256
2017-11-01 11:51:24 +00:00
Henrik Levkowetz
af64f0e064
Fixed a call parameter list discrepancy.
...
- Legacy-Id: 14252
2017-11-01 05:07:35 +00:00
Henrik Levkowetz
09d8ad1e1b
Fixed some pyflakes issues.
...
- Legacy-Id: 14238
2017-10-30 11:47:05 +00:00
Henrik Levkowetz
1a7e9b619a
Added support for ad-hoc trac instances, with arbitrary names and filesystem paths, but still bound to a particular group's roles for management of trac admin rights.
...
- Legacy-Id: 14232
2017-10-30 11:10:15 +00:00
Henrik Levkowetz
9be7d57a03
Tweaked the test-runner random state handling to display the correct random state filename and make sure to set the same random state.
...
- Legacy-Id: 14209
2017-10-14 12:05:01 +00:00
Henrik Levkowetz
0e00adc5ee
Another tweak to the draft author extraction code, to handle some name transliterations using multiple leading grave accents.
...
- Legacy-Id: 14149
2017-09-21 09:28:18 +00:00
Henrik Levkowetz
2c1438c240
Moved unidecode_name from utils.text to person.name.
...
Modified UserFactory to use a new locale for each new user, instead of the
same locale for a whole test run. This (almost) ensures the exercise of
code to deal with non-ascii names, something which would not happen if a
locale with ascii names was chosen at the start of a run.
Modified name.initials() to not use non-word characters as initials.
Modified unidecode_name() to do more normalization, to conform to the
conventions used in internet-drafts.
Added saving of the factory-boy random state in order to be able to re-run
a test suite with the same pseudo-random sequence as in a previous failed
run.
Fixed an issue with email formatting in test_api_submit_ok().
Modified the draft author extraction code to deal better with names with
embedded apostrophes.
- Legacy-Id: 14141
2017-09-20 15:36:30 +00:00
Henrik Levkowetz
1530a6c394
Added a new TestCase assertion: assertMailboxContains(), to be able to better express some test cases.
...
- Legacy-Id: 14139
2017-09-19 19:47:48 +00:00
Henrik Levkowetz
33b275b04f
Added ietf.utils.text.unidecode_name() and replaced various uses of unidecode() with it, in order to normalize the generation of ascii versions of names, to avoid different practices in space stripping and space normalization in different parts of the code.
...
- Legacy-Id: 14128
2017-09-17 15:12:18 +00:00
Henrik Levkowetz
9f785c0dce
Tweaked the test util function create_person() to create ascii-only .ascii fields, which it did not do before.
...
- Legacy-Id: 14123
2017-09-16 09:21:45 +00:00
Henrik Levkowetz
aafd6290a6
Added an option to ietf.utils.draft.Draft to pull document name from the source file name.
...
- Legacy-Id: 14089
2017-08-31 14:48:43 +00:00
Henrik Levkowetz
aaccbba6e8
Fixed a bug in coverage_changes.
...
- Legacy-Id: 14037
2017-08-10 10:53:59 +00:00
Henrik Levkowetz
1eeaf49c5c
Added an error exit when the test runner is invoked with incompatible switches (--parallel and --html-report)
...
- Legacy-Id: 14024
2017-08-02 13:00:16 +00:00
Henrik Levkowetz
4dad8cdf9a
Added a test to check for missing admin models, and added the admin models that were currently missing.
...
- Legacy-Id: 14021
2017-08-01 14:00:29 +00:00
Henrik Levkowetz
138f3d7382
Fixed a variable initialization issue.
...
- Legacy-Id: 14009
2017-07-30 14:33:34 +00:00
Henrik Levkowetz
2070a4efcf
Fixed a pyflakes issue.
...
- Legacy-Id: 14008
2017-07-30 13:55:30 +00:00
Henrik Levkowetz
8a53653682
Added detailed line-by line changes in code coverage to the coverage_changes management command. Use verbosity 2 or higher.
...
- Legacy-Id: 14007
2017-07-30 13:50:06 +00:00
Henrik Levkowetz
d00921b94b
Added a new release-coverage format which whould make it easier to show line-by-line code test coverage changes in the future.
...
- Legacy-Id: 13967
2017-07-24 17:38:00 +00:00
Henrik Levkowetz
2de6855ccd
Fixed a time arithmetics issue in meeting cutoff date methods
...
- Legacy-Id: 13966
2017-07-23 14:47:46 +00:00
Henrik Levkowetz
15f8b4504e
Change the test telechat dates so that the first active telechat doesn't change to lie in the past if the tests are run across midnight.
...
- Legacy-Id: 13889
2017-07-15 10:01:35 +00:00
Henrik Levkowetz
86b252c90e
Some refactoring of the agenda and minutes validation work.
...
- Legacy-Id: 13850
2017-07-13 10:42:48 +00:00
Henrik Levkowetz
46fc7b77fd
Added more validation of extension, mime type, etc. for uploaded meeting agendas and minutes. Added '.md' (markdown) as an accepted file type. Html with frames is now rejected. Factored out validation code into separate functions.
...
- Legacy-Id: 13849
2017-07-12 22:45:57 +00:00
Henrik Levkowetz
d2395f9521
Merged in [13832] from rjsparks@nostrum.com:
...
Treat Area Groups similar to Working Groups and Research Groups where it makes sense to do so.
- Legacy-Id: 13836
Note: SVN reference [13832] has been migrated to Git commit 2c92aa213d
2017-07-11 21:57:01 +00:00
Robert Sparks
2c92aa213d
Treat Area Groups similar to Working Groups and Research Groups where it makes sense to do so. Commit ready for merge.
...
- Legacy-Id: 13832
2017-07-11 19:12:21 +00:00
Henrik Levkowetz
95ddc35eae
Added wiki creation for groups in state 'bof'
...
- Legacy-Id: 13829
2017-07-11 16:06:00 +00:00
Henrik Levkowetz
2c39de61ab
Replaced the local copy of the draft/rfc htmlization code with rfc2html as installed modeule.
...
- Legacy-Id: 13827
2017-07-11 13:52:08 +00:00
Henrik Levkowetz
eceed7476d
Added the html_report switch setting to the test runner object.
...
- Legacy-Id: 13822
2017-07-09 18:10:51 +00:00
Henrik Levkowetz
ca921fe45d
Added a switch to control generation of the code coverage html report, which now defaults to false. The report can be generated post-testing with "coverage html -d static/coverage/".
...
- Legacy-Id: 13821
2017-07-09 16:50:38 +00:00