Commit 708bf188 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'bastianccm-master-patch-53163' into 'master'

Error Tracking: Fix collecting errors for golang

See merge request gitlab-org/gitlab!78199
parents 5e6413e3 e0d5bee3
......@@ -13,12 +13,30 @@
"type": "object"
},
"exception": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/exception"
}
},
{
"type": "object",
"required": ["values"],
"properties": {
"values": {
"type": "array",
"items": {
"$ref": "#/definitions/exception"
}
}
}
}
]
}
},
"definitions": {
"exception": {
"type": "object",
"required": [],
"properties": {
......@@ -70,7 +88,4 @@
}
}
}
}
}
}
}
......@@ -42,6 +42,12 @@ RSpec.describe ErrorTracking::Collector::PayloadValidator do
it_behaves_like 'valid payload'
end
context 'go payload' do
let(:payload) { Gitlab::Json.parse(fixture_file('error_tracking/go_parsed_event.json')) }
it_behaves_like 'valid payload'
end
context 'empty payload' do
let(:payload) { '' }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment