-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_Recreated this PR after rebasing with main._ Review the CONTRIBUTING.md file to setup your development station for BATS testing. --------- Co-authored-by: Sascha Bates <sbates@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
77 additions
and
40 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,15 @@ | ||
setup() { | ||
load "${BATS_LIBS_ROOT}/bats-support/load" | ||
load "${BATS_LIBS_ROOT}/bats-assert/load" | ||
} | ||
|
||
@test "can run secureli init" { | ||
run python secureli/main.py init -ry | ||
assert_output --partial 'SeCureLI has not been setup yet.' | ||
assert_output --partial 'SeCureLI has been installed successfully (language = Python)' | ||
} | ||
|
||
@test "can run secureli scan" { | ||
run python secureli/main.py scan -y | ||
assert_output --partial 'Scan executed successfully and detected no issues!' | ||
} |