summaryrefslogtreecommitdiffstats
path: root/plugin/rpcplugin/main_test.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-01-15 11:21:06 -0600
committerChristopher Speller <crspeller@gmail.com>2018-01-15 09:21:06 -0800
commitf5c8a71698d0a7a16c68be220e49fe64bfee7f5c (patch)
tree194b9cc79eceb1c91c44e39b9d797671c178fe0e /plugin/rpcplugin/main_test.go
parent7e5ce976681e99be6b26d428935ba1106d530efa (diff)
downloadchat-f5c8a71698d0a7a16c68be220e49fe64bfee7f5c.tar.gz
chat-f5c8a71698d0a7a16c68be220e49fe64bfee7f5c.tar.bz2
chat-f5c8a71698d0a7a16c68be220e49fe64bfee7f5c.zip
ABC-22: Plugin sandboxing for linux/amd64 (#8068)
* plugin sandboxing * remove unused type * better symlink handling, better remounting, better test, whitespace fixes, and comment on the remounting * fix test compile error * big simplification for getting mount flags * mask statfs flags to the ones we're interested in
Diffstat (limited to 'plugin/rpcplugin/main_test.go')
-rw-r--r--plugin/rpcplugin/main_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/rpcplugin/main_test.go b/plugin/rpcplugin/main_test.go
index 5a69971ac..6cdd46df0 100644
--- a/plugin/rpcplugin/main_test.go
+++ b/plugin/rpcplugin/main_test.go
@@ -11,6 +11,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/plugin/plugintest"
+ "github.com/mattermost/mattermost-server/plugin/rpcplugin/rpcplugintest"
)
func TestMain(t *testing.T) {
@@ -19,7 +20,7 @@ func TestMain(t *testing.T) {
defer os.RemoveAll(dir)
plugin := filepath.Join(dir, "plugin.exe")
- compileGo(t, `
+ rpcplugintest.CompileGo(t, `
package main
import (