diff --git a/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/Models/ElasticModel.cs b/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/Models/ElasticModel.cs index d62a4109d..28209a1ec 100644 --- a/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/Models/ElasticModel.cs +++ b/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/Models/ElasticModel.cs @@ -5,7 +5,7 @@ namespace Masa.BuildingBlocks.StackSdks.Config.Models; public class ElasticModel { - public List ElasticNodes { get; set; } + public List Nodes { get; set; } public string Index { get; set; } } diff --git a/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/MasaStackConfigTest.cs b/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/MasaStackConfigTest.cs index 0d6aba586..47f88b78e 100644 --- a/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/MasaStackConfigTest.cs +++ b/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/MasaStackConfigTest.cs @@ -151,6 +151,6 @@ public void TestGetEsModel() { var es = _stackConfig.ElasticModel; - Assert.IsTrue(es is not null && es.ElasticNodes.Any()); + Assert.IsTrue(es is not null && es.Nodes.Any()); } } diff --git a/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/appsettings.json b/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/appsettings.json index 4b7365aba..35ee78a9c 100644 --- a/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/appsettings.json +++ b/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Config.Tests/appsettings.json @@ -2,7 +2,7 @@ "CLUSTER": "Default", "CONNECTIONSTRING": "{\"Server\": \"masastack-sqlserver.masastack\", \"port\": 1433,\"Database\":\"\",\"UserId\": \"sa\",\"Password\":\"p@ssw0rd\"}", "DOMAIN_NAME": "masastack.com", - "ELASTIC": "{\"ElasticNodes\": [\"masastack-es.masastack\"],\"Index\": \"user_dev\"}", + "ELASTIC": "{\"Nodes\": [\"masastack-es.masastack\"],\"Index\": \"user_dev\"}", "IS_DEMO": "true", "MASA_SERVER": "{\"pm\":{\"server\":\"masa-pm-server\",\"ui\":\"masa-pm-ui\"},\"dcc\":{\"server\":\"masa-dcc-server\",\"ui\":\"masa-dcc-ui\"},\"auth\":{\"server\":\"masa-auth-server\",\"ui\":\"masa-auth-ui\",\"sso\":\"masa-auth-sso\"},\"mc\":{\"server\":\"masa-mc-server\",\"ui\":\"masa-mc-web\"},\"scheduler\":{\"server\":\"masa-scheduler-server\",\"ui\":\"masa-scheduler-ui\",\"worker\":\"masa-scheduler-worker\"},\"tsc\":{\"server\":\"masa-tsc-server\",\"ui\":\"masa-tsc-web\"},\"alert\":{\"server\":\"masa-alert-server\",\"ui\":\"masa-alert-web\"}}", "MASA_UI": "{\"pm\":{\"server\":\"masa-pm-server\",\"ui\":\"masa-pm-ui-demo\"},\"dcc\":{\"server\":\"masa-dcc-server\",\"ui\":\"masa-dcc-ui-demo\"},\"auth\":{\"server\":\"masa-auth-server\",\"ui\":\"masa-auth-ui-demo\",\"sso\":\"masa-auth-sso-demo\"},\"mc\":{\"server\":\"masa-mc-server\",\"ui\":\"masa-mc-web-demo\"},\"scheduler\":{\"server\":\"masa-scheduler-server\",\"ui\":\"masa-scheduler-ui-demo\",\"worker\":\"masa-scheduler-worker\"},\"tsc\":{\"server\":\"masa-tsc-server\",\"ui\":\"masa-tsc-web-demo\"},\"alert\":{\"server\":\"masa-alert-server\",\"ui\":\"masa-alert-web-demo\"}}",