Add warnings provider to settings

This commit is contained in:
Dan Paulat 2024-04-25 22:24:10 -05:00
parent ea19de3e5f
commit 5ee2d10a1b
8 changed files with 234 additions and 144 deletions

View file

@ -8,12 +8,18 @@ namespace network
{
static const std::string& kDefaultUrl {"https://warnings.allisonhouse.com"};
static const std::string& kAlternateUrl {"http://warnings.cod.edu"};
static const std::string& kAlternateUrl {"https://warnings.cod.edu"};
TEST(DirList, GetDefaultUrl)
{
auto records = DirList(kDefaultUrl);
// No records, skip test
if (records.size() == 0)
{
GTEST_SKIP();
}
EXPECT_GT(records.size(), 0);
}
@ -21,6 +27,12 @@ TEST(DirList, GetAlternateUrl)
{
auto records = DirList(kAlternateUrl);
// No records, skip test
if (records.size() == 0)
{
GTEST_SKIP();
}
EXPECT_GT(records.size(), 0);
}