Skip to content

[autobackport: sssd-2-13] tests: migrate multihost/test_automount.py to system tests - #9322

Closed
sssd-bot wants to merge 1 commit into
SSSD:sssd-2-13from
sssd-bot:SSSD-sssd-backport-pr9081-to-sssd-2-13
Closed

sssd-bot wants to merge 1 commit into
SSSD:sssd-2-13from
sssd-bot:SSSD-sssd-backport-pr9081-to-sssd-2-13

Conversation

@sssd-bot

Copy link
Copy Markdown
Contributor

This is an automatic backport of PR#9081 tests: migrate multihost/test_automount.py to system tests to branch sssd-2-13, created by @krishnavema.

Please make sure this backport is correct.

Note

The commits were cherry-picked without conflicts.

You can push changes to this pull request

git remote add sssd-bot git@github.com:sssd-bot/sssd.git
git fetch sssd-bot refs/heads/SSSD-sssd-backport-pr9081-to-sssd-2-13
git checkout SSSD-sssd-backport-pr9081-to-sssd-2-13
git push sssd-bot SSSD-sssd-backport-pr9081-to-sssd-2-13 --force

Original commits
d7254d1 - tests: migrate multihost/ad/test_automount.py to system tests
ec98b1c - tests: remove multihost/ad/test_automount.py

Backported commits

  • 55a3cc0 - tests: migrate multihost/ad/test_automount.py to system tests
  • d0d9c2b - tests: remove multihost/ad/test_automount.py

Original Pull Request Body

Migrates the old automount tests to test_autofs.py and drops the legacy file.

Co-authored-by: Cursor cursoragent@cursor.com
Model used: Claude Opus 4.8

@jakub-vavra-cz

Copy link
Copy Markdown
Contributor

I see failure on c10s:
FAILED tests/test_autofs.py::test_autofs__new_map_entries_added_to_provider_are_visible_after_reload (ldap) - pytest_mh.conn.ssh.SSHProcessTimeoutError:

Restarting.

@jakub-vavra-cz jakub-vavra-cz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeated failure on centos:

FAILED tests/test_autofs.py::test_autofs__new_map_entries_added_to_provider_are_visible_after_reload (ldap) - pytest_mh.conn.ssh.SSHProcessTimeoutError:
Command #18090 timed out after 300 seconds:
Command:
set -ex
pushd "/var/export/export2"
mount | grep "nfs.test:/dev/shm/exports/export2 on /var/export/export2"
popd
umount "/var/export/export2"
CWD:
Env:
Output:
Error output:
+ pushd /var/export/export2

@danlavu

danlavu commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Squash the commits to make them like the original PR

@krishnavema
krishnavema force-pushed the SSSD-sssd-backport-pr9081-to-sssd-2-13 branch from 3ebbbf9 to d0d9c2b Compare November 25, 2026 12:50
All 6 cases are covered by system tests:
- test_001_searchbasedn (maps searched from basedn) -> test_autofs__cache_first_set_to_true
- test_002_offline (maps served from cache when offline) -> test_autofs__maps_are_served_from_cache_when_provider_is_offline
- test_003_setbasedn (ldap_autofs_search_base set) -> test_autofs__explicit_ldap_autofs_search_base_configures_lookup_scope
- test_004_autofsnone (autofs_provider=none serves cache) -> test_autofs__autofs_provider_none_serves_maps_from_warm_cache
- test_005_autofsnotset (autofs_provider not set) -> test_autofs__cache_first_set_to_true
- test_006_updatedmaps (updated maps picked up) -> test_autofs__new_map_entries_added_to_provider_are_visible_after_reload

Reviewed-by: Dan Lavu <dlavu@redhat.com>
Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit ec98b1c)
@krishnavema
krishnavema force-pushed the SSSD-sssd-backport-pr9081-to-sssd-2-13 branch from d0d9c2b to 57dd711 Compare November 25, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants