http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/test_memorydb.py Mercurial Repository: p/roundup/code: test/test_memorydb.py history 2022-08-07T10:03:27-04:00 Implement UpdateTimestamp for memorydb and test. http://hg.code.sf.net:8000/p/roundup/code/#changeset-2ce8558036333fd7c881e681af4153ea451449ff John Rouillard rouilj@ieee.org 2022-08-07T10:03:27-04:00 2022-08-07T10:03:27-04:00
changeset 2ce855803633
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Implement UpdateTimestamp for memorydb and test.

Also test proper DbType when running memory test.
files
fix skip message. http://hg.code.sf.net:8000/p/roundup/code/#changeset-b9fe43496c8799d1612a28ecd357713162b5a7a4 John Rouillard rouilj@ieee.org 2022-08-07T04:39:07-04:00 2022-08-07T04:39:07-04:00
changeset b9fe43496c87
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix skip message.
files
memorydb fixes for otks tests. http://hg.code.sf.net:8000/p/roundup/code/#changeset-5053ee6c846baa88d0f2032f4c7a9046914e2106 John Rouillard rouilj@ieee.org 2022-08-07T01:26:30-04:00 2022-08-07T01:26:30-04:00
changeset 5053ee6c846b
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description memorydb fixes for otks tests.

in test setup otks was not set. Also fixed import from dbm used by
memorydb OneTimeKeys to inherit from OneTimeKeys rather than Sessions.
files
make testUpdateTimestamp return skip rather than just pass/passing. http://hg.code.sf.net:8000/p/roundup/code/#changeset-74cafb11351f24fb6d29a2e147573100ce6ee917 John Rouillard rouilj@ieee.org 2022-08-02T21:43:09-04:00 2022-08-02T21:43:09-04:00
changeset 74cafb11351f
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description make testUpdateTimestamp return skip rather than just pass/passing.
files
- issue2551223 - fix timestamp truncation in mysql and postgresql http://hg.code.sf.net:8000/p/roundup/code/#changeset-bdd28b244839c257336c4eefc7ba45593437d1d3 John Rouillard rouilj@ieee.org 2022-07-25T17:20:20-04:00 2022-07-25T17:20:20-04:00
changeset bdd28b244839
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description - issue2551223 - fix timestamp truncation in mysql and postgresql

The data types used to represent timestamps in pg and mysql for
ephemeral tables: sessions and otks don't have enough signifcant
digits to work. As a result the timestamps are rounduped (up/down)
rsuling in the stored timestamp being 2 minutes (pg) or 2-3
hours(mysql) off from what it should be.

Modify db schema to use a numeric type that preserves more significant
figures. Implement schema upgrade. Document need for upgrade in
upgrading.txt.

Write tests for schema upgrade.

Implement test for updateTimestamp method on BasicDatabase that showed
this issue in the first place. Write overrides for test for
anydbm/memorydb which store timestamp properly or not at all.
files
update session db tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-044dcf3608a27540b78d8dec68b84705abea30e8 John Rouillard rouilj@ieee.org 2022-07-25T15:02:30-04:00 2022-07-25T15:02:30-04:00
changeset 044dcf3608a2
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description update session db tests

session_common.py:

testList had no asserts. While adding them I found out the memory
and anydbm backends return byte strings while the rdbms backend
return strings. So added a call to s2b defined in each db test file
to covert. rdbms i a no-op and memory/anydbm call
roundup.anypy.strings::s2b().

also add some data to other tests and verify it.

other files:
define s2b appropriately.
files
Make memorydb persistent across re-open http://hg.code.sf.net:8000/p/roundup/code/#changeset-7f00fc5958cad7db10bae202b8a22214584fc076 Ralf Schlatterbeck rsc@runtux.com 2021-03-31T12:49:28+02:00 2021-03-31T12:49:28+02:00
changeset 7f00fc5958ca
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Make memorydb persistent across re-open

This allows memorydb to be used for more tests, in particular re-opening
with another user for checking permissions.
files
Move memorydb from test to roundup/test http://hg.code.sf.net:8000/p/roundup/code/#changeset-a77a7d04ed23165ce61ab5097f2f658613344c70 Ralf Schlatterbeck rsc@runtux.com 2021-03-30T09:10:46+02:00 2021-03-30T09:10:46+02:00
changeset a77a7d04ed23
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Move memorydb from test to roundup/test

.. to allow regression-testing in tracker instances without copying code.
files
Python 3 preparation: make relative imports explicit. http://hg.code.sf.net:8000/p/roundup/code/#changeset-d26921b851c328681aa6638475ce2cdae29963b4 Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:22:08+00:00 2018-07-24T22:22:08+00:00
changeset d26921b851c3
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: make relative imports explicit.

Tool-generated patch.
files
Fix commits although a Reject exception is raised http://hg.code.sf.net:8000/p/roundup/code/#changeset-62de601bdf6fd224fead26c33b585af5a05e7d80 Ralf Schlatterbeck rsc@runtux.com 2018-04-20T18:46:28+02:00 2018-04-20T18:46:28+02:00
changeset 62de601bdf6f
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Fix commits although a Reject exception is raised

Fix the problem that changes are committed to the database (due to
commits to otk handling) even when a Reject exception occurs. The fix
implements separate database connections for otk/session handling and
normal database operation.
files
Remove unneeded TestSuite code from tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-364c549918613cff81c3ebe07aee4025e0ef3fcc John Kristensen john@jerrykan.com 2015-08-21T13:08:02+10:00 2015-08-21T13:08:02+10:00
changeset 364c54991861
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Remove unneeded TestSuite code from tests

The TestSuite code is no longer needed now that we are using py.test
which can automatically discover tests
files
Update tests to work with py.test http://hg.code.sf.net:8000/p/roundup/code/#changeset-63c79c0992aeb805fbed74a82881d2eb32bbb70d John Kristensen john@jerrykan.com 2015-08-20T14:44:49+10:00 2015-08-20T14:44:49+10:00
changeset 63c79c0992ae
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Update tests to work with py.test

py.test searches for any class that looks like a TestCase in the test
directory and tries to run them as tests. Some of the classes that
inherit TestCase are not meant to be run and are only intended to be
"helper classes". Only the tests of the classes that inherit the "helper
classes" should be run. If we convert these "helper classes" to be
"mixins" py.test should not pick them up.
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
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