10 #include <gtest/gtest.h>
25 nlohmann::json j = orig;
26 auto deserialized = j.get<
Status>();
35 using namespace std::chrono_literals;
44 nlohmann::json j = ctx;
47 EXPECT_TRUE(ctx == deserialized);
53 using namespace std::chrono_literals;
62 spec.file_prefix =
"FOO";
65 ds1.source_name =
"prim";
68 ds2.source_name =
"meta";
70 spec.sources.push_back(ds1);
71 spec.sources.push_back(ds2);
73 nlohmann::json j = ctx;
76 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.
Persistent status for receiver delivery.
Non observable status object that keeps stores status of data acquisition.
std::string result
Path to resulting data product.
std::map< std::size_t, ReceiverStatus > receivers
Receiver processing (e.g.
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)