[MM-20309] production public key (#13244)

* Add production public key

* Fix unit tests
Этот коммит содержится в:
Shota Gvinepadze
2019-12-05 23:41:52 +04:00
коммит произвёл GitHub
родитель 5122b9e292
Коммит 9898f91f7e
4 изменённых файлов: 150 добавлений и 38 удалений

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

@@ -562,6 +562,11 @@ func TestPluginSync(t *testing.T) {
require.Len(t, pluginStatus, 0)
// Correct signature
key, err := os.Open(filepath.Join(path, "development-private-key.asc"))
require.NoError(t, err)
appErr = th.App.AddPublicKey("pub_key", key)
checkNoError(t, appErr)
signatureFileReader, err = os.Open(filepath.Join(path, "testplugin.tar.gz.sig"))
require.NoError(t, err)
defer signatureFileReader.Close()
@@ -576,6 +581,12 @@ func TestPluginSync(t *testing.T) {
require.Nil(t, err)
require.Len(t, pluginStatus, 1)
require.Equal(t, pluginStatus[0].PluginId, "testplugin")
appErr = th.App.DeletePublicKey("pub_key")
checkNoError(t, appErr)
appErr = th.App.RemovePlugin("testplugin")
checkNoError(t, appErr)
})
}
}