-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify and align logic in test scenarios
Signed-off-by: Marcus Burghardt <[email protected]>
- Loading branch information
1 parent
6ab56a4
commit c299868
Showing
8 changed files
with
47 additions
and
35 deletions.
There are no files selected for viewing
13 changes: 7 additions & 6 deletions
13
...ide/services/sssd/sssd_enable_pam_services/tests/custom_conf_services_pam_missing.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/bin/bash | ||
# packages = sssd-common | ||
|
||
rm -rf /etc/sssd/conf.d/ | ||
mkdir -p /etc/sssd/conf.d/ | ||
SSSD_CONF="/etc/sssd/conf.d/sssd.conf" | ||
SSSD_CONF_FILE="/etc/sssd/sssd.conf" | ||
SSSD_CONF_DIR_FILE="/etc/sssd/conf.d/sssd.conf" | ||
SSSD_CONF_DIR_FILES="/etc/sssd/conf.d/*.conf" | ||
|
||
cp wrong_sssd.conf $SSSD_CONF | ||
rm -rf $SSSD_CONF_FILE $SSSD_CONF_DIR_FILES | ||
|
||
SSSD_CONF="/etc/sssd/sssd.conf" | ||
cp wrong_sssd.conf $SSSD_CONF | ||
for file in $SSSD_CONF_FILE $SSSD_CONF_DIR_FILE; do | ||
cp wrong_sssd.conf $file | ||
done |
9 changes: 6 additions & 3 deletions
9
linux_os/guide/services/sssd/sssd_enable_pam_services/tests/missing_sections.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#!/bin/bash | ||
# packages = sssd-common | ||
|
||
rm /etc/sssd/sssd.conf | ||
rm -rf /etc/sssd/conf.d/ | ||
SSSD_CONF_FILE="/etc/sssd/sssd.conf" | ||
SSSD_CONF_DIR_FILES="/etc/sssd/conf.d/*.conf" | ||
|
||
rm -rf $SSSD_CONF_FILE $SSSD_CONF_DIR_FILES | ||
|
||
# Only empty config without any section | ||
touch /etc/sssd/sssd.conf | ||
touch $SSSD_CONF_FILE |
16 changes: 8 additions & 8 deletions
16
linux_os/guide/services/sssd/sssd_enable_pam_services/tests/multiple_wrong_entries.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
linux_os/guide/services/sssd/sssd_enable_pam_services/tests/services_pam_missing.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
..._os/guide/services/sssd/sssd_enable_pam_services/tests/services_pam_wrong_section.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/bash | ||
# packages = sssd-common | ||
|
||
rm -rf /etc/sssd/conf.d/ | ||
SSSD_CONF="/etc/sssd/sssd.conf" | ||
cp wrong_sssd.conf $SSSD_CONF | ||
SSSD_CONF_FILE="/etc/sssd/sssd.conf" | ||
SSSD_CONF_DIR_FILES="/etc/sssd/conf.d/*.conf" | ||
|
||
rm -rf $SSSD_CONF_FILE $SSSD_CONF_DIR_FILES | ||
cp wrong_sssd.conf $SSSD_CONF_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
linux_os/guide/services/sssd/sssd_enable_pam_services/tests/sssd_pam_services.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
linux_os/guide/services/sssd/sssd_enable_pam_services/tests/sssd_pam_services_conf_d.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters