Skip to content

Commit

Permalink
NAS-130317 / 24.10 / Robustize nfs manage gids and v4 domain tests (#…
Browse files Browse the repository at this point in the history
…14102)

* Add 1 sec delay before reading the updated config file.
  • Loading branch information
mgrimesix authored Jul 29, 2024
1 parent d227a16 commit 968c5ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/api2/test_300_nfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,8 @@ def test_52_manage_gids(state, expected):
if state is not None:
sleep(3) # In Cobia: Prevent restarting NFS too quickly.
call("nfs.update", {"userd_manage_gids": state})
# Allow config file to be updated
sleep(1)

s = parse_server_config()
assert s['mountd']['manage-gids'] == expected, str(s)
Expand All @@ -1661,6 +1663,8 @@ def test_54_v4_domain():
# Make a setting change and confirm
db = call('nfs.update', {"v4_domain": "ixsystems.com"})
assert db['v4_domain'] == 'ixsystems.com', f"v4_domain failed to be updated in nfs DB: {db}"
# Allow config file to be updated
sleep(1)
s = parse_server_config("idmapd")
assert s['General'].get('Domain') == 'ixsystems.com', f"'Domain' failed to be updated in idmapd.conf: {s}"

Expand Down

0 comments on commit 968c5ef

Please sign in to comment.