Make opt-in flag

This commit is contained in:
binwiederhier
2026-05-31 14:28:04 -04:00
parent 301be79f0a
commit 204723f3c0
10 changed files with 236 additions and 43 deletions
-7
View File
@@ -7,7 +7,6 @@ import (
"heckel.io/ntfy/v2/server"
"heckel.io/ntfy/v2/test"
"testing"
"time"
)
func TestCLI_Access_Show(t *testing.T) {
@@ -44,12 +43,6 @@ user * (role: anonymous, tier: none)
`
require.Equal(t, expected, stdout.String())
// The CLI commands above ran against a separate Manager instance (their own
// process-equivalent), so the server's ACL cache hasn't seen the new grants
// yet. Wait for the server's background reloader (interval set in
// newTestServerWithAuth) to pick them up.
time.Sleep(150 * time.Millisecond)
// See if access permissions match
app, _, _, _ = newTestApp()
require.Error(t, app.Run([]string{