-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and simplify test scenario scripts
- Loading branch information
1 parent
c0de3ee
commit 5eafed2
Showing
9 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
...ashing_algorithm/set_password_hashing_min_rounds_logindefs/tests/argument_missing.pass.sh
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
.../set_password_hashing_algorithm/set_password_hashing_min_rounds_logindefs/tests/common.sh
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
...nds_logindefs/tests/correct_value.pass.sh → ...ds_logindefs/tests/correct_values.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
|
||
source common.sh | ||
|
||
echo "SHA_CRYPT_MIN_ROUNDS 5000" > "/etc/login.defs" | ||
echo "SHA_CRYPT_MAX_ROUNDS 5000" >> "/etc/login.defs" |
4 changes: 4 additions & 0 deletions
4
...g_algorithm/set_password_hashing_min_rounds_logindefs/tests/missing_max_parameter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Default values are 5000 if the parameters are not defined. | ||
echo "SHA_CRYPT_MIN_ROUNDS 5000" > "/etc/login.defs" |
4 changes: 4 additions & 0 deletions
4
...g_algorithm/set_password_hashing_min_rounds_logindefs/tests/missing_min_parameter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Default values are 5000 if the parameters are not defined. | ||
echo "SHA_CRYPT_MAX_ROUNDS 5000" > "/etc/login.defs" |
4 changes: 4 additions & 0 deletions
4
...hing_algorithm/set_password_hashing_min_rounds_logindefs/tests/missing_parameters.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Default values are 5000 if the parameters are not defined. | ||
truncate -s 0 "/etc/login.defs" |
4 changes: 4 additions & 0 deletions
4
...ng_algorithm/set_password_hashing_min_rounds_logindefs/tests/only_max_value_wrong.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
echo "SHA_CRYPT_MIN_ROUNDS 5000" > "/etc/login.defs" | ||
echo "SHA_CRYPT_MAX_ROUNDS 4999" >> "/etc/login.defs" |
3 changes: 1 addition & 2 deletions
3
...ounds_logindefs/tests/wrong_value.fail.sh → ...indefs/tests/only_min_value_wrong.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,5 +1,4 @@ | ||
#!/bin/bash | ||
|
||
source common.sh | ||
|
||
echo "SHA_CRYPT_MIN_ROUNDS 4999" > "/etc/login.defs" | ||
echo "SHA_CRYPT_MAX_ROUNDS 5000" >> "/etc/login.defs" |
4 changes: 4 additions & 0 deletions
4
...rd_hashing_algorithm/set_password_hashing_min_rounds_logindefs/tests/wrong_values.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
echo "SHA_CRYPT_MIN_ROUNDS 4999" > "/etc/login.defs" | ||
echo "SHA_CRYPT_MAX_ROUNDS 4999" >> "/etc/login.defs" |