Skip to content
  1. Sep 29, 2021
  2. Sep 28, 2021
    • Rafael Guterres Jeffman's avatar
      ipaselfservice: Allow execution of plugin in client host. · 63423779
      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.
      63423779
    • Rafael Guterres Jeffman's avatar
      ipaservice: Allow execution of plugin in client host. · f1381edc
      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.
      f1381edc
    • Rafael Guterres Jeffman's avatar
      ipauser: Allow execution of plugin in client host. · 27b50957
      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.
      27b50957
    • Rafael Guterres Jeffman's avatar
      ipatrust: Allow execution of plugin in client host. · 577d8f78
      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.
      577d8f78
    • Rafael Guterres Jeffman's avatar
      ipasudorule: Allow execution of plugin in client host. · 829f1056
      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.
      829f1056
    • Rafael Guterres Jeffman's avatar
      ipasudocmdgroup: Allow execution of plugin in client host. · 3cd99781
      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.
      3cd99781
    • Rafael Guterres Jeffman's avatar
      ipasudocmd: Allow execution of plugin in client host. · 198e2152
      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.
      198e2152
    • Rafael Guterres Jeffman's avatar
      ipaserver: Allow execution of plugin in client host. · 26dc8f1e
      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.
      26dc8f1e
    • Rafael Guterres Jeffman's avatar
      iparole: Allow execution of plugin in client host. · c38b1e25
      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.
      c38b1e25
    • Rafael Guterres Jeffman's avatar
      ipapwpolicy: Allow execution of plugin in client host. · d5451cda
      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.
      d5451cda
    • Rafael Guterres Jeffman's avatar
      ipaprivilege: Allow execution of plugin in client host. · 368cee93
      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.
      368cee93
    • Rafael Guterres Jeffman's avatar
      ipapermission: Allow execution of plugin in client host. · a599f4ad
      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.
      a599f4ad
    • Rafael Guterres Jeffman's avatar
      ipalocation: Allow execution of plugin in client host. · 1440fb39
      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.
      1440fb39
    • Rafael Guterres Jeffman's avatar
      ipahostgroup: Allow execution of plugin in client host. · 40f544ba
      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.
      40f544ba
    • Rafael Guterres Jeffman's avatar
      ipahost: Allow execution of plugin in client host. · d0287f90
      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.
      d0287f90
    • Rafael Guterres Jeffman's avatar
      ipahbacsvcgroup: Allow execution of plugin in client host. · 6ce1055b
      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.
      6ce1055b
    • Rafael Guterres Jeffman's avatar
      ipahbacsvc: Allow execution of plugin in client host. · ec777dab
      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.
      ec777dab
    • Rafael Guterres Jeffman's avatar
      ipahbacrule: Allow execution of plugin in client host. · 876187ab
      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.
      876187ab
    • Rafael Guterres Jeffman's avatar
      ipagroup: Allow execution of plugin in client host. · 1fdf7a43
      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.
      1fdf7a43
    • Rafael Guterres Jeffman's avatar
      ipadnszone: Allow execution of plugin in client host. · cf7b197a
      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.
      cf7b197a
    • Rafael Guterres Jeffman's avatar
      ipadnsrecord: Allow execution of plugin in client host. · a834de1f
      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.
      a834de1f
    • Rafael Guterres Jeffman's avatar
      ipadnsforwardzone: Allow execution of plugin in client host. · da45d74f
      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.
      da45d74f
    • Rafael Guterres Jeffman's avatar
      ipadnsconfig: Allow execution of plugin in client host. · 393cb8ba
      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.
      393cb8ba
    • Rafael Guterres Jeffman's avatar
      ipadelegation: Allow execution of plugin in client host. · 638977e0
      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.
      638977e0
    • Rafael Guterres Jeffman's avatar
      ipaconfig: Allow execution of plugin in client host. · 65271a01
      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.
      65271a01
    • Rafael Guterres Jeffman's avatar
      ipaautomountlocation: Allow execution of plugin in client host. · e4d2b62b
      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.
      e4d2b62b
  3. Sep 27, 2021
    • Rafael Guterres Jeffman's avatar
      tests: Fix facts for iparole tests. · 4fda36eb
      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`.
      4fda36eb
    • Rafael Guterres Jeffman's avatar
      ipaautomember: Allow execution of plugin in client host. · e6ecae0d
      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.
      e6ecae0d
    • Rafael Guterres Jeffman's avatar
      tests: Create IPA fact ipa_host_is_client. · aa6c5c61
      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`.
      aa6c5c61
  4. Sep 20, 2021
    • Rafael Guterres Jeffman's avatar
      ipaserver: Allow configuration of test server name. · 076835e0
      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'.
      076835e0
  5. Sep 16, 2021
    • Rafael Guterres Jeffman's avatar
      ipaconfig: Prevent configuration issues due to test failure. · a5fa3d86
      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.
      a5fa3d86
    • Thomas Woerner's avatar
      group: Fix nonposix, posix and external handling and conversions · 1f250243
      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)
      1f250243
  6. Aug 23, 2021
  7. Aug 20, 2021
    • Thomas Woerner's avatar
      hbacrule: Create FQDN from single hostnames · b8488cb9
      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
      b8488cb9
Loading