mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-09-09 02:17:17 +00:00
- Add config.get, skills.list WS contract tests - Add /v1/providers HTTP contract test - Add JSON schemas for ws_connect, ws_chat_send, http_chat_completions - Document breaking change policy
20 lines
478 B
Go
20 lines
478 B
Go
//go:build integration
|
|
|
|
package ws_methods
|
|
|
|
import "testing"
|
|
|
|
// CONTRACT: config.get response MUST include config, hash, path.
|
|
// Requires owner + master scope.
|
|
func TestContract_WS_ConfigGet(t *testing.T) {
|
|
wsURL, _ := getTestServer(t)
|
|
client, _ := connect(t, wsURL, nil)
|
|
|
|
resp := client.send(t, "config.get", map[string]any{})
|
|
|
|
// Required fields
|
|
assertField(t, resp, "config", "object")
|
|
assertField(t, resp, "hash", "string")
|
|
assertField(t, resp, "path", "string")
|
|
}
|