Skip to content

Commit

Permalink
tests: removing intg/test_confdb.py
Browse files Browse the repository at this point in the history
These test are covered test_sssctl.py
  • Loading branch information
Dan Lavu committed Sep 12, 2024
1 parent 0be58a2 commit 2ca5528
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 159 deletions.
1 change: 0 additions & 1 deletion src/tests/intg/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ dist_noinst_DATA = \
conftest.py \
sssd_hosts.py \
sssd_nets.py \
test_confdb.py \
test_sss_cache.py \
$(NULL)

Expand Down
158 changes: 0 additions & 158 deletions src/tests/intg/test_confdb.py

This file was deleted.

39 changes: 39 additions & 0 deletions src/tests/system/tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,45 @@ def test_files__root_user_is_ignored_on_lookups(client: Client):
assert client.tools.getent.passwd("root"), "Root user is not found using all services!"


@pytest.mark.importance("low")
@pytest.mark.builtwith("files-provider")
@pytest.mark.integration
@pytest.mark.topology(KnownTopology.Client)
def test_files__sssd_starts_without_the_domain_parameter(client: Client):
"""
:title: The domain parameter is missing and is enabled in the domain section
:setup:
1. Configure SSSD with no domain parameter and under domain 'enabled = true'
:steps:
1. Start SSSD
:expectedresults:
1. SSSD starts
:customerscenario: False
"""
client.sssd.sssd.remove_option("domain")
client.sssd.domain["enabled"] = "true"
assert client.sssd.start()


@pytest.mark.importance("low")
@pytest.mark.builtwith("files-provider")
@pytest.mark.integration
@pytest.mark.topology(KnownTopology.Client)
def test_files__sssd_starts_without_any_domains_enabled(client: Client):
"""
:title: SSSD starts without any domains enabled
:setup:
1. Configure SSSD with 'enable_files_domain = false'
:steps:
1. Start SSSD
:expectedresults:
1. SSSD starts
:customerscenario: False
"""
client.sssd.sssd["enable_files_domain"] = "false"
assert client.sssd.start()


@pytest.mark.importance("low")
@pytest.mark.builtwith("files-provider")
@pytest.mark.topology(KnownTopology.Client)
Expand Down

0 comments on commit 2ca5528

Please sign in to comment.