Extended python3 test to do an additional client test

The additional client test is needed to make sure that the client is
installed for python3 usage. The ipalib test has not been sufficient.
This commit is contained in:
Thomas Woerner
2017-10-13 16:13:57 +02:00
parent 6998dc788e
commit ccdd43f0b5
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/python3
# Test ipaclient python3 binding
from ipaclient.install.client import SECURE_PATH
# Check ipapython version to be >= 4.6
from ipapython.version import NUM_VERSION, VERSION
if NUM_VERSION < 40600:
raise Exception("ipa %s not usable with python3" % VERSION)

View File

@@ -1,6 +1,6 @@
- block:
- name: Verify Python3 import
command: python3 -c "from ipapython.version import NUM_VERSION"
script: py3test.py
register: py3test
failed_when: False