From 28723a94c60edf8c55d09cf42ebac2a11ca4c7a6 Mon Sep 17 00:00:00 2001 From: Marco Dinis Date: Thu, 19 Oct 2023 09:44:39 +0100 Subject: [PATCH] fix encode plugin data unit test --- access/msteams/plugindata_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,