mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 17:54:32 +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>
1.3 KiB
1.3 KiB
Project directory structure
Example directory structure and options
Separate a separate directory for each utility and test it with test_spec.sh.
The execution directory for testing is where the specfile is located.
<PROJECT-ROOT>
├─ .shellspec
│
├─ script1/
│ ├─ script1.sh
│ └─ test_spec.sh
│
├─ script2/
│ ├─ script2.sh
│ └─ test_spec.sh
│
├─ spec/
│ ├─ spec_helper.sh
│ │ :
# .shellspec
--default-path "**/test_spec.sh"
--execdir @specfile
Separate a separate directory for each utility and test it with spec/*_spec.sh.
The test execution directory is where the script is located.
<PROJECT-ROOT>
├─ .shellspec
│
├─ script1/
│ ├─ .shellspec-basedir
│ ├─ bin/
│ │ ├─ script1.sh
│ │ │ :
│ └─ spec/
│ ├─ script1_spec.sh
│ │ :
│
├─ script2/
│ ├─ .shellspec-basedir
│ ├─ bin/
│ │ ├─ script2.sh
│ │ │ :
│ └─ spec/
│ ├─ script2_spec.sh
│ │ :
│
├─ spec/
│ ├─ spec_helper.sh
│ ├─ support/
│ │ :
# .shellspec
--default-path "**/spec"
--execdir @basedir/bin`