http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/memorydb.py Mercurial Repository: p/roundup/code: test/memorydb.py history 2020-07-28T07:21:00-04:00 Remove translation markings. Not needed. http://hg.code.sf.net:8000/p/roundup/code/#changeset-1e53e3ad9e5cbfc269085630f09d75a910071d52 John Rouillard rouilj@ieee.org 2020-07-28T07:21:00-04:00 2020-07-28T07:21:00-04:00
changeset 1e53e3ad9e5c
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Remove translation markings. Not needed.
files
Fix memeorydb http://hg.code.sf.net:8000/p/roundup/code/#changeset-46a8e1cab3c496a3b9b81ad5dc65569657645b80 John Rouillard rouilj@ieee.org 2020-07-28T06:57:41-04:00 2020-07-28T06:57:41-04:00
changeset 46a8e1cab3c4
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Fix memeorydb

It's not with the other backends so I missed fixing its addclass to
provide more explicit message.
files
Allow to define reverse Multilinks http://hg.code.sf.net:8000/p/roundup/code/#changeset-8497bf3f23a13059a2b21666f0c8d4ee28a55601 Ralf Schlatterbeck rsc@runtux.com 2020-04-29T16:30:27+02:00 2020-04-29T16:30:27+02:00
changeset 8497bf3f23a1
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Allow to define reverse Multilinks

Now it's possible to specify a rev_multilink parameter when creating
Link or Multilink properties. The parameter takes a property name to be
inserted into the linked-to class. It allows to navigate from the other
side of the link as if it where a forward Multilink using the existing
data structures.
files
Enhance memorydb to load config.detectors and config.ext http://hg.code.sf.net:8000/p/roundup/code/#changeset-ae35daa5baab0e817550edb0d75bda693f073252 John Rouillard rouilj@ieee.org 2019-11-07T21:09:02-05:00 2019-11-07T21:09:02-05:00
changeset ae35daa5baab
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Enhance memorydb to load config.detectors and config.ext

Memorydb did not load the config.ini files from the tracker's
detectors and extensions directories. This caused an update to the
classic detectors (that used detectors/config.ini) to break testing.
files
keep test code in sync with real implementation http://hg.code.sf.net:8000/p/roundup/code/#changeset-c4f9a152258dc6f86d1b18d7673eb886fc7deec8 Christof Meerwald cmeerw@cmeerw.org 2018-07-28T20:21:59+01:00 2018-07-28T20:21:59+01:00
changeset c4f9a152258d
branch
bookmark
tag
user Christof Meerwald <cmeerw@cmeerw.org>
description keep test code in sync with real implementation
files
fixed memorydb string encoding http://hg.code.sf.net:8000/p/roundup/code/#changeset-d0fd8bb64c3fa2c34521bd6220cbf5abb29ba536 Christof Meerwald cmeerw@cmeerw.org 2018-07-24T22:41:39+01:00 2018-07-24T22:41:39+01:00
changeset d0fd8bb64c3f
branch
bookmark
tag
user Christof Meerwald <cmeerw@cmeerw.org>
description fixed memorydb string encoding
files
Python 3 preparation: update calls to dict methods. http://hg.code.sf.net:8000/p/roundup/code/#changeset-23b8e6067f7cdf5ff451f0a99cac4fb288e56859 Joseph Myers jsm@polyomino.org.uk 2018-07-24T23:04:42+00:00 2018-07-24T23:04:42+00:00
changeset 23b8e6067f7c
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: update calls to dict methods.

Tool-assisted patch. Changes of iterkeys / itervalues / iteritems to
keys / values / items are fully automated, but may make things less
efficient in Python 2. Automated tools want to add list() around many
calls to keys / values / items, but I thought most such list()
additions were unnecessary because it seemed the result of keys /
values / items was just iterated over while the set of dict keys
remained unchanged, rather than used in a way requiring an actual
list, or used while the set of keys in the dict could change. It's
quite possible I missed some cases where list() was really needed, or
left in some unnecessary list() calls.

In cases where list() was only needed because the resulting list was
then sorted in-place, I changed the code to use calls to sorted().
files
Python 3 preparation: use exec(compile(open().read())) instead of execfile(). http://hg.code.sf.net:8000/p/roundup/code/#changeset-e9fb7c539a5251749490a64334eb3e6b6597621c Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:18:30+00:00 2018-07-24T22:18:30+00:00
changeset e9fb7c539a52
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: use exec(compile(open().read())) instead of execfile().

Tool-assisted patch.
files
Python 3 preparation: change "x.has_key(y)" to "y in x". http://hg.code.sf.net:8000/p/roundup/code/#changeset-0942fe89e82e3e84d95a3d0ca5d8d15502f57348 Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:08:17+00:00 2018-07-24T22:08:17+00:00
changeset 0942fe89e82e
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: change "x.has_key(y)" to "y in x".

(Also likewise "not in" where appropriate.) Tool-generated patch.
files
Python 3 preparation: "raise" syntax. http://hg.code.sf.net:8000/p/roundup/code/#changeset-35ea9b1efc1494f29fb07690e7087686de58e0f3 Joseph Myers jsm@polyomino.org.uk 2018-07-24T21:39:58+00:00 2018-07-24T21:39:58+00:00
changeset 35ea9b1efc14
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: "raise" syntax.

Changing "raise Exception, value" to "raise Exception(value)".
Tool-assisted patch. Particular cases to check carefully are the one
place in frontends/ZRoundup/ZRoundup.py where a string exception
needed to be fixed, and the one in roundup/cgi/client.py involving
raising an exception with a traceback (requires three-argument form of
raise in Python 2, which as I understand it requires exec() to avoid a
Python 3 syntax error).
files
Fix tests for memorydb and anydbm backends http://hg.code.sf.net:8000/p/roundup/code/#changeset-c0cda00af4791acfd5c4ff2c1b6fd606b1bceaab Ralf Schlatterbeck rsc@runtux.com 2018-04-19T17:03:11+02:00 2018-04-19T17:03:11+02:00
changeset c0cda00af479
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Fix tests for memorydb and anydbm backends

The anydbm backend silently drops properties in the journal that are not
in the database during serialisation. The memorydb backend (only used
for testing) cannot deal with user changes (re-open of db under a
different user).
files
Remove 'import *' statement from test/memorydb.py http://hg.code.sf.net:8000/p/roundup/code/#changeset-88fc7202f87ddbe41770d659e03a45f7f5638029 John Kristensen john@jerrykan.com 2016-06-10T18:24:47+10:00 2016-06-10T18:24:47+10:00
changeset 88fc7202f87d
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Remove 'import *' statement from test/memorydb.py

It is generally best to avoid 'import *' statements, particularly in
this case where objects in the global namespace are being propagated
through to an execfile(). The construction of the 'vars' variable is a
bit of a hack, but preferable to the alternative. Sometime in the future
it may be a good idea to do away with using execfile() to parse the
schema files.
files
Fix minor problems in tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-dad18ee491a9948de506aa6e6588ea550f2673d4 Ralf Schlatterbeck rsc@runtux.com 2013-07-06T12:10:50+02:00 2013-07-06T12:10:50+02:00
changeset dad18ee491a9
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Fix minor problems in tests

Make gpg test fault tolerant against existing directory.
Fix path problems for new auditor.
files
Implementation for: http://hg.code.sf.net:8000/p/roundup/code/#changeset-6e9b9743de89d2acc152b890dc6848f811ffadce John Rouillard rouilj@ieee.org 2013-04-23T23:06:09-04:00 2013-04-23T23:06:09-04:00
changeset 6e9b9743de89
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Implementation for:

http://issues.roundup-tracker.org/issue2550731

Add mechanism for the detectors to be able to tell the source of the
data changes.

Support for tx_Source property on database handle. Can be
used by detectors to find out the source of a change in an auditor to
block changes arriving by unauthenticated mechanisms (e.g. plain email
where headers can be faked). The property db.tx_Source has the
following values:
* None - Default value set to None. May be valid if it's a script
that is created by the user. Otherwise it's an error and indicates
that some code path is not properly setting the tx_Source property.
* "cli" - this string value is set when using roundup-admin and
supplied scripts.
* "web" - this string value is set when using any web based
technique: html interface, xmlrpc ....
* "email" - this string value is set when using an unauthenticated
email based technique.
* "email-sig-openpgp" - this string value is set when email with a
valid pgp signature is used. (*NOTE* the testing for this mode
is incomplete. If you have a pgp infrastructure you should test
and verify that this is properly set.)

This also includes some (possibly incomplete) tests cases for the
modes above and an example of using ts_Source in the customization.txt
document.
files
Remove keyword expansions from CVS. All regression tests passed afterwards. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6e3e4f24c75376f61ae0bf0e9ee334567585c38e Eric S. Raymond esr@thyrsus.com 2011-11-16T09:51:38-05:00 2011-11-16T09:51:38-05:00
changeset 6e3e4f24c753
branch
bookmark
tag
user Eric S. Raymond <esr@thyrsus.com>
description Remove keyword expansions from CVS. All regression tests passed afterwards.
files
memorydb API consistency fix http://hg.code.sf.net:8000/p/roundup/code/#changeset-355cd8fdeb322457aef890414b4bac34d34c9c25 Richard Jones richard@users.sourceforge.net 2010-07-12T04:02:25+00:00 2010-07-12T04:02:25+00:00
changeset 355cd8fdeb32
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description memorydb API consistency fix
files
The email for the first message on an issue... http://hg.code.sf.net:8000/p/roundup/code/#changeset-887a153cedec0496f6ba5eb265b6ca71c45cca32 Richard Jones richard@users.sourceforge.net 2010-02-23T03:20:17+00:00 2010-02-23T03:20:17+00:00
changeset 887a153cedec
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description The email for the first message on an issue...

...was sometimes having its In-Reply-To set to itself (thanks Eric
Kow).

Also fix roundupdb IssueClass code to use the variable "issueid" instead of
the braindead "nodeid".
files
don't have mailgw tests close the db - they're not testing persistence http://hg.code.sf.net:8000/p/roundup/code/#changeset-23bf9290140a7be4cae143031b8a8afe578d925a Richard Jones richard@users.sourceforge.net 2010-02-08T08:30:37+00:00 2010-02-08T08:30:37+00:00
changeset 23bf9290140a
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description don't have mailgw tests close the db - they're not testing persistence
files
Make memorydb pass all tests; http://hg.code.sf.net:8000/p/roundup/code/#changeset-f0faef4dd023db00f1eb540af6acddf8f91b1e41 Richard Jones richard@users.sourceforge.net 2010-02-08T04:30:48+00:00 2010-02-08T04:30:48+00:00
changeset f0faef4dd023
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Make memorydb pass all tests;

1. re-base off of anydbm and overwrite persistence bits
2. refactor core DB tests to allow in-memory persistence to work
3. remove bogus testing of file content indexing on import
files
make some more memorydb tests pass http://hg.code.sf.net:8000/p/roundup/code/#changeset-0e33bf5571dc793e578d0f0290f254aafec2aad0 Richard Jones richard@users.sourceforge.net 2010-02-05T05:10:52+00:00 2010-02-05T05:10:52+00:00
changeset 0e33bf5571dc
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description make some more memorydb tests pass
files
minor fix to memorydb http://hg.code.sf.net:8000/p/roundup/code/#changeset-4dc575b337125ef1910922f6756f558dd6da145e Richard Jones richard@users.sourceforge.net 2010-02-05T04:10:06+00:00 2010-02-05T04:10:06+00:00
changeset 4dc575b33712
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description minor fix to memorydb
files
add in-memory hyperdb implementation to speed up testing http://hg.code.sf.net:8000/p/roundup/code/#changeset-94c992852f127aa10a7edaa6a42d6d5fe12ceac3 Richard Jones richard@users.sourceforge.net 2010-02-02T04:44:18+00:00 2010-02-02T04:44:18+00:00
changeset 94c992852f12
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description add in-memory hyperdb implementation to speed up testing
files