Files
viettranx 6e7e15cf4a test(contracts): complete P1 contract tests with schemas and policy
- 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
2026-04-12 21:52:29 +07:00

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")
}