mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 20:08:05 +08:00
32 lines
968 B
Bash
Executable File
32 lines
968 B
Bash
Executable File
# shellcheck shell=sh
|
|
|
|
Describe 'SafeShield lifecycle and refresh state machines'
|
|
It 'keeps DNS running before installation failures and rolls back post-install failures'
|
|
When call ss_case_refresh_state_machine
|
|
The status should be success
|
|
The output should equal ''
|
|
The error should equal ''
|
|
End
|
|
|
|
It 'applies cached local rules idempotently and rolls back failed fast applies'
|
|
When call ss_case_local_apply_state_machine
|
|
The status should be success
|
|
The output should equal ''
|
|
The error should equal ''
|
|
End
|
|
|
|
It 'serializes full refresh and local apply workers with a termination-aware lock'
|
|
When call ss_case_refresh_locking
|
|
The status should be success
|
|
The output should equal ''
|
|
The error should equal ''
|
|
End
|
|
|
|
It 'starts and stops SafeShield safely across disabled, statistics, and migration paths'
|
|
When call ss_case_service_lifecycle
|
|
The status should be success
|
|
The output should equal ''
|
|
The error should equal ''
|
|
End
|
|
End
|