summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2016-05-26 17:16:28 +0200
committerVictor Stinner <vstinner@redhat.com>2016-06-22 09:23:32 +0200
commitb938999f7dd4678adef9efad88d48e82f6721c43 (patch)
tree04dc720d0f58c062738900a330afc0934f546001 /tox.ini
parent9a0ff4e12687243a9443a6ba6f99a909e6e8f156 (diff)
downloadtrove-b938999f7dd4678adef9efad88d48e82f6721c43.tar.gz
Port more guestagent unit tests to Python 3
* mysql: open temporary file in text mode, not in binary mode * operating_system: open files in text mode, not in binary mode, and flush explicitly the file rather than using unbuffered file. On Python 3, it's no more possible to open a text file in unbuffered mode (it would be very inefficient). * CouchbaseRootAccess.write_password_to_file(): encode password to UTF-8 if it's an unicode string. * Replace ConfigParser import with six.moves.configparser * Replace exc.message with exception_to_unicode(exc) * tox: run the following guestagent unit tests on Python 3.4 - test_backups.py - test_configuration.py - test_couchbase_manager.py - test_couchdb_manager.py - test_db2_manager.py - test_dbmodels.py - test_galera_manager.py - test_manager.py - test_mariadb_manager.py - test_mongodb_cluster_manager.py - test_mysql_manager.py - test_redis_manager.py - test_vertica_manager.py Partially implements: blueprint trove-python3 Change-Id: I7bf477b328dfe15c5339cda1b80e44358019bfff
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 13 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index e882658e..5562d2ef 100644
--- a/tox.ini
+++ b/tox.ini
@@ -69,13 +69,26 @@ commands =
trove/tests/unittests/dns/test_designate_driver.py \
trove/tests/unittests/guestagent/test_agent_heartbeats_models.py \
trove/tests/unittests/guestagent/test_api.py \
+ trove/tests/unittests/guestagent/test_backups.py \
+ trove/tests/unittests/guestagent/test_configuration.py \
+ trove/tests/unittests/guestagent/test_couchbase_manager.py \
+ trove/tests/unittests/guestagent/test_couchdb_manager.py \
+ trove/tests/unittests/guestagent/test_db2_manager.py \
+ trove/tests/unittests/guestagent/test_dbmodels.py \
trove/tests/unittests/guestagent/test_galera_cluster_api.py \
+ trove/tests/unittests/guestagent/test_galera_manager.py \
trove/tests/unittests/guestagent/test_guestagent_utils.py \
+ trove/tests/unittests/guestagent/test_manager.py \
+ trove/tests/unittests/guestagent/test_mariadb_manager.py \
trove/tests/unittests/guestagent/test_models.py \
+ trove/tests/unittests/guestagent/test_mongodb_cluster_manager.py \
+ trove/tests/unittests/guestagent/test_mysql_manager.py \
trove/tests/unittests/guestagent/test_pkg.py \
trove/tests/unittests/guestagent/test_query.py \
+ trove/tests/unittests/guestagent/test_redis_manager.py \
trove/tests/unittests/guestagent/test_service.py \
trove/tests/unittests/guestagent/test_vertica_api.py \
+ trove/tests/unittests/guestagent/test_vertica_manager.py \
trove/tests/unittests/instance/test_instance_controller.py \
trove/tests/unittests/instance/test_instance_models.py \
trove/tests/unittests/instance/test_instance_status.py \