diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-26 21:30:12 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-26 21:30:12 +0000 |
commit | f5efdeb3495f0de7c82c7d1139fe136e4bc05db4 (patch) | |
tree | 86e635aeac60dc67da8f68e623a7a596416aa9bc /ca | |
parent | e1d631df7838515e44edf5a38ff6362451da1340 (diff) |
Add warning about CSRF issues when simulating multiple GUI instances
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
Diffstat (limited to 'ca')
-rwxr-xr-x | ca/tests/yamltest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ca/tests/yamltest.py b/ca/tests/yamltest.py index ae87f949..3740cbf6 100755 --- a/ca/tests/yamltest.py +++ b/ca/tests/yamltest.py @@ -947,16 +947,20 @@ try: if args.run_gui: print print 'GUI user "root", password "fnord"' + gui_count = 0 for d in db: if not d.is_hosted: url = "http://127.0.0.1:%d/rpki/" % (8000 + d.engine) print "GUI URL", url, "for", d.name if not args.no_browser: + gui_count += 1 if d is db.root: webbrowser.open_new(url) else: webbrowser.open_new_tab(url) time.sleep(2) + if gui_count > 1: + print "Warning: Logging into more than one GUI instance at once will probably fail due to CSRF protection" # Wait until something terminates. |