Этот коммит содержится в:
Jesse Hallam
2024-05-10 18:13:05 -03:00
коммит произвёл GitHub
родитель daf84488cc
Коммит 630bd40141
17 изменённых файлов: 95 добавлений и 91 удалений

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

@@ -11,6 +11,7 @@ import (
"github.com/mattermost/mattermost/server/v8/cmd/mmctl/client"
"github.com/mattermost/mattermost/server/v8/cmd/mmctl/printer"
"github.com/mattermost/mattermost/server/v8/tests"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/utils"
@@ -19,9 +20,8 @@ import (
func (s *MmctlE2ETestSuite) TestExportListCmdF() {
s.SetupTestHelper()
serverPath := os.Getenv("MM_SERVER_PATH")
importName := "import_test.zip"
importFilePath := filepath.Join(serverPath, "tests", importName)
importFilePath := filepath.Join(tests.GetPackagePath(), importName)
exportPath, err := filepath.Abs(filepath.Join(*s.th.App.Config().FileSettings.Directory,
*s.th.App.Config().ExportSettings.Directory))
s.Require().Nil(err)
@@ -72,9 +72,8 @@ func (s *MmctlE2ETestSuite) TestExportListCmdF() {
func (s *MmctlE2ETestSuite) TestExportDeleteCmdF() {
s.SetupTestHelper()
serverPath := os.Getenv("MM_SERVER_PATH")
importName := "import_test.zip"
importFilePath := filepath.Join(serverPath, "tests", importName)
importFilePath := filepath.Join(tests.GetPackagePath(), importName)
exportPath, err := filepath.Abs(filepath.Join(*s.th.App.Config().FileSettings.Directory,
*s.th.App.Config().ExportSettings.Directory))
s.Require().Nil(err)
@@ -179,9 +178,8 @@ func (s *MmctlE2ETestSuite) TestExportCreateCmdF() {
func (s *MmctlE2ETestSuite) TestExportDownloadCmdF() {
s.SetupTestHelper()
serverPath := os.Getenv("MM_SERVER_PATH")
importName := "import_test.zip"
importFilePath := filepath.Join(serverPath, "tests", importName)
importFilePath := filepath.Join(tests.GetPackagePath(), importName)
exportPath, err := filepath.Abs(filepath.Join(*s.th.App.Config().FileSettings.Directory,
*s.th.App.Config().ExportSettings.Directory))
s.Require().Nil(err)