Home
last modified time | relevance | path

Searched refs:DataSourceReplicas (Results 1 – 20 of 20) sorted by relevance

/dports/www/mattermost-server/mattermost-server-6.0.2/config/
H A Ddiff_test.go66 actualCfg.SqlSettings.DataSourceReplicas = []string{
246 cfg.SqlSettings.DataSourceReplicas = []string{
255 BaseVal: defaultConfigGen().SqlSettings.DataSourceReplicas,
268 cfg.SqlSettings.DataSourceReplicas = []string{
276 cfg.SqlSettings.DataSourceReplicas = []string{
299 cfg.SqlSettings.DataSourceReplicas = []string{
307 cfg.SqlSettings.DataSourceReplicas = nil
H A Dutils_test.go34 actual.SqlSettings.DataSourceReplicas = append(actual.SqlSettings.DataSourceReplicas, "replica0")
35 actual.SqlSettings.DataSourceReplicas = append(actual.SqlSettings.DataSourceReplicas, "replica1")
56 target.SqlSettings.DataSourceReplicas = []string{model.FakeSetting, model.FakeSetting}
77 assert.Equal(t, actual.SqlSettings.DataSourceReplicas, target.SqlSettings.DataSourceReplicas)
H A Dutils.go68 if len(target.SqlSettings.DataSourceReplicas) == len(actual.SqlSettings.DataSourceReplicas) {
69 for i, value := range target.SqlSettings.DataSourceReplicas {
71 target.SqlSettings.DataSourceReplicas[i] = actual.SqlSettings.DataSourceReplicas[i]
H A Denvironment_test.go96 in.SqlSettings.DataSourceReplicas = []string{"somthing"}
102 in.SqlSettings.DataSourceReplicas = []string{"otherthing", "alsothis"}
H A Ddatabase_test.go368 assert.Equal(t, []string{}, ds.Get().SqlSettings.DataSourceReplicas)
378 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas)
393 assert.Equal(t, []string{}, ds.Get().SqlSettings.DataSourceReplicas)
403 …ser:pwd@db2:5433/test-db2", "user:pwd@db3:5434/test-db3"}, ds.Get().SqlSettings.DataSourceReplicas)
785 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas)
790 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas)
794 assert.Equal(t, []string{}, actualConfig.SqlSettings.DataSourceReplicas)
799 …modifiedMinimalConfig.SqlSettings.DataSourceReplicas = []string{"user:pwd@db:5432/test-db", "user:…
810 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas)
815 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas)
[all …]
H A Dfile_test.go424 assert.Equal(t, []string{}, fs.Get().SqlSettings.DataSourceReplicas)
436 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas)
450 assert.Equal(t, []string{}, fs.Get().SqlSettings.DataSourceReplicas)
462 …ser:pwd@db2:5433/test-db2", "user:pwd@db3:5434/test-db3"}, fs.Get().SqlSettings.DataSourceReplicas)
774 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas)
779 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas)
783 assert.Equal(t, []string{}, actualConfig.SqlSettings.DataSourceReplicas)
788 …modifiedMinimalConfig.SqlSettings.DataSourceReplicas = []string{"user:pwd@db:5432/test-db", "user:…
801 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas)
806 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas)
[all …]
H A Dmigrate_test.go67 cfg.SqlSettings.DataSourceReplicas = []string{
/dports/www/mattermost-server/mattermost-server-6.0.2/store/storetest/
H A Dsettings.go64 …mySQLSettings.DataSourceReplicas = []string{getEnv("TEST_DATABASE_MYSQL_REPLICA_DSN", defaultMysql…
139 DataSourceReplicas: []string{},
203 for _, dataSource := range settings.DataSourceReplicas {
206 settings.DataSourceReplicas = newDSRs
/dports/www/mattermost-server/mattermost-server-6.0.2/testlib/
H A Dhelper.go100 h.replicas = h.Settings.DataSourceReplicas
117 h.Settings.DataSourceReplicas = []string{}
127 h.Settings.DataSourceReplicas = h.replicas
/dports/www/mattermost-server/mattermost-server-6.0.2/store/sqlstore/
H A Dstore_test.go264 settings.DataSourceReplicas = dataSourceReplicas
334 settings.DataSourceReplicas = dataSourceReplicas
581 settings.DataSourceReplicas = dataSourceReplicas
H A Dstore.go342 if len(ss.settings.DataSourceReplicas) > 0 {
343 ss.Replicas = make([]*gorp.DbMap, len(ss.settings.DataSourceReplicas))
344 for i, replica := range ss.settings.DataSourceReplicas {
427 if len(ss.settings.DataSourceReplicas) == 0 || ss.lockedToMaster || license == nil {
478 if len(ss.settings.DataSourceReplicas) == 0 {
/dports/www/mattermost-server/mattermost-server-6.0.2/app/
H A Dserver_test.go82 cfg.SqlSettings.DataSourceReplicas = []string{*cfg.SqlSettings.DataSource}
95 require.Len(t, s.Config().SqlSettings.DataSourceReplicas, 1)
108 require.Len(t, s.Config().SqlSettings.DataSourceReplicas, 1)
H A Dplugin_api_test.go1345 for i := range config.SqlSettings.DataSourceReplicas {
1346 assert.Equal(t, config.SqlSettings.DataSourceReplicas[i], model.FakeSetting)
1382 for i := range config.SqlSettings.DataSourceReplicas {
1383 assert.NotEqual(t, config.SqlSettings.DataSourceReplicas[i], model.FakeSetting)
/dports/net-im/matterircd/matterircd-0.25.0/vendor/github.com/mattermost/mattermost-server/v6/model/
H A Dconfig.go1073DataSourceReplicas []string `access:"environment_database,write_restrictable… member
1095 if s.DataSourceReplicas == nil {
1096 s.DataSourceReplicas = []string{}
3770 for i := range o.SqlSettings.DataSourceReplicas {
3771 o.SqlSettings.DataSourceReplicas[i] = FakeSetting
/dports/net-im/matterbridge/matterbridge-1.22.3/vendor/github.com/mattermost/mattermost-server/v5/model/
H A Dconfig.go1055 DataSourceReplicas []string `access:"environment,write_restrictable,cloud_restrictable"` member
1075 if s.DataSourceReplicas == nil {
1076 s.DataSourceReplicas = []string{}
3649 for i := range o.SqlSettings.DataSourceReplicas {
3650 o.SqlSettings.DataSourceReplicas[i] = FAKE_SETTING
/dports/www/mattermost-server/mattermost-server-6.0.2/model/
H A Dconfig.go1073DataSourceReplicas []string `access:"environment_database,write_restrictable… member
1095 if s.DataSourceReplicas == nil {
1096 s.DataSourceReplicas = []string{}
3770 for i := range o.SqlSettings.DataSourceReplicas {
3771 o.SqlSettings.DataSourceReplicas[i] = FakeSetting
H A Dconfig_test.go1291 c.SqlSettings.DataSourceReplicas = []string{"stuff"}
1305 assert.Equal(t, FakeSetting, c.SqlSettings.DataSourceReplicas[0])
/dports/www/mattermost-server/mattermost-server-6.0.2/api4/
H A Dconfig_test.go53 …ins(strings.Join(cfg.SqlSettings.DataSourceReplicas, " "), model.FakeSetting) && len(cfg.SqlSettin…
/dports/net-im/matterircd/matterircd-0.25.0/vendor/github.com/mattermost/mattermost-server/v5/model/
H A Dconfig.go1128DataSourceReplicas []string `access:"environment_database,write_restrictable… member
1150 if s.DataSourceReplicas == nil {
1151 s.DataSourceReplicas = []string{}
3904 for i := range o.SqlSettings.DataSourceReplicas {
3905 o.SqlSettings.DataSourceReplicas[i] = FAKE_SETTING
/dports/www/mattermost-server/mattermost-server-6.0.2/services/telemetry/
H A Dtelemetry.go477 "data_source_replicas": len(cfg.SqlSettings.DataSourceReplicas),