freeipa/ipatests/azure
Stanislav Levin 3e33e546c3 Azure: Populate containers with self-AAAA records
IPA server's AAAA records at embedded DNS mode depend on result of
`get_server_ip_address` function(`ipaserver.install.installutils`),
which in turn, relies on NSS.

In case of Azure Pipelines, there are neither IPv6 records in
'/etc/hosts' nor external DNS, which may provide such. This leads to
the missing AAAA records for master and missing AAAA records for `ipa-ca`
pointing to master in embedded DNS.

In particular, tests `test_ipa_healthcheck_no_errors`,
`test_ipa_dns_systemrecords_check` fail with:
```
[
  {
    "source": "ipahealthcheck.ipa.idns",
    "check": "IPADNSSystemRecordsCheck",
    "result": "WARNING",
    "uuid": "b979a88a-6373-4990-bc83-ce724e9730b4",
    "when": "20210120055054Z",
    "duration": "0.032740",
    "kw": {
      "msg": "Got {count} ipa-ca AAAA records, expected {expected}",
      "count": 1,
      "expected": 2
    }
  }
]
```
where `ipa-ca` record exists only for replica.

Note: since the most of the code in setup_containers was touched it has
been reformatted.

Fixes: https://pagure.io/freeipa/issue/8683
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-02-15 09:54:51 +02:00
..
azure_definitions ipatests: temporarily remove test_dnssec.py::TestInstallDNSSECFirst from gating 2020-11-17 08:39:59 +01:00
Dockerfiles Azure CI: use PPA to provide newer libseccomp version 2020-11-17 18:48:24 +02:00
scripts Azure: Populate containers with self-AAAA records 2021-02-15 09:54:51 +02:00
templates Azure CI: use PPA to provide newer libseccomp version 2020-11-17 18:48:24 +02:00
azure-pipelines-rawhide.yml Azure: Add Rawhide definitions 2020-08-31 09:46:03 +03:00
azure-pipelines.yml Azure: Increase verbosity for Tox task 2020-08-31 09:46:03 +03:00