make pushNotificationServer configurable in E2E (#25929)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f4fbc90e23
Коммит
9a066b0390
@@ -36,6 +36,7 @@ export default defineConfig({
|
|||||||
minioS3Endpoint: 'localhost:9000',
|
minioS3Endpoint: 'localhost:9000',
|
||||||
minioS3SSL: false,
|
minioS3SSL: false,
|
||||||
numberOfTrialUsers: 100,
|
numberOfTrialUsers: 100,
|
||||||
|
pushNotificationServer: 'https://push-test.mattermost.com',
|
||||||
resetBeforeTest: false,
|
resetBeforeTest: false,
|
||||||
runLDAPSync: true,
|
runLDAPSync: true,
|
||||||
secondServerURL: 'http://localhost/s/p',
|
secondServerURL: 'http://localhost/s/p',
|
||||||
|
|||||||
@@ -106,7 +106,10 @@
|
|||||||
"ManagedResourcePaths": "",
|
"ManagedResourcePaths": "",
|
||||||
"EnableCustomGroups": true,
|
"EnableCustomGroups": true,
|
||||||
"SelfHostedPurchase": true,
|
"SelfHostedPurchase": true,
|
||||||
"AllowSyncedDrafts": true
|
"AllowSyncedDrafts": true,
|
||||||
|
"UniqueEmojiReactionLimitPerPost": 50,
|
||||||
|
"RefreshPostStatsRunTime": "00:00",
|
||||||
|
"MaximumPayloadSizeBytes": 100000
|
||||||
},
|
},
|
||||||
"TeamSettings": {
|
"TeamSettings": {
|
||||||
"SiteName": "Mattermost",
|
"SiteName": "Mattermost",
|
||||||
@@ -167,8 +170,6 @@
|
|||||||
"ConnectionSecurity": "",
|
"ConnectionSecurity": "",
|
||||||
"SendPushNotifications": true,
|
"SendPushNotifications": true,
|
||||||
"PushNotificationServer": "https://push-test.mattermost.com",
|
"PushNotificationServer": "https://push-test.mattermost.com",
|
||||||
"PushNotificationServerType": "custom",
|
|
||||||
"PushNotificationServerLocation": "us",
|
|
||||||
"PushNotificationContents": "generic",
|
"PushNotificationContents": "generic",
|
||||||
"PushNotificationBuffer": 1000,
|
"PushNotificationBuffer": 1000,
|
||||||
"EnableEmailBatching": false,
|
"EnableEmailBatching": false,
|
||||||
@@ -366,7 +367,9 @@
|
|||||||
"EnableFileDeletion": false,
|
"EnableFileDeletion": false,
|
||||||
"EnableBoardsDeletion": false,
|
"EnableBoardsDeletion": false,
|
||||||
"MessageRetentionDays": 365,
|
"MessageRetentionDays": 365,
|
||||||
|
"MessageRetentionHours": 0,
|
||||||
"FileRetentionDays": 365,
|
"FileRetentionDays": 365,
|
||||||
|
"FileRetentionHours": 0,
|
||||||
"BoardsRetentionDays": 365,
|
"BoardsRetentionDays": 365,
|
||||||
"DeletionJobStartTime": "02:00",
|
"DeletionJobStartTime": "02:00",
|
||||||
"BatchSize": 3000,
|
"BatchSize": 3000,
|
||||||
@@ -385,7 +388,9 @@
|
|||||||
"SMTPUsername": "",
|
"SMTPUsername": "",
|
||||||
"SMTPPassword": "",
|
"SMTPPassword": "",
|
||||||
"EmailAddress": "",
|
"EmailAddress": "",
|
||||||
"SMTPServerTimeout": 1800
|
"SMTPServerTimeout": 1800,
|
||||||
|
"CustomSMTPServerName": "",
|
||||||
|
"CustomSMTPPort": "25"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ProductSettings": {},
|
"ProductSettings": {},
|
||||||
@@ -417,7 +422,8 @@
|
|||||||
"ChimeraOAuthProxyURL": ""
|
"ChimeraOAuthProxyURL": ""
|
||||||
},
|
},
|
||||||
"DisplaySettings": {
|
"DisplaySettings": {
|
||||||
"CustomURLSchemes": []
|
"CustomURLSchemes": [],
|
||||||
|
"MaxMarkdownNodes": 0
|
||||||
},
|
},
|
||||||
"GuestAccountsSettings": {
|
"GuestAccountsSettings": {
|
||||||
"Enable": true,
|
"Enable": true,
|
||||||
@@ -439,5 +445,14 @@
|
|||||||
"ExportSettings": {
|
"ExportSettings": {
|
||||||
"Directory": "./export",
|
"Directory": "./export",
|
||||||
"RetentionDays": 30
|
"RetentionDays": 30
|
||||||
|
},
|
||||||
|
"WranglerSettings": {
|
||||||
|
"PermittedWranglerRoles": [],
|
||||||
|
"AllowedEmailDomain": [],
|
||||||
|
"MoveThreadMaxCount": 100,
|
||||||
|
"MoveThreadToAnotherTeamEnable": false,
|
||||||
|
"MoveThreadFromPrivateChannelEnable": false,
|
||||||
|
"MoveThreadFromDirectMessageChannelEnable": false,
|
||||||
|
"MoveThreadFromGroupMessageChannelEnable": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
"EnableIncomingWebhooks": true,
|
"EnableIncomingWebhooks": true,
|
||||||
"EnableOutgoingWebhooks": true,
|
"EnableOutgoingWebhooks": true,
|
||||||
"EnableCommands": true,
|
"EnableCommands": true,
|
||||||
|
"OutgoingIntegrationRequestsTimeout": 30,
|
||||||
"EnablePostUsernameOverride": false,
|
"EnablePostUsernameOverride": false,
|
||||||
"EnablePostIconOverride": false,
|
"EnablePostIconOverride": false,
|
||||||
"GoogleDeveloperKey": "",
|
"GoogleDeveloperKey": "",
|
||||||
@@ -106,7 +107,10 @@
|
|||||||
"ManagedResourcePaths": "",
|
"ManagedResourcePaths": "",
|
||||||
"EnableCustomGroups": true,
|
"EnableCustomGroups": true,
|
||||||
"SelfHostedPurchase": true,
|
"SelfHostedPurchase": true,
|
||||||
"AllowSyncedDrafts": true
|
"AllowSyncedDrafts": true,
|
||||||
|
"UniqueEmojiReactionLimitPerPost": 50,
|
||||||
|
"RefreshPostStatsRunTime": "00:00",
|
||||||
|
"MaximumPayloadSizeBytes": 100000
|
||||||
},
|
},
|
||||||
"TeamSettings": {
|
"TeamSettings": {
|
||||||
"SiteName": "Mattermost",
|
"SiteName": "Mattermost",
|
||||||
@@ -170,7 +174,8 @@
|
|||||||
"VerboseDiagnostics": false,
|
"VerboseDiagnostics": false,
|
||||||
"EnableSentry": false,
|
"EnableSentry": false,
|
||||||
"AdvancedLoggingJSON": {},
|
"AdvancedLoggingJSON": {},
|
||||||
"AdvancedLoggingConfig": ""
|
"AdvancedLoggingConfig": "",
|
||||||
|
"MaxFieldSize": 2048
|
||||||
},
|
},
|
||||||
"ExperimentalAuditSettings": {
|
"ExperimentalAuditSettings": {
|
||||||
"FileEnabled": false,
|
"FileEnabled": false,
|
||||||
@@ -264,8 +269,6 @@
|
|||||||
"ConnectionSecurity": "",
|
"ConnectionSecurity": "",
|
||||||
"SendPushNotifications": true,
|
"SendPushNotifications": true,
|
||||||
"PushNotificationServer": "https://push-test.mattermost.com",
|
"PushNotificationServer": "https://push-test.mattermost.com",
|
||||||
"PushNotificationServerType": "custom",
|
|
||||||
"PushNotificationServerLocation": "us",
|
|
||||||
"PushNotificationContents": "generic",
|
"PushNotificationContents": "generic",
|
||||||
"PushNotificationBuffer": 1000,
|
"PushNotificationBuffer": 1000,
|
||||||
"EnableEmailBatching": false,
|
"EnableEmailBatching": false,
|
||||||
@@ -534,7 +537,9 @@
|
|||||||
"EnableFileDeletion": false,
|
"EnableFileDeletion": false,
|
||||||
"EnableBoardsDeletion": false,
|
"EnableBoardsDeletion": false,
|
||||||
"MessageRetentionDays": 365,
|
"MessageRetentionDays": 365,
|
||||||
|
"MessageRetentionHours": 0,
|
||||||
"FileRetentionDays": 365,
|
"FileRetentionDays": 365,
|
||||||
|
"FileRetentionHours": 0,
|
||||||
"BoardsRetentionDays": 365,
|
"BoardsRetentionDays": 365,
|
||||||
"DeletionJobStartTime": "02:00",
|
"DeletionJobStartTime": "02:00",
|
||||||
"BatchSize": 3000,
|
"BatchSize": 3000,
|
||||||
@@ -553,7 +558,9 @@
|
|||||||
"SMTPUsername": "",
|
"SMTPUsername": "",
|
||||||
"SMTPPassword": "",
|
"SMTPPassword": "",
|
||||||
"EmailAddress": "",
|
"EmailAddress": "",
|
||||||
"SMTPServerTimeout": 1800
|
"SMTPServerTimeout": 1800,
|
||||||
|
"CustomSMTPServerName": "",
|
||||||
|
"CustomSMTPPort": "25"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"JobSettings": {
|
"JobSettings": {
|
||||||
@@ -591,7 +598,8 @@
|
|||||||
"ChimeraOAuthProxyURL": ""
|
"ChimeraOAuthProxyURL": ""
|
||||||
},
|
},
|
||||||
"DisplaySettings": {
|
"DisplaySettings": {
|
||||||
"CustomURLSchemes": []
|
"CustomURLSchemes": [],
|
||||||
|
"MaxMarkdownNodes": 0
|
||||||
},
|
},
|
||||||
"GuestAccountsSettings": {
|
"GuestAccountsSettings": {
|
||||||
"Enable": true,
|
"Enable": true,
|
||||||
@@ -613,5 +621,14 @@
|
|||||||
"ExportSettings": {
|
"ExportSettings": {
|
||||||
"Directory": "./export",
|
"Directory": "./export",
|
||||||
"RetentionDays": 30
|
"RetentionDays": 30
|
||||||
|
},
|
||||||
|
"WranglerSettings": {
|
||||||
|
"PermittedWranglerRoles": [],
|
||||||
|
"AllowedEmailDomain": [],
|
||||||
|
"MoveThreadMaxCount": 100,
|
||||||
|
"MoveThreadToAnotherTeamEnable": false,
|
||||||
|
"MoveThreadFromPrivateChannelEnable": false,
|
||||||
|
"MoveThreadFromDirectMessageChannelEnable": false,
|
||||||
|
"MoveThreadFromGroupMessageChannelEnable": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,6 +109,9 @@ export const getDefaultConfig = () => {
|
|||||||
ElasticsearchSettings: {
|
ElasticsearchSettings: {
|
||||||
ConnectionURL: cypressEnv.elasticsearchConnectionURL,
|
ConnectionURL: cypressEnv.elasticsearchConnectionURL,
|
||||||
},
|
},
|
||||||
|
EmailSettings: {
|
||||||
|
PushNotificationServer: cypressEnv.pushNotificationServer,
|
||||||
|
},
|
||||||
LdapSettings: {
|
LdapSettings: {
|
||||||
LdapServer: cypressEnv.ldapServer,
|
LdapServer: cypressEnv.ldapServer,
|
||||||
LdapPort: cypressEnv.ldapPort,
|
LdapPort: cypressEnv.ldapPort,
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import {
|
|||||||
PluginSettings,
|
PluginSettings,
|
||||||
ClusterSettings,
|
ClusterSettings,
|
||||||
CollapsedThreads,
|
CollapsedThreads,
|
||||||
|
EmailSettings,
|
||||||
} from '@mattermost/types/config';
|
} from '@mattermost/types/config';
|
||||||
import testConfig from '@e2e-test.config';
|
import testConfig from '@e2e-test.config';
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ export function getOnPremServerConfig(): AdminConfig {
|
|||||||
|
|
||||||
type TestAdminConfig = {
|
type TestAdminConfig = {
|
||||||
ClusterSettings: Partial<ClusterSettings>;
|
ClusterSettings: Partial<ClusterSettings>;
|
||||||
|
EmailSettings: Partial<EmailSettings>;
|
||||||
ExperimentalSettings: Partial<ExperimentalSettings>;
|
ExperimentalSettings: Partial<ExperimentalSettings>;
|
||||||
PasswordSettings: Partial<PasswordSettings>;
|
PasswordSettings: Partial<PasswordSettings>;
|
||||||
PluginSettings: Partial<PluginSettings>;
|
PluginSettings: Partial<PluginSettings>;
|
||||||
@@ -35,6 +37,9 @@ const onPremServerConfig = (): Partial<TestAdminConfig> => {
|
|||||||
Enable: testConfig.haClusterEnabled,
|
Enable: testConfig.haClusterEnabled,
|
||||||
ClusterName: testConfig.haClusterName,
|
ClusterName: testConfig.haClusterName,
|
||||||
},
|
},
|
||||||
|
EmailSettings: {
|
||||||
|
PushNotificationServer: testConfig.pushNotificationServer,
|
||||||
|
},
|
||||||
PasswordSettings: {
|
PasswordSettings: {
|
||||||
MinimumLength: 5,
|
MinimumLength: 5,
|
||||||
Lowercase: false,
|
Lowercase: false,
|
||||||
@@ -60,6 +65,7 @@ const onPremServerConfig = (): Partial<TestAdminConfig> => {
|
|||||||
ServiceSettings: {
|
ServiceSettings: {
|
||||||
SiteURL: testConfig.baseURL,
|
SiteURL: testConfig.baseURL,
|
||||||
EnableOnboardingFlow: false,
|
EnableOnboardingFlow: false,
|
||||||
|
GiphySdkKey: 's0glxvzVg9azvPipKxcPLpXV0q1x1fVP',
|
||||||
},
|
},
|
||||||
TeamSettings: {
|
TeamSettings: {
|
||||||
EnableOpenServer: true,
|
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"
|
// 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 = {
|
const defaultServerConfig: AdminConfig = {
|
||||||
ServiceSettings: {
|
ServiceSettings: {
|
||||||
SiteURL: '',
|
SiteURL: '',
|
||||||
@@ -132,7 +138,7 @@ const defaultServerConfig: AdminConfig = {
|
|||||||
WebsocketPort: 80,
|
WebsocketPort: 80,
|
||||||
WebserverMode: 'gzip',
|
WebserverMode: 'gzip',
|
||||||
EnableGifPicker: true,
|
EnableGifPicker: true,
|
||||||
GiphySdkKey: 's0glxvzVg9azvPipKxcPLpXV0q1x1fVP',
|
GiphySdkKey: '',
|
||||||
EnableCustomEmoji: true,
|
EnableCustomEmoji: true,
|
||||||
EnableEmojiPicker: true,
|
EnableEmojiPicker: true,
|
||||||
PostEditTimeLimit: -1,
|
PostEditTimeLimit: -1,
|
||||||
@@ -180,8 +186,9 @@ const defaultServerConfig: AdminConfig = {
|
|||||||
EnableCustomGroups: true,
|
EnableCustomGroups: true,
|
||||||
SelfHostedPurchase: true,
|
SelfHostedPurchase: true,
|
||||||
AllowSyncedDrafts: true,
|
AllowSyncedDrafts: true,
|
||||||
UniqueEmojiReactionLimitPerPost: 25,
|
UniqueEmojiReactionLimitPerPost: 50,
|
||||||
RefreshPostStatsRunTime: '00:00',
|
RefreshPostStatsRunTime: '00:00',
|
||||||
|
MaximumPayloadSizeBytes: 100000,
|
||||||
},
|
},
|
||||||
TeamSettings: {
|
TeamSettings: {
|
||||||
SiteName: 'Mattermost',
|
SiteName: 'Mattermost',
|
||||||
@@ -247,6 +254,7 @@ const defaultServerConfig: AdminConfig = {
|
|||||||
EnableSentry: true,
|
EnableSentry: true,
|
||||||
AdvancedLoggingJSON: {},
|
AdvancedLoggingJSON: {},
|
||||||
AdvancedLoggingConfig: '',
|
AdvancedLoggingConfig: '',
|
||||||
|
MaxFieldSize: 2048,
|
||||||
},
|
},
|
||||||
ExperimentalAuditSettings: {
|
ExperimentalAuditSettings: {
|
||||||
FileEnabled: false,
|
FileEnabled: false,
|
||||||
@@ -707,7 +715,12 @@ const defaultServerConfig: AdminConfig = {
|
|||||||
DeprecateCloudFree: false,
|
DeprecateCloudFree: false,
|
||||||
CloudReverseTrial: false,
|
CloudReverseTrial: false,
|
||||||
EnableExportDirectDownload: false,
|
EnableExportDirectDownload: false,
|
||||||
|
MoveThreadsEnabled: false,
|
||||||
StreamlinedMarketplace: true,
|
StreamlinedMarketplace: true,
|
||||||
|
CloudIPFiltering: false,
|
||||||
|
ConsumePostHook: false,
|
||||||
|
CloudAnnualRenewals: false,
|
||||||
|
OutgoingOAuthConnections: false,
|
||||||
},
|
},
|
||||||
ImportSettings: {
|
ImportSettings: {
|
||||||
Directory: './import',
|
Directory: './import',
|
||||||
@@ -720,10 +733,10 @@ const defaultServerConfig: AdminConfig = {
|
|||||||
WranglerSettings: {
|
WranglerSettings: {
|
||||||
PermittedWranglerRoles: [],
|
PermittedWranglerRoles: [],
|
||||||
AllowedEmailDomain: [],
|
AllowedEmailDomain: [],
|
||||||
MoveThreadMaxCount: 30,
|
MoveThreadMaxCount: 100,
|
||||||
MoveThreadToAnotherTeamEnable: true,
|
MoveThreadToAnotherTeamEnable: false,
|
||||||
MoveThreadFromPrivateChannelEnable: true,
|
MoveThreadFromPrivateChannelEnable: false,
|
||||||
MoveThreadFromDirectMessageChannelEnable: true,
|
MoveThreadFromDirectMessageChannelEnable: false,
|
||||||
MoveThreadFromGroupMessageChannelEnable: true,
|
MoveThreadFromGroupMessageChannelEnable: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ const config: TestConfig = {
|
|||||||
haClusterEnabled: parseBool(process.env.PW_HA_CLUSTER_ENABLED, false),
|
haClusterEnabled: parseBool(process.env.PW_HA_CLUSTER_ENABLED, false),
|
||||||
haClusterNodeCount: parseNumber(process.env.PW_HA_CLUSTER_NODE_COUNT, 2),
|
haClusterNodeCount: parseNumber(process.env.PW_HA_CLUSTER_NODE_COUNT, 2),
|
||||||
haClusterName: process.env.PW_HA_CLUSTER_NAME || 'mm_dev_cluster',
|
haClusterName: process.env.PW_HA_CLUSTER_NAME || 'mm_dev_cluster',
|
||||||
|
pushNotificationServer: process.env.PW_PUSH_NOTIFICATION_SERVER || 'https://push-test.mattermost.com',
|
||||||
resetBeforeTest: parseBool(process.env.PW_RESET_BEFORE_TEST, false),
|
resetBeforeTest: parseBool(process.env.PW_RESET_BEFORE_TEST, false),
|
||||||
// CI
|
// CI
|
||||||
isCI: !!process.env.CI,
|
isCI: !!process.env.CI,
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ export type TestConfig = {
|
|||||||
haClusterEnabled: boolean;
|
haClusterEnabled: boolean;
|
||||||
haClusterNodeCount: number;
|
haClusterNodeCount: number;
|
||||||
haClusterName: string;
|
haClusterName: string;
|
||||||
|
pushNotificationServer: string;
|
||||||
// CI
|
// CI
|
||||||
isCI: boolean;
|
isCI: boolean;
|
||||||
// Playwright
|
// Playwright
|
||||||
|
|||||||
@@ -388,6 +388,7 @@ export type ServiceSettings = {
|
|||||||
PersistentNotificationMaxRecipients: number;
|
PersistentNotificationMaxRecipients: number;
|
||||||
UniqueEmojiReactionLimitPerPost: number;
|
UniqueEmojiReactionLimitPerPost: number;
|
||||||
RefreshPostStatsRunTime: string;
|
RefreshPostStatsRunTime: string;
|
||||||
|
MaximumPayloadSizeBytes: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TeamSettings = {
|
export type TeamSettings = {
|
||||||
@@ -456,6 +457,7 @@ export type LogSettings = {
|
|||||||
EnableSentry: boolean;
|
EnableSentry: boolean;
|
||||||
AdvancedLoggingConfig: string;
|
AdvancedLoggingConfig: string;
|
||||||
AdvancedLoggingJSON: Record<string, any>;
|
AdvancedLoggingJSON: Record<string, any>;
|
||||||
|
MaxFieldSize: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ExperimentalAuditSettings = {
|
export type ExperimentalAuditSettings = {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user