make pushNotificationServer configurable in E2E (#25929)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f4fbc90e23
Коммит
9a066b0390
@@ -12,6 +12,7 @@ import {
|
||||
PluginSettings,
|
||||
ClusterSettings,
|
||||
CollapsedThreads,
|
||||
EmailSettings,
|
||||
} from '@mattermost/types/config';
|
||||
import testConfig from '@e2e-test.config';
|
||||
|
||||
@@ -21,6 +22,7 @@ export function getOnPremServerConfig(): AdminConfig {
|
||||
|
||||
type TestAdminConfig = {
|
||||
ClusterSettings: Partial<ClusterSettings>;
|
||||
EmailSettings: Partial<EmailSettings>;
|
||||
ExperimentalSettings: Partial<ExperimentalSettings>;
|
||||
PasswordSettings: Partial<PasswordSettings>;
|
||||
PluginSettings: Partial<PluginSettings>;
|
||||
@@ -35,6 +37,9 @@ const onPremServerConfig = (): Partial<TestAdminConfig> => {
|
||||
Enable: testConfig.haClusterEnabled,
|
||||
ClusterName: testConfig.haClusterName,
|
||||
},
|
||||
EmailSettings: {
|
||||
PushNotificationServer: testConfig.pushNotificationServer,
|
||||
},
|
||||
PasswordSettings: {
|
||||
MinimumLength: 5,
|
||||
Lowercase: false,
|
||||
@@ -60,6 +65,7 @@ const onPremServerConfig = (): Partial<TestAdminConfig> => {
|
||||
ServiceSettings: {
|
||||
SiteURL: testConfig.baseURL,
|
||||
EnableOnboardingFlow: false,
|
||||
GiphySdkKey: 's0glxvzVg9azvPipKxcPLpXV0q1x1fVP',
|
||||
},
|
||||
TeamSettings: {
|
||||
EnableOpenServer: true,
|
||||
@@ -69,7 +75,7 @@ const onPremServerConfig = (): Partial<TestAdminConfig> => {
|
||||
};
|
||||
|
||||
// Should be based only from the generated default config from ./server via "make config-reset"
|
||||
// Based on v9.1 server
|
||||
// Based on v9.5 server
|
||||
const defaultServerConfig: AdminConfig = {
|
||||
ServiceSettings: {
|
||||
SiteURL: '',
|
||||
@@ -132,7 +138,7 @@ const defaultServerConfig: AdminConfig = {
|
||||
WebsocketPort: 80,
|
||||
WebserverMode: 'gzip',
|
||||
EnableGifPicker: true,
|
||||
GiphySdkKey: 's0glxvzVg9azvPipKxcPLpXV0q1x1fVP',
|
||||
GiphySdkKey: '',
|
||||
EnableCustomEmoji: true,
|
||||
EnableEmojiPicker: true,
|
||||
PostEditTimeLimit: -1,
|
||||
@@ -180,8 +186,9 @@ const defaultServerConfig: AdminConfig = {
|
||||
EnableCustomGroups: true,
|
||||
SelfHostedPurchase: true,
|
||||
AllowSyncedDrafts: true,
|
||||
UniqueEmojiReactionLimitPerPost: 25,
|
||||
UniqueEmojiReactionLimitPerPost: 50,
|
||||
RefreshPostStatsRunTime: '00:00',
|
||||
MaximumPayloadSizeBytes: 100000,
|
||||
},
|
||||
TeamSettings: {
|
||||
SiteName: 'Mattermost',
|
||||
@@ -247,6 +254,7 @@ const defaultServerConfig: AdminConfig = {
|
||||
EnableSentry: true,
|
||||
AdvancedLoggingJSON: {},
|
||||
AdvancedLoggingConfig: '',
|
||||
MaxFieldSize: 2048,
|
||||
},
|
||||
ExperimentalAuditSettings: {
|
||||
FileEnabled: false,
|
||||
@@ -707,7 +715,12 @@ const defaultServerConfig: AdminConfig = {
|
||||
DeprecateCloudFree: false,
|
||||
CloudReverseTrial: false,
|
||||
EnableExportDirectDownload: false,
|
||||
MoveThreadsEnabled: false,
|
||||
StreamlinedMarketplace: true,
|
||||
CloudIPFiltering: false,
|
||||
ConsumePostHook: false,
|
||||
CloudAnnualRenewals: false,
|
||||
OutgoingOAuthConnections: false,
|
||||
},
|
||||
ImportSettings: {
|
||||
Directory: './import',
|
||||
@@ -720,10 +733,10 @@ const defaultServerConfig: AdminConfig = {
|
||||
WranglerSettings: {
|
||||
PermittedWranglerRoles: [],
|
||||
AllowedEmailDomain: [],
|
||||
MoveThreadMaxCount: 30,
|
||||
MoveThreadToAnotherTeamEnable: true,
|
||||
MoveThreadFromPrivateChannelEnable: true,
|
||||
MoveThreadFromDirectMessageChannelEnable: true,
|
||||
MoveThreadFromGroupMessageChannelEnable: true,
|
||||
MoveThreadMaxCount: 100,
|
||||
MoveThreadToAnotherTeamEnable: false,
|
||||
MoveThreadFromPrivateChannelEnable: false,
|
||||
MoveThreadFromDirectMessageChannelEnable: false,
|
||||
MoveThreadFromGroupMessageChannelEnable: false,
|
||||
},
|
||||
};
|
||||
|
||||
Ссылка в новой задаче
Block a user