From 10c3f2252295bb5b07353ab70f6a4236aace82d0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 23 Jan 2020 16:59:56 +0000 Subject: [PATCH] --- Locale/Locale.cs | 6 +++--- Locale/RequestedLocaleKeys.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Locale/Locale.cs b/Locale/Locale.cs index d14a2d5..6827564 100644 --- a/Locale/Locale.cs +++ b/Locale/Locale.cs @@ -23,7 +23,7 @@ namespace raven_integration public async void LocalePickListWorks() { //Get all - ApiResponse a = await Util.GetAsync("Locale/picklist", await Util.GetTokenAsync("ClientLimited"));//lowest level test user because there are no limits on this route except to be authenticated + ApiResponse a = await Util.GetAsync("Locale/picklist", await Util.GetTokenAsync("CustomerLimited"));//lowest level test user because there are no limits on this route except to be authenticated Util.ValidateDataReturnResponseOk(a); Util.ValidateHTTPStatusCode(a, 200); //there should be at least 4 of them as there are 4 stock locales @@ -35,7 +35,7 @@ namespace raven_integration public async void GetFullLocaleWorks() { //Get all - ApiResponse a = await Util.GetAsync("Locale/1", await Util.GetTokenAsync("ClientLimited"));//lowest level test user because there are no limits on this route except to be authenticated + ApiResponse a = await Util.GetAsync("Locale/1", await Util.GetTokenAsync("CustomerLimited"));//lowest level test user because there are no limits on this route except to be authenticated Util.ValidateDataReturnResponseOk(a); Util.ValidateHTTPStatusCode(a, 200); //there should be dozens of keys but at times there might only be a few during development so at least verify there is more than one @@ -62,7 +62,7 @@ namespace raven_integration //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("CustomerLimited"), d.ToString()); Util.ValidateDataReturnResponseOk(a); Util.ValidateHTTPStatusCode(a, 200); //there should be dozens of keys but at times there might only be a few during development so at least verify there is more than one diff --git a/Locale/RequestedLocaleKeys.cs b/Locale/RequestedLocaleKeys.cs index d068dfd..d758fb5 100644 --- a/Locale/RequestedLocaleKeys.cs +++ b/Locale/RequestedLocaleKeys.cs @@ -34,14 +34,14 @@ namespace raven_integration d = JToken.FromObject(keys); //Fetch the values to force RAVEN to track at least these two - a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d.ToString()); + a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("CustomerLimited"), d.ToString()); Util.ValidateDataReturnResponseOk(a); Util.ValidateHTTPStatusCode(a, 200); //there should be dozens of keys but at times there might only be a few during development so at least verify there is more than one ((JArray)a.ObjectResponse["data"]).Count.Should().Be(2); //Now ensure there are at least two keys in the fetched keys array - a = await Util.GetAsync("Locale/LocaleKeyCoverage", await Util.GetTokenAsync("ClientLimited")); + a = await Util.GetAsync("Locale/LocaleKeyCoverage", await Util.GetTokenAsync("CustomerLimited")); Util.ValidateDataReturnResponseOk(a); Util.ValidateHTTPStatusCode(a, 200);