aboutsummaryrefslogtreecommitdiff
path: root/ca/tests/yamltest.py
AgeCommit message (Collapse)Author
2016-05-07Oops, TeX-style "--" numeric ranges in copyright comments are bad fitRob Austein
for XML. Apparently we were carefully changing just the XML files to use a single "-" to work around this. Enough already, just convert all copyright year ranges to single "-" and have done with this. svn path=/branches/tk705/; revision=6427
2016-05-07More copyright notices, what fun.Rob Austein
svn path=/branches/tk705/; revision=6426
2016-04-26Further consolidation of config file parsing, command line parsing,Rob Austein
and logging setup. Most programs now use the unified mechanism, although there are still a few holdouts: the GUI, which is a special case because it has no command line, and the rpki-rtr program, which, for historical reasons has its own implementation of the logging setup infrastructure. svn path=/branches/tk705/; revision=6390
2016-04-23Add yamltest code to set up TAL and root certificate correctly underRob Austein
new scheme. Rewrite pubd code which was whacking top-level certificate files with names other than "root.cer". svn path=/branches/tk705/; revision=6380
2016-04-23Remove a whole lotta rootd stuff.Rob Austein
svn path=/branches/tk705/; revision=6377
2016-04-23Internal root sort of working, but only sort of. It's skipping theRob Austein
worker CA and going straight from the root to certifying children, which is wrong. However...this is far enough along that we can now remove all the rootd glorp, which is a worthwhile simplification in its own right, so checkpoint here, remove rootd glorp, then figure out what's wrong with the internal certificate hierarchy. rcynic does validate the current output, given a manually constructed TAL, even if the current output isn't quite what it should be. So we should also be able to sort out the new TAL generation code now. Yes, checking in a version that works for the wrong reasons is weird, but the current sort-of-broken state lets us confirm that the lower levels of the tree are still correct as we go, which would be much harder if the poor thing just sat there and whimpered until we had the new internal CA code completely finished. svn path=/branches/tk705/; revision=6376
2016-04-12Pull rpkic <group> fix from trunk.Rob Austein
I think Subversion's merge tracking data is turning into cream cheese. svn path=/branches/tk705/; revision=6360
2016-04-09Avoid setuid antics when starting GUI from yamltest.Rob Austein
svn path=/branches/tk705/; revision=6352
2016-02-18Whack yamltest.py until it works again with latest changes to rpkic, etc.Rob Austein
svn path=/branches/tk705/; revision=6269
2016-01-23Add multiple-URI TAL support to rcynicng.Rob Austein
Whack CA tools with a club until rcynicng works with our CA RRDP implementation. Add makemigrations target to top-level Makefile; this is a bit of a kludge, but sure beats doing this by hand. svn path=/branches/tk705/; revision=6230
2016-01-06Add minimal HTTPS server to yamltest, for RRDP testing.Rob Austein
svn path=/branches/tk705/; revision=6217
2015-11-11Configure pylint to use the pylint-django plugin, which (mostly)Rob Austein
understands Django's exotic metaclasses, which in turn allows us to re-enable a number of pylint checks we had disabled. While we were at this, stripped out a bunch of old pylint pragmas, then added back the subset that were really needed. As usual with pylint, this turned up a few real bugs along with an awful lot of noise. svn path=/branches/tk705/; revision=6162
2015-10-26Add warning about CSRF issues when simulating multiple GUI instancesRob Austein
under yamltest. No obvious way to tell Django's CSRF protection to allow this, not entirely sure we'd want to do so even if we could. svn path=/branches/tk705/; revision=6154
2015-10-26Whack a few things stale imports and Django 1.6-isms to get GUIRob Austein
running with new code base. Now working with $ yamltest.py --sql mysql --gui smoketest.1.yaml svn path=/branches/tk705/; revision=6153
2015-10-26"Any programmer who fails to comply with the standard naming, formatting,Rob Austein
or commenting conventions should be shot. If it so happens that it is inconvenient to shoot him, then he is to be politely requested to recode his program in adherence to the above standard." -- Michael Spier, Digital Equipment Corporation svn path=/branches/tk705/; revision=6152
2015-10-25Tweak binary field types to get SQLite3 working as a Django ORMRob Austein
backend. Switch yamltest's default database configuration to sqlite3. MySQL still has character set issues, which are almost certainly to do with the communication channel rather than the database tables. It's possible that one of the newer DB API drivers for MySQL fixes this, might be worth trying one of them at some point (see the "MySQL notes" discussion of MySQL DB API drivers in the Django documentation). svn path=/branches/tk705/; revision=6149
2015-10-19Tweak test scripts.Rob Austein
svn path=/branches/tk705/; revision=6130
2015-10-16PyLint. As usual, a lot of noise and a handful of real, albeit minor, bugs.Rob Austein
svn path=/branches/tk705/; revision=6123
2015-10-16Replace RRDP wired-in-URL kludge with proper support in OOB andRob Austein
left-right protocol and irdb and rpkidb models. Not fully working yet, RRDP URI isn't yet showing up everywhere it should, but this is probably more an indication that the previous hack was incomplete than that the replacement broke something. svn path=/branches/tk705/; revision=6120
2015-10-08Clean out remains of old publication_control protocol implementation.Rob Austein
A few old test programs were still using this, those will require upgrade or retirement. svn path=/branches/tk705/; revision=6102
2015-10-08Initial sorta-mostly-working with Django 1.8. Incredibly noisy due toRob Austein
incomprehensible advance depreciation warnings for Django 1.9. svn path=/branches/tk705/; revision=6100
2015-10-07Discard Django router in favor of separate settings files tailored toRob Austein
particular programs (see #713). svn path=/branches/tk705/; revision=6098
2014-11-12Initial (awful kludge) version of adding RRDP URIs to SIA extension.Rob Austein
This needs rewriting, but doing it properly requires a minor database schema change, and I'm trying to get a test case running by tomorrow morning. svn path=/branches/tk705/; revision=6015
2014-09-30Pull from trunk.Rob Austein
svn path=/branches/tk705/; revision=5979
2014-09-19Convert pubd to use Django ORM and lxml.etree.Rob Austein
smoketest temporarily broken as it doesn't know anything about Django. svn path=/branches/tk705/; revision=5961
2014-09-16Add a mechanism yamltest can use to signal its parent that it's doneRob Austein
with all its tedious setup actions. svn path=/branches/tk705/; revision=5957
2014-09-16Merge changes from branches/tk713 into branches/tk705. See #705, #713.Rob Austein
svn path=/branches/tk705/; revision=5956
2014-09-16Add --browser switch to yamltest. Less useful than I had hoped itRob Austein
might be due to some kind of CSRF problem, might be worth figuring out how to disable that for debugging but not terribly urgent. svn path=/branches/tk713/; revision=5955
2014-09-16Add support for running GUI under yamltest.Rob Austein
Result sometimes hangs with browser waiting for response, not sure why, might be ancient abandoned bug #116. Logging control is a bit screwy, everything uses Python's logging library but we have multiple ways of configuring it. svn path=/branches/tk713/; revision=5954
2014-09-14Add IRDB migration to yamlconf.Rob Austein
svn path=/branches/tk713/; revision=5951
2014-09-14Start backing out all the old settings.configure() calls, which wereRob Austein
indeed masking the new migration stuff. yamltest now runs migrations as part of setting up test CAs; still need to decide whether running migrations in production is something that should be handled explicitly via rpki-manage or should be bundled into rpki-sql-setup. Old settings.configure() code still present as a trail of breadcrumbs to follow when backing out the rest of the tortuous startup sequence required by the old way of doing things. svn path=/branches/tk713/; revision=5950
2014-09-13Groundwork for Django ORM world conquest: sort out settings.py mess.Rob Austein
svn path=/branches/tk713/; revision=5948
2014-08-28RRDP test code had gotten a bit stale.Rob Austein
svn path=/branches/tk705/; revision=5942
2014-08-06rootd with publciation protocol mostly working with modern IRDB.Rob Austein
svn path=/branches/tk705/; revision=5913
2014-07-18Pull changes from trunk.Rob Austein
svn path=/branches/tk705/; revision=5903
2014-07-18Pull XML namespaces and so forth from schemas where possible.Rob Austein
svn path=/trunk/; revision=5902
2014-07-07Checkpoint of SQL-based publish and withdraw processing. Doesn'tRob Austein
handle publish-with-overwrite correctly yet, not generating RRDP files yet, but passes "make test" without doing anything obviously insane. svn path=/branches/tk705/; revision=5887
2014-05-31Still more PyLint.Rob Austein
svn path=/trunk/; revision=5856
2014-05-30Use --log-file in yamltest; debug the rotating log file options.Rob Austein
svn path=/trunk/; revision=5853
2014-05-30Move all the complexity of configuring the ten zillion kinds ofRob Austein
logging handlers up front to the argparse stage, thereby also giving the application more control over the default logging configuration. svn path=/trunk/; revision=5851
2014-05-29PyLintRob Austein
svn path=/trunk/; revision=5845
2014-05-29Provide our own logging Formatter class rather than straining toRob Austein
subclass the stock one. Replace all uses of rpki.log.traceback() with logging package .exception() calls. Use LoggingAdapter for all the whacky per-stream logging code in rpki.http. Fix default logging priority for non-daemon programs like rpkic. svn path=/trunk/; revision=5843
2014-05-28Cleanup. Whack default logging level down to warning, except when running ↵Rob Austein
directly under test harness. svn path=/trunk/; revision=5839
2014-05-28Rework logging initialization code.Rob Austein
svn path=/trunk/; revision=5836
2014-04-05Source tree reorg, phase 1. Almost everything moved, no file contents changed.Rob Austein
svn path=/branches/tk685/; revision=5757