summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2013-02-21 13:40:20 +0100
committerMartin Kosek <mkosek@redhat.com>2013-02-21 13:47:53 +0100
commit20dd6f0720c034c2acd89b536483a1e9a4391fe8 (patch)
tree162c67852d6c08f1a736981f33c73c167fc6503d
parent2808a5ac01483275a75c0c0cbf9836a7e21a2041 (diff)
downloadfreeipa.git-20dd6f0720c034c2acd89b536483a1e9a4391fe8.tar.gz
freeipa.git-20dd6f0720c034c2acd89b536483a1e9a4391fe8.tar.xz
freeipa.git-20dd6f0720c034c2acd89b536483a1e9a4391fe8.zip
Use fixed test domain in realmdomains test
Random domain name may bring undererministic behavior. It also breaks the test on some systems as string.lowercase is locale dependent and can return non-ASCII letters and thus later break the unicode encoding and raise UnicodeDecodeError. Use a fixed domain in "test" TLD instead. This domain is guaranteed to be not existent.
-rw-r--r--tests/test_xmlrpc/test_realmdomains_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_xmlrpc/test_realmdomains_plugin.py b/tests/test_xmlrpc/test_realmdomains_plugin.py
index 11231638..539643b0 100644
--- a/tests/test_xmlrpc/test_realmdomains_plugin.py
+++ b/tests/test_xmlrpc/test_realmdomains_plugin.py
@@ -32,7 +32,7 @@ dn = DN(('cn', cn), ('cn', 'ipa'), ('cn', 'etc'), api.env.basedn)
our_domain = api.env.domain
new_domain_1 = u'example1.com'
new_domain_2 = u'example2.com'
-bad_domain = u'this-domain-does-not-exist-%s.com' % ''.join(random.choice(string.lowercase) for x in range(10))
+bad_domain = u'doesnotexist.test'
class test_realmdomains(Declarative):