This commit is contained in:
@@ -35,7 +35,7 @@ namespace raven_integration
|
|||||||
D.name = Util.Uniquify("Search NAME DOGS simple Test User");
|
D.name = Util.Uniquify("Search NAME DOGS simple Test User");
|
||||||
D.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
D.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||||
D.notes = "This user has the match in it's name";
|
D.notes = "This user has the match in it's name";
|
||||||
|
|
||||||
D.active = true;
|
D.active = true;
|
||||||
D.login = Util.Uniquify("LOGIN");
|
D.login = Util.Uniquify("LOGIN");
|
||||||
D.password = Util.Uniquify("PASSWORD");
|
D.password = Util.Uniquify("PASSWORD");
|
||||||
@@ -52,7 +52,7 @@ namespace raven_integration
|
|||||||
D.name = Util.Uniquify("Search NOTES Test User");
|
D.name = Util.Uniquify("Search NOTES Test User");
|
||||||
D.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
D.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||||
D.notes = "This user has the match simple dogs in its notes";
|
D.notes = "This user has the match simple dogs in its notes";
|
||||||
|
|
||||||
D.active = true;
|
D.active = true;
|
||||||
D.login = Util.Uniquify("LOGIN");
|
D.login = Util.Uniquify("LOGIN");
|
||||||
D.password = Util.Uniquify("PASSWORD");
|
D.password = Util.Uniquify("PASSWORD");
|
||||||
@@ -179,7 +179,7 @@ namespace raven_integration
|
|||||||
D.active = true;
|
D.active = true;
|
||||||
D.roles = 0;
|
D.roles = 0;
|
||||||
D.notes = "This record will match in notes: The quick brown and hapless goose";
|
D.notes = "This record will match in notes: The quick brown and hapless goose";
|
||||||
|
|
||||||
|
|
||||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
@@ -189,13 +189,14 @@ namespace raven_integration
|
|||||||
D = new JObject();
|
D = new JObject();
|
||||||
D.name = Util.Uniquify("Wildcard startswith search NAME happy goose Test User");
|
D.name = Util.Uniquify("Wildcard startswith search NAME happy goose Test User");
|
||||||
D.notes = "This user has the match in it's name";
|
D.notes = "This user has the match in it's name";
|
||||||
|
|
||||||
D.active = true;
|
D.active = true;
|
||||||
D.login = Util.Uniquify("LOGIN");
|
D.login = Util.Uniquify("LOGIN");
|
||||||
D.password = Util.Uniquify("PASSWORD");
|
D.password = Util.Uniquify("PASSWORD");
|
||||||
D.roles = 0;//norole
|
D.roles = 0;//norole
|
||||||
D.localeId = 1;//random locale
|
D.localeId = 1;//random locale
|
||||||
D.userType = 3;//non scheduleable
|
D.userType = 3;//non scheduleable
|
||||||
|
D.customFields = Util.UserRequiredCustomFieldsJsonString();
|
||||||
|
|
||||||
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
@@ -252,13 +253,14 @@ namespace raven_integration
|
|||||||
D = new JObject();
|
D = new JObject();
|
||||||
D.name = Util.Uniquify("Wildcard endswith search NAME goose exact Test User");
|
D.name = Util.Uniquify("Wildcard endswith search NAME goose exact Test User");
|
||||||
D.notes = "This user has the match in it's name";
|
D.notes = "This user has the match in it's name";
|
||||||
|
|
||||||
D.active = true;
|
D.active = true;
|
||||||
D.login = Util.Uniquify("LOGIN");
|
D.login = Util.Uniquify("LOGIN");
|
||||||
D.password = Util.Uniquify("PASSWORD");
|
D.password = Util.Uniquify("PASSWORD");
|
||||||
D.roles = 0;//norole
|
D.roles = 0;//norole
|
||||||
D.localeId = 1;//random locale
|
D.localeId = 1;//random locale
|
||||||
D.userType = 3;//non scheduleable
|
D.userType = 3;//non scheduleable
|
||||||
|
D.customFields = Util.UserRequiredCustomFieldsJsonString();
|
||||||
|
|
||||||
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
@@ -317,13 +319,14 @@ namespace raven_integration
|
|||||||
D = new JObject();
|
D = new JObject();
|
||||||
D.name = Util.Uniquify("Wildcard contains search NAME goose elcastro Test User");
|
D.name = Util.Uniquify("Wildcard contains search NAME goose elcastro Test User");
|
||||||
D.notes = "This user has the match in it's name";
|
D.notes = "This user has the match in it's name";
|
||||||
|
|
||||||
D.active = true;
|
D.active = true;
|
||||||
D.login = Util.Uniquify("LOGIN");
|
D.login = Util.Uniquify("LOGIN");
|
||||||
D.password = Util.Uniquify("PASSWORD");
|
D.password = Util.Uniquify("PASSWORD");
|
||||||
D.roles = 0;//norole
|
D.roles = 0;//norole
|
||||||
D.localeId = 1;//random locale
|
D.localeId = 1;//random locale
|
||||||
D.userType = 3;//non scheduleable
|
D.userType = 3;//non scheduleable
|
||||||
|
D.customFields = Util.UserRequiredCustomFieldsJsonString();
|
||||||
|
|
||||||
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
@@ -415,13 +418,14 @@ namespace raven_integration
|
|||||||
D = new JObject();
|
D = new JObject();
|
||||||
D.name = Util.Uniquify("Wildcard contains search NAME elementary aardvark Test User");
|
D.name = Util.Uniquify("Wildcard contains search NAME elementary aardvark Test User");
|
||||||
D.notes = "This user has the match in it's name but no tag match";
|
D.notes = "This user has the match in it's name but no tag match";
|
||||||
|
|
||||||
D.active = true;
|
D.active = true;
|
||||||
D.login = Util.Uniquify("LOGIN");
|
D.login = Util.Uniquify("LOGIN");
|
||||||
D.password = Util.Uniquify("PASSWORD");
|
D.password = Util.Uniquify("PASSWORD");
|
||||||
D.roles = 0;//norole
|
D.roles = 0;//norole
|
||||||
D.localeId = 1;//random locale
|
D.localeId = 1;//random locale
|
||||||
D.userType = 3;//non scheduleable
|
D.userType = 3;//non scheduleable
|
||||||
|
D.customFields = Util.UserRequiredCustomFieldsJsonString();
|
||||||
|
|
||||||
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
|
|||||||
Reference in New Issue
Block a user