This commit is contained in:
@@ -46,20 +46,12 @@ namespace raven_integration
|
||||
[Fact]
|
||||
public async void GetSubsetWorks()
|
||||
{
|
||||
/*
|
||||
{
|
||||
"localeId": 0,
|
||||
"keys": [
|
||||
"string"
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
List<string> keys = new List<string>();
|
||||
keys.AddRange(new string[] { "AddressType", "ClientName", "RateName", "WorkorderService" });
|
||||
dynamic d = new JObject();
|
||||
//d.localeId = 1;
|
||||
//d.keys = JToken.FromObject(keys);
|
||||
|
||||
d = JToken.FromObject(keys);
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("CustomerLimited"), d.ToString());
|
||||
@@ -140,14 +132,14 @@ namespace raven_integration
|
||||
var Password = Util.Uniquify("PASSWORD");
|
||||
dynamic DUSER = new JObject();
|
||||
DUSER.name = Util.Uniquify("LocaleUpdateSubsetTestUser");
|
||||
|
||||
|
||||
DUSER.active = true;
|
||||
DUSER.login = Login;
|
||||
DUSER.password = Password;
|
||||
DUSER.roles = 0;//norole (any role can get a subset of locale keys)
|
||||
DUSER.localeId = NewId;//random locale
|
||||
DUSER.translationId = NewId;
|
||||
DUSER.userType = 3;//non scheduleable
|
||||
//Required by form custom rules
|
||||
//Required by form custom rules
|
||||
DUSER.notes = "notes";
|
||||
DUSER.customFields = Util.UserRequiredCustomFieldsJsonString();
|
||||
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), DUSER.ToString());
|
||||
@@ -159,7 +151,7 @@ namespace raven_integration
|
||||
List<string> keys = new List<string>();
|
||||
keys.AddRange(new string[] { UpdatedLocaleKey });
|
||||
dynamic d3 = new JObject();
|
||||
//d3.localeId = NewId;
|
||||
|
||||
d3 = JToken.FromObject(keys);
|
||||
|
||||
checkPUTWorked = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync(Login, Password), d3.ToString());
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace raven_integration
|
||||
List<string> keys = new List<string>();
|
||||
keys.AddRange(new string[] { "HelpLicense", "ClientName" });
|
||||
dynamic d = new JObject();
|
||||
//d.localeId = 1;
|
||||
|
||||
d = JToken.FromObject(keys);
|
||||
|
||||
//Fetch the values to force RAVEN to track at least these two
|
||||
|
||||
Reference in New Issue
Block a user