novajoin/novajoin/novajoin/tests/integration
Rob Crittenden 3e4c66d84c Refactor the connection code to be more robust
Remove some duplicated code, handle KerberosError and make
get_host_and_realm() a top-level method.

Add integration test for IPA connection code. It must be run
manually against a current installation at the moment.

Make the default IPA retry two so we actually do a retr

Change-Id: I6c0b52ed964851eff43c2d3fb209a90f9b1539e4
2017-02-01 10:30:22 -05:00
..
README Refactor the connection code to be more robust 2017-02-01 10:30:22 -05:00
krb5.conf Refactor the connection code to be more robust 2017-02-01 10:30:22 -05:00
test_ipa.py Refactor the connection code to be more robust 2017-02-01 10:30:22 -05:00

README

Currently this test needs to be executed against a live installation with a copy
of the novajoin keytab in /tmp/test.keytab.

A new krb5.conf is included which will force the default ticket lifetime to 1 minute
and time.sleep(60) is used to ensure an expiration will happen.

I execute it as: nosetests -v novajoin/tests/integration/test_ipa.py