PLT-6965 jira integration (plus plugin scaffolding) (#6918)
* plugin scaffolding / jira integration * add vendored testify packages * webhook fix * don't change i18n ids * support configuration watching * add basic jira plugin configuration to admin console * fix eslint errors * fix another eslint warning * polish * undo unintentional config.json commit >:( * test fix * add jira plugin diagnostics, remove dm support, add bot tag, generate web-safe secrets * rebase, implement requested changes * requested changes * remove tests and minimize makefile change * add missing license headers * add missing comma * remove bad line from Makefile
Этот коммит содержится в:
@@ -28,6 +28,24 @@ func newTestServer() (chan string, *httptest.Server) {
|
||||
return result, server
|
||||
}
|
||||
|
||||
func TestPluginSetting(t *testing.T) {
|
||||
before := utils.Cfg.PluginSettings.Plugins
|
||||
utils.Cfg.PluginSettings.Plugins = map[string]interface{}{
|
||||
"test": map[string]string{
|
||||
"foo": "bar",
|
||||
},
|
||||
}
|
||||
defer func() {
|
||||
utils.Cfg.PluginSettings.Plugins = before
|
||||
}()
|
||||
if pluginSetting("test", "foo", "asd") != "bar" {
|
||||
t.Fatal()
|
||||
}
|
||||
if pluginSetting("test", "qwe", "asd") != "asd" {
|
||||
t.Fatal()
|
||||
}
|
||||
}
|
||||
|
||||
func TestDiagnostics(t *testing.T) {
|
||||
Setup().InitBasic()
|
||||
|
||||
@@ -116,6 +134,7 @@ func TestDiagnostics(t *testing.T) {
|
||||
TRACK_CONFIG_SUPPORT,
|
||||
TRACK_CONFIG_NATIVEAPP,
|
||||
TRACK_CONFIG_ANALYTICS,
|
||||
TRACK_CONFIG_PLUGIN,
|
||||
TRACK_ACTIVITY,
|
||||
TRACK_SERVER,
|
||||
} {
|
||||
|
||||
Ссылка в новой задаче
Block a user