mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 08:06:37 +08:00
feat(cloudflare): add DNS pointing integration
Implement Cloudflare connection management, pointing groups and members, asynchronous A-record reconciliation, node IP triggers, admin APIs, management pages, migrations, tests, and documentation.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// Copyright 2026 Arctel.net
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cloudflare
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSyncMemberTaskHandlerRejectsTrailingJSONContent(t *testing.T) {
|
||||
handler := &SyncMemberTaskHandler{}
|
||||
for _, payload := range [][]byte{
|
||||
[]byte(`{"member_id":7} {}`),
|
||||
[]byte(`{"member_id":7}}`),
|
||||
[]byte(`{"member_id":7}]`),
|
||||
} {
|
||||
if normalized, err := handler.ValidatePayload(payload); err == nil {
|
||||
t.Errorf("ValidatePayload(%s) = %s, nil; want non-nil error", payload, normalized)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user