mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 18:34:30 +00:00
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims - Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers - Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them - Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring - Document the new layout in docs/layout.md Co-authored-by: Junie <junie@jetbrains.com>
28 lines
575 B
Bash
28 lines
575 B
Bash
#shellcheck shell=sh
|
|
|
|
Describe 'expectation example'
|
|
It 'is succeeds because expectation is successful'
|
|
foo() { echo "foo"; }
|
|
When call foo
|
|
The output should eq "foo" # this is expectation
|
|
End
|
|
|
|
It 'is failure because expectation is fail'
|
|
foo() { echo "foo"; }
|
|
When call foo
|
|
The output should eq "bar"
|
|
End
|
|
|
|
Example 'you can write multiple expectations'
|
|
foo() {
|
|
echo "foo"
|
|
value=123
|
|
return 1
|
|
}
|
|
When call foo
|
|
The output should eq "foo"
|
|
The value "$value" should eq 123
|
|
The status should eq 1
|
|
End
|
|
End
|