-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Testing of SAML Request/Response
- Improve Testing of SAML Request/Response with Saml2TestUtils - Configure assertionConsumerServiceLocation in one location. - Attempted move to OpenSaml4AuthenticationProvider requires a shadow dependency on opensaml to remove the need for non-FIPS compliant security provider. Not yet in place Signed-off-by: Duane May <duane.may@broadcom.com> Signed-off-by: Alicia Yingling <alicia.yingling@broadcom.com>
- Loading branch information
Showing
39 changed files
with
3,159 additions
and
2,458 deletions.
There are no files selected for viewing
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
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
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
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,53 @@ | ||
#!/bin/bash | ||
# | ||
# Gives counts of Disabled/Ignored Unit/Integration tests in the project | ||
# Usage: count-disabled-tests.sh [-l] | ||
# -l: List the disabled/ignored tests | ||
|
||
function main() { | ||
local tempFile | ||
local searchFor | ||
local disableCount | ||
local ignoreCount | ||
local total | ||
local unitTestsCount | ||
local integrationTestsCount | ||
|
||
tempFile=$(mktemp) | ||
searchFor='Disabled' | ||
find . -type f \( ! -wholename '*/target/*' ! -wholename './node_modules/*' ! -wholename '*/tmp/*' ! -wholename './out/*' ! -wholename '*/.gradle/*' ! -wholename '*/build/*' ! -wholename './.idea/*' ! -wholename './.git/*' \) -exec grep -H -A 1 "@$searchFor" {} \; | sed -e "s/^\.\///" | sed "/^--$/d; /\@${searchFor}/d" >"$tempFile" | ||
disableCount=$(wc -l <"$tempFile") | ||
|
||
searchFor='Ignore' | ||
find . -type f \( ! -wholename '*/target/*' ! -wholename './node_modules/*' ! -wholename '*/tmp/*' ! -wholename './out/*' ! -wholename '*/.gradle/*' ! -wholename '*/build/*' ! -wholename './.idea/*' ! -wholename './.git/*' \) -exec grep -H -A 1 "@$searchFor" {} \; | sed -e "s/^\.\///" | sed "/^--$/d; /\@${searchFor}/d" >>"$tempFile" | ||
total=$(wc -l <"$tempFile") | ||
ignoreCount=$(($total - $disableCount)) | ||
|
||
echo "Disabled: $disableCount" | ||
echo "Ignored: $ignoreCount" | ||
echo "Total: $total" | ||
echo | ||
|
||
unitTestsCount=$(cat "$tempFile" | grep -v "IT.java" | wc -l) | ||
integrationTestsCount=$(cat "$tempFile" | grep "IT.java" | wc -l) | ||
echo "Unit Tests: $unitTestsCount" | ||
echo "Integration Tests: $integrationTestsCount" | ||
echo "Total: $total" | ||
|
||
if [[ "$1" -eq "-l" ]]; then | ||
echo | ||
echo Unit Tests: | ||
echo | ||
cat "$tempFile" | grep -v "IT.java" | sort | ||
|
||
echo | ||
echo Integration Tests: | ||
echo | ||
cat "$tempFile" | grep "IT.java" | sort | ||
|
||
fi | ||
|
||
rm "$tempFile" | ||
} | ||
|
||
main "$@" |
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
Oops, something went wrong.