| |
@@ -6,6 +6,7 @@
|
| |
# See LICENSE for details.
|
| |
# --- END COPYRIGHT BLOCK ---
|
| |
#
|
| |
+ import socket
|
| |
from random import sample
|
| |
|
| |
import pytest
|
| |
@@ -42,6 +43,9 @@
|
| |
NEW_BACKEND_1 = 'parent_base'
|
| |
NEW_BACKEND_2 = 'child_base'
|
| |
|
| |
+ HOSTNAME = socket.getfqdn()
|
| |
+ IP_ADDRESS = socket.gethostbyname(HOSTNAME)
|
| |
+
|
| |
|
| |
@pytest.fixture(scope="module")
|
| |
def test_user(topology_st, request):
|
| |
@@ -500,8 +504,8 @@
|
| |
|
| |
|
| |
@pytest.mark.parametrize('aci_subject',
|
| |
- ('dns = "localhost.localdomain"',
|
| |
- 'ip = "::1" or ip = "127.0.0.1"'))
|
| |
+ ('dns = "{}"'.format(HOSTNAME),
|
| |
+ 'ip = "{}"'.format(IP_ADDRESS)))
|
| |
def test_search_dns_ip_aci(topology_st, test_user, aci_subject):
|
| |
"""Verify that after performing multiple simple paged searches
|
| |
to completion on the suffix with DNS or IP based ACI
|
| |
Bug Description: The test fails because the instance now uses
hostname for ldap URL but the ACI is set to localhost URL.
Fix description: Get FQDN and IP addresses of the machine
and use them for ACI creation.
https://pagure.io/389-ds-base/issue/49584
Reviewed by: ?