-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: JU4N98 <[email protected]>
- Loading branch information
Showing
8 changed files
with
117 additions
and
5 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,40 @@ | ||
#!/bin/bash | ||
|
||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
RESET='\033[0m' | ||
bad=0 | ||
|
||
ok(){ | ||
echo -e "${GREEN}✔️ $1 succeeded ${RESET}" | ||
} | ||
|
||
fail(){ | ||
echo -e "${RED}❌ $1 failed ${RESET}" | ||
} | ||
|
||
docker compose exec client su client -c "test -s /run/client/plugin_certs/svid.crt" | ||
if [ $? -eq 0 ]; then | ||
ok "Test plugin X.509 svid update" | ||
else | ||
fail "Test plugin X.509 svid update" | ||
exit 1 | ||
fi | ||
|
||
docker compose exec client su client -c "test -s /run/client/plugin_certs/jwt.json" | ||
if [ $? -eq 0 ]; then | ||
ok "Test plugin JWT svid update" | ||
else | ||
fail "Test plugin JWT svid update" | ||
exit 1 | ||
fi | ||
|
||
docker compose exec client su client -c "test -s /run/client/plugin_certs/jwk.json" | ||
if [ $? -eq 0 ]; then | ||
ok "Test plugin JWT bundle update" | ||
else | ||
fail "Test plugin JWT bundle update" | ||
exit 1 | ||
fi | ||
|
||
exit 0 |
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,15 @@ | ||
#!/bin/bash | ||
|
||
# Define the target directory path | ||
target_dir="./it" | ||
|
||
# Check if the target directory exists | ||
if [ ! -d "$target_dir" ]; then | ||
echo "Error: The target directory '$target_dir' does not exist." | ||
exit 1 | ||
fi | ||
|
||
# Change to the target directory | ||
cd "$target_dir" || exit | ||
|
||
bash run-plugin-test.sh 1 |
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