- Sep 28, 2021
-
-
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
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`.
-
Rafael Guterres Jeffman authored
Modify templates to create the basic tests for `ipaapi_context: client`.
-
Rafael Guterres Jeffman authored
Add a new configuration variable, `ipaapi_context` to IPAAnsibleModule base specs, accepting only 'server' or 'client' values. By using this variable, an user can select the environment context in which the module will execute, server or client. This change will allow configuration of the server without requiring login access (e.g. `ssh`) to the server. The default behavior is to use a `server` context, but this behavior can be modified by the plugin, if it sets the `context` parameter when connecting to IPA API.
-
- Sep 26, 2021
-
-
Rafael Guterres Jeffman authored
ipaclient_setup_nss: Use proper nosssd_files list
-
- Sep 24, 2021
-
-
Thomas Woerner authored
ipaconfig: Prevent configuration issues due to test failure.
-
Thomas Woerner authored
ipaserver: Allow configuration of test server name.
-
- Sep 23, 2021
-
-
Thomas Woerner authored
ipaclient_setup_nss is using the nosssd_files dict if sssd is disabled with no_sssd. The nosssd_files dict is generated in ipaclient_test and used in ipaclient_setup_nss. So far ipaclient_setup_nss was using nosssd_files from ipaclient installer, which was always None.
-
- 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
group: Fix nonposix, posix and external handling and conversions
-
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)
-
Thomas Woerner authored
Use execute_ipa_commands for sudocmd plugins.
-
Thomas Woerner authored
config: Fix data returned from module.
-
- Sep 15, 2021
-
-
Rafael Guterres Jeffman authored
When retrieving IPA configuration using ipaconfig module, a few variables were not returning, and some data had the wrong data format. This patch fix both issues and apply some refactoring, as data was being retrieved from IPA API in different places using different methods.
-
Thomas Woerner authored
config: Remove unused code.
-