Commit 0cfa1b6
committed
refactor(scripts): Phase 4 β reorganize into functional subdirectories
Scripts categorized into:
scripts/system/ (health-check, process-monitor-alert, system-monitoring,
system-resource-monitor, system-resource-reporter)
scripts/backup/ (backup, log-file-cleanup, log-rotation, rotate-old-files,
rsync-backup, scp-remote-backup)
scripts/monitoring/ (account-expiry-notify, check-ssl-expiry, disk-usage-monitor,
http-status, monitor-open-ports)
scripts/ci-cd/ (auto-deployment, gc-cleanup, jenkins-job, sonarqube-slack-notify)
scripts/kubernetes/ (argo-cd-sync, kubectl-namespace-cleanup, scale-deployment)
scripts/devops/ (docker-log-monitor, git-repo-stats, grafana-metrics,
package-updates, splunk-search)
scripts/notifications/ (create-confluence-page, log-monitor, slack-notify)
scripts/utils/ (random-password-generator, restart-containers,
user-account-management)
Tests mirror the script structure in tests/<category>/.
Changes:
- Updated utils.sh source path: ../lib/utils.sh β ../../lib/utils.sh (wait no)
actually: ${SCRIPT_DIR}/lib β ${SCRIPT_DIR}/../lib in all 34 scripts
- Updated BATS load paths to use ${BATS_TEST_DIRNAME}/../test_helper/
- Updated BATS SCRIPT_PATH to use ../../scripts/<category>/
- Updated CI to use find-based test discovery (excludes test_helper/)
- Deleted obsolete password-generator.bats (superseded by utils/ version)
Test result: 196/196 pass, exit 01 parent 759ff5a commit 0cfa1b6
70 files changed
Lines changed: 138 additions & 165 deletions
File tree
- .github/workflows
- scripts
- backup
- ci-cd
- devops
- kubernetes
- monitoring
- notifications
- system
- utils
- tests
- backup
- ci-cd
- devops
- kubernetes
- monitoring
- notifications
- system
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments