diff --git a/access/msteams/plugindata_test.go b/access/msteams/plugindata_test.go index 1b2dd69b7..a3831b161 100644 --- a/access/msteams/plugindata_test.go +++ b/access/msteams/plugindata_test.go @@ -42,13 +42,14 @@ const messageData = "eyJpZCI6IkNIQU5ORUwxIiwidHMiOiIwMDAwMDAxIiwicmlkIjoiZm9vQGV func TestEncodePluginData(t *testing.T) { dataMap, err := EncodePluginData(samplePluginData) assert.NoError(t, err) - assert.Len(t, dataMap, 7) + assert.GreaterOrEqual(t, dataMap, 8) assert.Equal(t, "user-foo", dataMap["user"]) assert.Equal(t, "role-foo,role-bar", dataMap["roles"]) assert.Equal(t, "foo reason", dataMap["request_reason"]) assert.Equal(t, "3", dataMap["reviews_count"]) assert.Equal(t, "APPROVED", dataMap["resolution"]) assert.Equal(t, "foo ok", dataMap["resolve_reason"]) + assert.Equal(t, "", dataMap["resources"]) assert.Equal( t, messageData,