- Sep 29, 2021
-
-
Rafael Guterres Jeffman authored
This patch adds 'name' to all test playbook tasks that did not have it, fixing ansible-lint's error 'unnamed-task'.
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
Update vault README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/vault/test_vault_client_context.yml As `ipavault` only works in client context, an error is raised if it is explicitly executed in a server context.
-
- Sep 28, 2021
-
-
Rafael Guterres Jeffman authored
Update selfservice README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/selfservice/test_selfservice_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update service README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/service/test_service_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update user README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/user/test_user_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update trust README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/trust/test_trust_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update sudorule README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/sudorule/test_sudorule_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update sudocmdgroup README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/sudocmdgroup/test_sudocmdgroup_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update sudocmd README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/sudocmd/test_sudocmd_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update server README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/server/test_server_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update role README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/role/test_role_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update pwpolicy README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/pwpolicy/test_pwpolicy_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update privilege README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/privilege/test_privilege_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update permission README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/permission/test_permission_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file. Due to differences in data returned when running in a client context, some values had to be modified so that comparision works and an unnecessary call to IPA API is executed.
-
Rafael Guterres Jeffman authored
Update location README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/location/test_location_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update hostgroup README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/hostgroup/test_hostgroup_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update host README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/host/test_host_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update hbacsvcgroup README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/hbacsvcgroup/test_hbacsvcgroup_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update hbacsvc README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/hbacsvc/test_hbacsvc_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update hbacrule README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/hbacrule/test_hbacrule_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update group README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/group/test_group_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update dnszone README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/dnszone/test_dnszone_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file. Due to differences in data returned when running in a client context, verification if zone is active had to be modified.
-
Rafael Guterres Jeffman authored
Update dnsrecord README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/dnsrecord/test_dnsrecord_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update dnsforwardzone README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/dnsforwardzone/test_dnsforwardzone_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file. Due to differences in data returned when running ipadnsforwardzone in a client context, some values had to be modified so that comparision works, avoiding unnecessary IPA API calls.
-
Rafael Guterres Jeffman authored
Update dnsconfig README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/dnsconfig/test_dnsconfig_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update delegation README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/delegation/test_delegation_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
Update config README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/config/test_config_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file. As the tests for ipaconfig may render the server in an inconsistent state if they fail, the tests in tests/config/test_config.yml were wrapped in a way that if one test fails, the default FreeIPA configuration is restored to the server.
-
Rafael Guterres Jeffman authored
Update automountlocation README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/automountlocation/test_automountlocation_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
- Sep 27, 2021
-
-
Rafael Guterres Jeffman authored
This patch fixes setting ipaserver_domain and ipaserver_realm facts for iparole tests, fixing variable evaluation and allowing the tests to be executed even if `gather_facts: no`.
-
Rafael Guterres Jeffman authored
Update automember README file and add tests for executing plugin with `ipaapi_context` set to `client`. A new test playbook can be found at: tests/automember/test_automember_client_context.yml The new test file can be executed in a FreeIPA client host that is not a server. In this case, it should be defined in the `ipaclients` group, in the inventory file.
-
Rafael Guterres Jeffman authored
This patch adds a new fact `ipa_host_is_client`, available in the include task file `env_freeipa_facts.yml`. The variable `ipa_host_is_client` is set to TRUE if the client host is not an IPA server (primary or replica). It can be used if a test cannot be executed in a server, independent of the value set to `ipaapi_context`.
-
- Sep 20, 2021
-
-
Rafael Guterres Jeffman authored
As the server name was hard coded, when running tests for ipasever module using a server not name as 'ipaserver', the tests would fail. This patch allows the configuration of the server name using the variable 'ipa_server_name', and if not provided, try to infer the name from the ansible_hostname variable, or, if not possible, defaults to 'ipaserver'. The same behavior is applied to 'ipasever_domain', with the default being 'ipa.test'.
-
- Sep 16, 2021
-
-
Rafael Guterres Jeffman authored
Currently, if a test fails during execution of ipaconfig playbook tests, or if the failed task is the task reverting to the original configuration fails, the testing host might be left in a state that may cause other tests to fail due to the inconsistent configuration state. This patch ensures that if a test fails, a known configuration, the same as used is the default installation of FreeIPA used in upstream CI, is applied to the host, providing safe environment for testing.
-
Thomas Woerner authored
The nonposix, posix and external parameters need to be mutually exclusive. external was missing in this list. Only one of the three parameters can be used. external can not be set to no/false. This results in an error now. if nonposix is used, posix is set as not nonposix. The nonposix parameter is not used within the code anymore.. New tests have been added to tests the addition of users with for nonposix and posix groups. The tests for the external group is not active due to the need of an AD. Fixes: #528 (Error creating nonposix group)
-
- Aug 23, 2021
-
-
Rafael Guterres Jeffman authored
As of FreeIPA 4.9.7, setting SOA serial is deprecated, so this change removes support for setting this variable in ipadnszone module.
-
- Aug 20, 2021
-
-
Thomas Woerner authored
Single hostnames can be used for hbacrule_add_host and will match fqdn in IPA internally. Simple host names have to be extended to be FQDN to be able to compare them for _host_add and _host_remove. Two new functions have been added to ansible_freeipa_module: - api_get_domain - Get the domain from the api - ensure_fqdn - Extend a single name with the domain This fixes #617 - hbacrule_add_host: already a member
-
- Aug 11, 2021
-
-
Thomas Woerner authored
json_query is not part of Ansible Core. As this is the only used module that is not in Core it has been replaced by constructig a new dict with the needed user names from users dict using a loop and set_fact.
-