Drop JSON blobs from log export CSV rows
Audit exports no longer emit a metadata JSON column. SCIM full names come only from membership profiles, not request bodies. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
@@ -24,7 +24,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestScimEmailFromUserName(t *testing.T) {
|
||||
@@ -35,21 +34,6 @@ func TestScimEmailFromUserName(t *testing.T) {
|
||||
assert.Equal(t, "", scimEmailFromUserName(""))
|
||||
}
|
||||
|
||||
func TestScimDisplayNameFromJSON(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
displayName := scimDisplayNameFromJSON(`{"displayName":"Jane Doe"}`)
|
||||
require.Equal(t, "Jane Doe", displayName)
|
||||
|
||||
formatted := scimDisplayNameFromJSON(`{"name":{"formatted":"John Smith"}}`)
|
||||
require.Equal(t, "John Smith", formatted)
|
||||
|
||||
givenFamily := scimDisplayNameFromJSON(`{"name":{"givenName":"John","familyName":"Smith"}}`)
|
||||
require.Equal(t, "John Smith", givenFamily)
|
||||
|
||||
assert.Equal(t, "", scimDisplayNameFromJSON("not json"))
|
||||
}
|
||||
|
||||
func TestUniqueNonEmptyStrings(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user