10 #include <gtest/gtest.h>
23 nlohmann::json j = orig;
24 auto deserialized = j.get<
Status>();
32 using namespace std::chrono_literals;
41 nlohmann::json j = ctx;
44 EXPECT_TRUE(ctx == deserialized);
50 using namespace std::chrono_literals;
59 spec.file_prefix =
"FOO";
62 ds1.source_name =
"prim";
65 ds2.source_name =
"meta";
67 spec.sources.push_back(ds1);
68 spec.sources.push_back(ds2);
70 nlohmann::json j = ctx;
73 EXPECT_TRUE(ctx == deserialized);
Declares JSON support for serialization.
@ Acquiring
All data sources have reported data acquisition is in progress.
TEST(TestDaqContext, Files)
Contains declaration for Status and ObservableStatus.
Structure carrying context needed to start a Data Acquisition and construct a Data Product Specificat...
std::vector< Source > meta_sources
std::vector< daq::fits::KeywordVariant > keywords
Keyword list provided by OCM to Data Product.
std::chrono::milliseconds await_interval
Interval (and thus duration) of the requests sent to primary sources to await end of recording.
std::optional< json::StartDaqV2Spec > specification
Optional specification, if DAQ was started using StartDaqV2.
std::string file_id
Data Product FileId as specified by OLAS ICD.
std::string dp_name_prefix
Data product file name prefix.
std::string id
DAQ identfier, possibly provided by user.
Non observable status object that keeps stores status of data acquisition.
std::string result
Path to resulting data product.
A type safe version of LiteralKeyword that consist of the three basic components of a FITS keyword ke...
EXPECT_EQ(meta.rr_uri, "zpb.rr://meta")
ASSERT_EQ(meta.keyword_rules.size(), 1u)