mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:30:05 +00:00
Add initial AWS Level 2 Data Provider
This commit is contained in:
parent
bd68f1adbd
commit
1681b6772b
5 changed files with 214 additions and 0 deletions
31
test/source/scwx/provider/aws_level2_data_provider.test.cpp
Normal file
31
test/source/scwx/provider/aws_level2_data_provider.test.cpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include <scwx/provider/aws_level2_data_provider.hpp>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace provider
|
||||
{
|
||||
|
||||
TEST(AwsLevel2DataProvider, LoadObjectByKey)
|
||||
{
|
||||
const std::string key = "2022/04/21/KLSX/KLSX20220421_160055_V06";
|
||||
|
||||
AwsLevel2DataProvider provider("KLSX");
|
||||
|
||||
auto file = provider.LoadObjectByKey(key);
|
||||
|
||||
EXPECT_NE(file, nullptr);
|
||||
}
|
||||
|
||||
TEST(AwsLevel2DataProvider, Refresh)
|
||||
{
|
||||
AwsLevel2DataProvider provider("KLSX");
|
||||
|
||||
provider.Refresh();
|
||||
|
||||
// TODO: Check object count
|
||||
}
|
||||
|
||||
} // namespace provider
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue