diff options
author | Martin Kosek <mkosek@redhat.com> | 2013-02-21 13:40:20 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-02-21 13:47:44 +0100 |
commit | 167406fb59a067b72d087a6ff9a557bf9e551625 (patch) | |
tree | 273b651d5e1e626dc87a1e2b228a0d2f190e2bf0 /tests/test_xmlrpc | |
parent | a41e10f0ebdd0be543d36b3bbe795d92974b0a2e (diff) | |
download | freeipa-167406fb59a067b72d087a6ff9a557bf9e551625.tar.gz freeipa-167406fb59a067b72d087a6ff9a557bf9e551625.tar.xz freeipa-167406fb59a067b72d087a6ff9a557bf9e551625.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.
Diffstat (limited to 'tests/test_xmlrpc')
-rw-r--r-- | tests/test_xmlrpc/test_realmdomains_plugin.py | 2 |
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 112316382..539643b0d 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): |