Moved PostgreSQL connection settings into a dedicated configuration file. This
makes easier to use different connection parameters since it's no longer
needed to change the python source code.
---
backend/test/db_settings.ini| 5 +
backend/test/runtests-postgresql.py | 12
Handled psycopg2.ProgramminError exceptions inside of the python pgsql
driver. Raise them as sql_base.SQLStatementPrepareError.
This is commit fixes the 'test_statement_prepare_error' test.
---
backend/server/rhnSQL/driver_postgresql.py | 2 ++
1 file changed, 2 insertions(+)
diff --git
The script which starts the python PostgreSQL tests was broken because it
didn't find some required resources, plus it looked for files/directories which
are no longer available.
---
backend/test/runtests-postgresql.py | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
Hello, the following patches make possible to run all the python tests
interacting with PostgreSQL. Right now all the tests are passing.
Most of the changes are trivial, except for patch #5 which could break
something; you can find all the details inside of the patch itself.
I didn't look into
The `UserDictCase` class is a dictionary with case insensitive keys.
Since it's inherited from `UserDict` it can be passed to method/functions
expecting a classic python dictionary.
Unfortunately `UserDictCase` behaved in a different way when the specified key
was not found: rather than raising a
Wrapped the 'test_statement_prepare_error' test inside of a transaction,
that leaves the database in a clean state after the
`rhnSQL.SQLStatementPrepareError` exception is raised.
---
backend/test/non-unit/server/rhnSQL/dbtests.py | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff
Flavio Castelli wrote:
% Hello, the following patches make possible to run all the python tests
% interacting with PostgreSQL. Right now all the tests are passing.
%
% Most of the changes are trivial, except for patch #5 which could break
% something; you can find all the details inside of the
% From: Nick Piacentine npi...@mars.asu.edu
%
% ---
% client/tools/rhncfg/config_common/transactions.py | 8
% 1 file changed, 8 insertions(+)
Hello Nick,
I've reviewed your patch and commited it (with some minor changes).
Thanks for your contribution.
--
Michael Mráka
Satellite
On 23/09/13 06:20, Tomáš Kašpárek wrote:
On 09/20/2013 04:21 PM, Michael Calmer wrote:
Hi,
Just to let you know:
just saw, that reboot a single system in master is currently broken.
I get a 4.4 not found because
/network/systems/details/reboot_confirm.pxt
page was removed.
It was deleted by