This commit is contained in:
@@ -45,7 +45,7 @@ namespace raven_integration
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
if (BuildMode == "DEBUG")
|
||||
{
|
||||
a = await Util.GetAsync("Translation/picklist", await Util.GetTokenAsync("INTEGRATION_TEST", "EXPIRED"));//lowest level test user because there are no limits on this route except to be authenticated
|
||||
a = await Util.GetAsync("Translation/List", await Util.GetTokenAsync("INTEGRATION_TEST", "EXPIRED"));//lowest level test user because there are no limits on this route except to be authenticated
|
||||
Util.ValidateHTTPStatusCode(a, 401);
|
||||
}
|
||||
}
|
||||
@@ -60,7 +60,7 @@ namespace raven_integration
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
if (BuildMode == "DEBUG")
|
||||
{
|
||||
a = await Util.GetAsync("Translation/picklist", await Util.GetTokenAsync("INTEGRATION_TEST", "WRONG_ISSUER"));//lowest level test user because there are no limits on this route except to be authenticated
|
||||
a = await Util.GetAsync("Translation/List", await Util.GetTokenAsync("INTEGRATION_TEST", "WRONG_ISSUER"));//lowest level test user because there are no limits on this route except to be authenticated
|
||||
Util.ValidateHTTPStatusCode(a, 401);
|
||||
}
|
||||
}
|
||||
@@ -75,7 +75,7 @@ namespace raven_integration
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
if (BuildMode == "DEBUG")
|
||||
{
|
||||
a = await Util.GetAsync("Translation/picklist", await Util.GetTokenAsync("INTEGRATION_TEST", "NO_ALGORITHM"));
|
||||
a = await Util.GetAsync("Translation/List", await Util.GetTokenAsync("INTEGRATION_TEST", "NO_ALGORITHM"));
|
||||
Util.ValidateHTTPStatusCode(a, 401);
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,7 @@ namespace raven_integration
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
if (BuildMode == "DEBUG")
|
||||
{
|
||||
a = await Util.GetAsync("Translation/picklist", await Util.GetTokenAsync("INTEGRATION_TEST", "WRONG_SECRET"));
|
||||
a = await Util.GetAsync("Translation/List", await Util.GetTokenAsync("INTEGRATION_TEST", "WRONG_SECRET"));
|
||||
Util.ValidateHTTPStatusCode(a, 401);
|
||||
}
|
||||
}
|
||||
@@ -106,7 +106,7 @@ namespace raven_integration
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
if (BuildMode == "DEBUG")
|
||||
{
|
||||
a = await Util.GetAsync("Translation/picklist", await Util.GetTokenAsync("INTEGRATION_TEST", "TRUNCATED_SIGNATURE"));
|
||||
a = await Util.GetAsync("Translation/List", await Util.GetTokenAsync("INTEGRATION_TEST", "TRUNCATED_SIGNATURE"));
|
||||
Util.ValidateHTTPStatusCode(a, 401);
|
||||
}
|
||||
}
|
||||
@@ -122,7 +122,7 @@ namespace raven_integration
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
if (BuildMode == "DEBUG")
|
||||
{
|
||||
a = await Util.GetAsync("Translation/picklist", await Util.GetTokenAsync("INTEGRATION_TEST", "TRANSPOSE_SIGNATURE"));
|
||||
a = await Util.GetAsync("Translation/List", await Util.GetTokenAsync("INTEGRATION_TEST", "TRANSPOSE_SIGNATURE"));
|
||||
Util.ValidateHTTPStatusCode(a, 401);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace raven_integration
|
||||
[Fact]
|
||||
public async void GetListOfEnumListsAndGetAllEnumListsWorks()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("EnumPickList/listkeys", await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||
ApiResponse a = await Util.GetAsync("EnumList/listkeys", await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
Util.ValidateHTTPStatusCode(a, 200);
|
||||
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(2);
|
||||
@@ -25,7 +25,7 @@ namespace raven_integration
|
||||
foreach (JObject jListName in a.ObjectResponse["data"])
|
||||
{
|
||||
|
||||
ApiResponse b = await Util.GetAsync($"EnumPickList/list/{jListName["key"].Value<string>()}", await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||
ApiResponse b = await Util.GetAsync($"EnumList/list/{jListName["key"].Value<string>()}", await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||
Util.ValidateDataReturnResponseOk(b);
|
||||
Util.ValidateHTTPStatusCode(b, 200);
|
||||
((JArray)b.ObjectResponse["data"]).Count.Should().BeGreaterThan(1);
|
||||
@@ -34,20 +34,7 @@ namespace raven_integration
|
||||
|
||||
}
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void GetAllEnumListsWorks()
|
||||
// {
|
||||
// ApiResponse a = await Util.GetAsync("EnumPickList/list/usertypes", await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||
// Util.ValidateDataReturnResponseOk(a);
|
||||
// Util.ValidateHTTPStatusCode(a, 200);
|
||||
|
||||
// ((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(5);
|
||||
// a.ObjectResponse["data"][3]["name"].Value<string>().Should().Be("Customer user");
|
||||
// a.ObjectResponse["data"][3]["id"].Value<int>().Should().Be(4);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user