From cfadbc372c96869e9b98ded22385851cf813d168 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 2 Jul 2019 19:00:06 +0000 Subject: [PATCH] --- Search/SearchOps.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Search/SearchOps.cs b/Search/SearchOps.cs index 3bf509f..ebceb4e 100644 --- a/Search/SearchOps.cs +++ b/Search/SearchOps.cs @@ -35,7 +35,7 @@ namespace raven_integration D.name = Util.Uniquify("Search NAME DOGS simple Test User"); D.customFields = Util.WidgetRequiredCustomFieldsJsonString(); D.notes = "This user has the match in it's name"; - + D.active = true; D.login = Util.Uniquify("LOGIN"); D.password = Util.Uniquify("PASSWORD"); @@ -52,7 +52,7 @@ namespace raven_integration D.name = Util.Uniquify("Search NOTES Test User"); D.customFields = Util.WidgetRequiredCustomFieldsJsonString(); D.notes = "This user has the match simple dogs in its notes"; - + D.active = true; D.login = Util.Uniquify("LOGIN"); D.password = Util.Uniquify("PASSWORD"); @@ -179,7 +179,7 @@ namespace raven_integration D.active = true; D.roles = 0; 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()); Util.ValidateDataReturnResponseOk(a); @@ -189,13 +189,14 @@ namespace raven_integration D = new JObject(); D.name = Util.Uniquify("Wildcard startswith search NAME happy goose Test User"); D.notes = "This user has the match in it's name"; - + D.active = true; D.login = Util.Uniquify("LOGIN"); D.password = Util.Uniquify("PASSWORD"); D.roles = 0;//norole D.localeId = 1;//random locale D.userType = 3;//non scheduleable + D.customFields = Util.UserRequiredCustomFieldsJsonString(); a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString()); Util.ValidateDataReturnResponseOk(a); @@ -252,13 +253,14 @@ namespace raven_integration D = new JObject(); D.name = Util.Uniquify("Wildcard endswith search NAME goose exact Test User"); D.notes = "This user has the match in it's name"; - + D.active = true; D.login = Util.Uniquify("LOGIN"); D.password = Util.Uniquify("PASSWORD"); D.roles = 0;//norole D.localeId = 1;//random locale D.userType = 3;//non scheduleable + D.customFields = Util.UserRequiredCustomFieldsJsonString(); a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString()); Util.ValidateDataReturnResponseOk(a); @@ -317,13 +319,14 @@ namespace raven_integration D = new JObject(); D.name = Util.Uniquify("Wildcard contains search NAME goose elcastro Test User"); D.notes = "This user has the match in it's name"; - + D.active = true; D.login = Util.Uniquify("LOGIN"); D.password = Util.Uniquify("PASSWORD"); D.roles = 0;//norole D.localeId = 1;//random locale D.userType = 3;//non scheduleable + D.customFields = Util.UserRequiredCustomFieldsJsonString(); a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString()); Util.ValidateDataReturnResponseOk(a); @@ -415,13 +418,14 @@ namespace raven_integration D = new JObject(); 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.active = true; D.login = Util.Uniquify("LOGIN"); D.password = Util.Uniquify("PASSWORD"); D.roles = 0;//norole D.localeId = 1;//random locale D.userType = 3;//non scheduleable + D.customFields = Util.UserRequiredCustomFieldsJsonString(); a = await Util.PostAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString()); Util.ValidateDataReturnResponseOk(a);