Skip to content

Commit

Permalink
Tests: Remove test_008_wildcardsearch for RHEL10
Browse files Browse the repository at this point in the history
Remove test_008_wildcardsearch for RHEL10
  • Loading branch information
aborah-sudo committed Feb 4, 2025
1 parent 36b1d97 commit dac8706
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions src/tests/multihost/alltests/test_automount.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,63 +468,6 @@ def test_008_wildcardsearch(self, multihost, indirect_nismaps,
del_pcap = 'rm -f %s' % auto_pcapfile
multihost.client[0].run_command(del_pcap)

@pytest.mark.parametrize('add_nisobject', ['/export'], indirect=True)
@pytest.mark.tier2
def test_009_maps_after_coming_online(self, multihost, add_nisobject):
"""
:title: fetch autofs map after coming online from offline
:id: b9da6e0e-3d8b-4465-b435-338708d0d51e
:bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1113639
:customerscenario: True
:steps:
1. edit sssd.conf and specify autofs_provider = ad
2. restart autofs
3. firewalld block 389 and 636
4. stop sssd, autofs.
5. remove sssd cache
6. Start sssd
7. remove firewall rule
8. start autofs
:expectedresults:
1. Should succeed
2. Should succeed
3. Should succeed
4. Should succeed
5. Should succeed
6. Should succeed
7. Should succeed
8. Should succeed
"""
multihost.master[0].run_command(['touch', '/export/nfs-test'])
client = sssdTools(multihost.client[0])
domain_name = client.get_domain_section_name()
for service in ['sssd', 'autofs']:
client.service_ctrl("stop", service)
client.service_ctrl("start", "firewalld")
multihost.client[0].run_command("iptables -A "
"OUTPUT -p tcp "
"--dport 636 -j DROP")
multihost.client[0].run_command("iptables -A "
"OUTPUT -p tcp "
"--dport 389 -j DROP")
client.clear_sssd_cache()
time.sleep(5)
cmdy = 'id foo1@%s' % domain_name
multihost.client[0].run_command(cmdy, raiseonerr=False)
cmd = 'sssctl domain-status %s' % domain_name
cmd1 = multihost.client[0].run_command(cmd, raiseonerr=False)
find = re.compile(r'Online status: Offline')
result = find.search(cmd1.stdout_text)
assert result is not None
client.firewall_port(636, 'OPEN')
client.firewall_port(389, 'OPEN')
client.firewall_port('ALL', 'delall')
client.service_ctrl("stop", "firewalld")
multihost.client[0].run_command("iptables -F")
time.sleep(60)
cmd2 = client.service_ctrl("start", "autofs")
assert cmd2 == 0

@pytest.mark.parametrize('add_nisobject', ['/export'], indirect=True)
@pytest.mark.tier1
def test_010_delay_in_unknown_mnt_pt_lookup_error(self, multihost,
Expand Down

0 comments on commit dac8706

Please sign in to comment.