URL: https://github.com/freeipa/freeipa/pull/1692 Author: tiran Title: #1692: Make fasttest pass without ~/.ipa/default.conf Action: opened
PR body: """ Some fast tests depend on an api.env with realm, domain, and host. On machines without ~/.ipa/default.conf, the settings are not available. Provide dummy values to make tests pass. Closes: https://pagure.io/freeipa/issue/7432 Signed-off-by: Christian Heimes <chei...@redhat.com> """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/1692/head:pr1692 git checkout pr1692
From b354e887bb633446de25dcb3061b03e8e5aa6d91 Mon Sep 17 00:00:00 2001 From: Christian Heimes <chei...@redhat.com> Date: Thu, 15 Mar 2018 12:51:50 +0100 Subject: [PATCH] Make fasttest pass without ~/.ipa/default.conf Some fast tests depend on an api.env with realm, domain, and host. On machines without ~/.ipa/default.conf, the settings are not available. Provide dummy values to make tests pass. Closes: https://pagure.io/freeipa/issue/7432 Signed-off-by: Christian Heimes <chei...@redhat.com> --- ipatests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipatests/conftest.py b/ipatests/conftest.py index 6cc89838bc..616cf54af8 100644 --- a/ipatests/conftest.py +++ b/ipatests/conftest.py @@ -105,7 +105,9 @@ def pytest_addoption(parser): def pytest_cmdline_main(config): api.bootstrap( - context=u'cli', in_server=False, in_tree=True, fallback=False + context=u'cli', in_server=False, in_tree=True, fallback=False, + # dummy domain/host for machines without ~/.ipa/default.conf + domain='ipa.test', realm='IPA.TEST', server='master.ipa.test', ) for klass in cli_plugins: api.add_plugin(klass)
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org