-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: support multiple test files for helm test (#255)
Signed-off-by: Lenin Mehedy <[email protected]>
- Loading branch information
1 parent
5b17978
commit d25edfe
Showing
4 changed files
with
50 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
readonly SCRIPT_DIR | ||
|
||
# shellcheck source=./helper.sh | ||
source "${SCRIPT_DIR}/helper.sh" | ||
|
||
function test_basic_deployment() { | ||
local test_node_total_status | ||
local test_systemctl_status | ||
|
||
test_node_total | ||
local status="$?" | ||
[ "${status}" = "${EX_OK}" ] && test_node_total_status="PASS" || test_node_total_status="FAIL" | ||
|
||
test_systemctl | ||
local status="$?" | ||
[ "${status}" = "${EX_OK}" ] && test_systemctl_status="PASS" || test_systemctl_status="FAIL" | ||
|
||
echo "-------------------------------------------------------------" | ||
echo "Test results" | ||
echo "-------------------------------------------------------------" | ||
echo "test_node_total: ${test_node_total_status}" | ||
echo "test_systemctl: ${test_systemctl_status}" | ||
|
||
[ "${test_node_total_status}" = "PASS" ] && \ | ||
[ "${test_systemctl_status}" = "PASS" ] || return "${EX_ERR}" | ||
|
||
return "${EX_OK}" | ||
} | ||
|
||
echo "Test scripts: " | ||
echo "Test scripts: " | ||
echo "==========================" | ||
ls -la "${SCRIPT_DIR}"/ | ||
|
||
test_basic_deployment | ||
|
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