This commit is contained in:
@@ -409,7 +409,7 @@ namespace AyaNova
|
|||||||
AyaNova.Core.License.Initialize(apiServerState, dbContext, _log);
|
AyaNova.Core.License.Initialize(apiServerState, dbContext, _log);
|
||||||
|
|
||||||
//Ensure locales are present, not missing any keys and that there is a server default locale that exists
|
//Ensure locales are present, not missing any keys and that there is a server default locale that exists
|
||||||
LocaleBiz lb = new LocaleBiz(dbContext, 1, AuthorizationRoles.OpsAdminFull);
|
LocaleBiz lb = new LocaleBiz(dbContext, 1, ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID, AuthorizationRoles.OpsAdminFull);
|
||||||
lb.ValidateLocales();
|
lb.ValidateLocales();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -58,8 +58,9 @@ namespace raven_integration
|
|||||||
List<string> keys = new List<string>();
|
List<string> keys = new List<string>();
|
||||||
keys.AddRange(new string[] { "AddressType", "ClientName", "RateName", "WorkorderService" });
|
keys.AddRange(new string[] { "AddressType", "ClientName", "RateName", "WorkorderService" });
|
||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
d.localeId = 1;
|
//d.localeId = 1;
|
||||||
d.keys = JToken.FromObject(keys);
|
//d.keys = JToken.FromObject(keys);
|
||||||
|
d = JToken.FromObject(keys);
|
||||||
|
|
||||||
ApiResponse a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d.ToString());
|
ApiResponse a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
@@ -142,7 +143,7 @@ namespace raven_integration
|
|||||||
|
|
||||||
checkPUTWorked = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d3.ToString());
|
checkPUTWorked = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d3.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(checkPUTWorked);
|
Util.ValidateDataReturnResponseOk(checkPUTWorked);
|
||||||
Util.ValidateHTTPStatusCode(checkPUTWorked, 200);
|
Util.ValidateHTTPStatusCode(checkPUTWorked, 200);
|
||||||
((JArray)checkPUTWorked.ObjectResponse["data"]).Count.Should().Be(1);
|
((JArray)checkPUTWorked.ObjectResponse["data"]).Count.Should().Be(1);
|
||||||
var FirstLocaleKeyUpdated = ((JArray)checkPUTWorked.ObjectResponse["data"])[0];
|
var FirstLocaleKeyUpdated = ((JArray)checkPUTWorked.ObjectResponse["data"])[0];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user