hunk.code_window: 				baseCss,
   				baseManifestJson,
   			},
   			{
   				"subpath",
   				baseRootHtml,
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: 			{
   				"content security policy not found",
   				contentSecurityPolicyNotFoundHtml,
   				baseCss,
   				baseManifestJson,
   				"/subpath",
   				fmt.Errorf("failed to find 'Content-Security-Policy' meta tag to rewrite"),
   				contentSecurityPolicyNotFoundHtml,
   				baseCss,
   				baseManifestJson,
   			},
  
hunk.file_path: utils/subpath_test.go
hunk.type: add
file: package commands
  
  import (
  	"os"
  	"path/filepath"
  	"testing"
  
  	"github.com/mattermost/mattermost-server/utils"
  	"github.com/stretchr/testify/assert"
  	"github.com/stretchr/testify/require"
  )
  
  func TestPlugin(t *testing.T) {
  	th := Setup().InitBasic()
  	defer th.TearDown()
  
  	config := th.Config()
  	*config.PluginSettings.EnableUploads = true
  	*config.PluginSettings.Directory = "./test-plugins"
  	*config.PluginSettings.ClientDirectory = "./test-client-plugins"
  	th.SetConfig(config)
  
  	os.MkdirAll("./test-plugins", os.ModePerm)
  	os.MkdirAll("./test-client-plugins", os.ModePerm)
  
  	path, _ := utils.FindDir("tests")
  
  	os.Chdir(filepath.Join("..", "..", ".."))
  
  	th.CheckCommand(t, "plugin", "add", filepath.Join(path, "testplugin.tar.gz"))
  
  	th.CheckCommand(t, "plugin", "enable", "testplugin")
  	cfg, _, _, err := utils.LoadConfig(th.ConfigPath())
  	require.Nil(t, err)
  	assert.Equal(t, cfg.PluginSettings.PluginStates["testplugin"].Enable, true)
  
  	th.CheckCommand(t, "plugin", "disable", "testplugin")
  	cfg, _, _, err = utils.LoadConfig(th.ConfigPath())
  	require.Nil(t, err)
  	assert.Equal(t, cfg.PluginSettings.PluginStates["testplugin"].Enable, false)
  
  	th.CheckCommand(t, "plugin", "list")
  
  	th.CheckCommand(t, "plugin", "delete", "testplugin")
  
  	os.Chdir(filepath.Join("cmd", "mattermost", "commands"))
  }
  