mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-04-28 13:56:21 +02:00
Release prep: 54 engines, self-hosted signatures, i18n, dashboard updates
This commit is contained in:
parent
694e32be26
commit
41cbfd6e0a
178 changed files with 36008 additions and 399 deletions
|
|
@ -54,7 +54,7 @@ func TestSOC_Ingest_ReturnsEventID(t *testing.T) {
|
|||
srv := newTestServerWithSOC(t)
|
||||
|
||||
result, err := srv.handleSOCIngest(nil, callToolReq("soc_ingest", map[string]interface{}{
|
||||
"source": "sentinel_core",
|
||||
"source": "sentinel-core",
|
||||
"severity": "HIGH",
|
||||
"category": "jailbreak",
|
||||
"description": "Prompt injection detected in user input",
|
||||
|
|
@ -335,7 +335,7 @@ func TestSOC_SensorAuth_RejectsInvalidKey(t *testing.T) {
|
|||
event.SensorKey = "sk_wrong_key_999"
|
||||
_, _, err := srv.socSvc.IngestEvent(event)
|
||||
require.Error(t, err, "should reject event with invalid sensor key")
|
||||
assert.Contains(t, err.Error(), "sensor auth failed")
|
||||
assert.Contains(t, err.Error(), "authentication failed")
|
||||
}
|
||||
|
||||
func TestSOC_SensorAuth_AcceptsValidKey(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue