MM-59954 Community plugins telemetry (#28226)

* add known plugins to the list of possible plugins to be located

* improve testing and fix config data collection

* Improve testing

* remove empty lines

* make linter happy

* go through all plugins
Этот коммит содержится в:
Guillermo Vayá
2024-09-23 12:59:19 +02:00
коммит произвёл GitHub
родитель 87ad717434
Коммит 343746c4b6
2 изменённых файлов: 22 добавлений и 18 удалений

Просмотреть файл

@@ -552,9 +552,12 @@ func TestRudderTelemetry(t *testing.T) {
assert.Contains(t, b.Properties, "enable_testplugin")
assert.Contains(t, b.Properties, "version_testplugin")
// Confirm known plugins are not present
assert.NotContains(t, b.Properties, "enable_jira")
assert.NotContains(t, b.Properties, "version_jira")
// Confirm known plugins are present
assert.Contains(t, b.Properties, "enable_jira")
assert.Contains(t, b.Properties, "version_jira")
// Confirm it doesn't contain unknown plugins
assert.NotContains(t, b.Properties, "enable_something")
}
}
})