From 3405571e1b4d4d70f00e5f964dab71dfeb010320 Mon Sep 17 00:00:00 2001
From: Ruud Overeem <overeem@astron.nl>
Date: Wed, 4 Feb 2015 09:01:31 +0000
Subject: [PATCH] Task #7342: Added testmessages.

---
 .gitattributes                                |  4 ++
 LCS/MessageBus/data/feedback_dp_44833.txt     | 40 +++++++++++++++++++
 LCS/MessageBus/data/feedback_dp_empty.txt     | 23 +++++++++++
 LCS/MessageBus/data/feedback_dp_no_ids.txt    | 40 +++++++++++++++++++
 LCS/MessageBus/data/feedback_dp_xml_error.txt | 40 +++++++++++++++++++
 5 files changed, 147 insertions(+)
 create mode 100644 LCS/MessageBus/data/feedback_dp_44833.txt
 create mode 100644 LCS/MessageBus/data/feedback_dp_empty.txt
 create mode 100644 LCS/MessageBus/data/feedback_dp_no_ids.txt
 create mode 100644 LCS/MessageBus/data/feedback_dp_xml_error.txt

diff --git a/.gitattributes b/.gitattributes
index 1b330920c83..b51b22aed8f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2423,6 +2423,10 @@ LCS/MSLofar/test/tBeamTables.in_during_filled -text
 LCS/MSLofar/test/tBeamTables.in_hd/CS001-iHBADeltas.conf -text
 LCS/MSLofar/test/tBeamTables.in_hd/DE601-iHBADeltas.conf -text
 LCS/MSLofar/test/tBeamTables.in_hd/RS106-iHBADeltas.conf -text
+LCS/MessageBus/data/feedback_dp_44833.txt -text
+LCS/MessageBus/data/feedback_dp_empty.txt -text
+LCS/MessageBus/data/feedback_dp_no_ids.txt -text
+LCS/MessageBus/data/feedback_dp_xml_error.txt -text
 LCS/MessageBus/src/LofarMsgTemplate.txt -text
 LCS/MessageBus/src/Message.cc -text
 LCS/MessageBus/src/MsgBus.py -text
diff --git a/LCS/MessageBus/data/feedback_dp_44833.txt b/LCS/MessageBus/data/feedback_dp_44833.txt
new file mode 100644
index 00000000000..e6a7627720e
--- /dev/null
+++ b/LCS/MessageBus/data/feedback_dp_44833.txt
@@ -0,0 +1,40 @@
+<message>
+   <header>
+      <system>LOFAR</system>
+      <version>1.0.0</version>
+      <protocol>
+         <name>lofar.observation.start</name>
+         <version>1.0</version>
+      </protocol>
+      <source>
+         <name>mySubSystem</name>
+         <user>user</user>
+         <uuid></uuid>
+         <timestamp></timestamp>
+         <summary>some test message</summary>
+      </source>
+      <ids>
+         <momid>12345</momid>
+         <sasid>44883</sasid>
+      </ids>
+   </header>
+   <payload>
+Observation.Correlator.channelWidth=3051.7578125
+Observation.Correlator.channelsPerSubband=64
+Observation.Correlator.integrationInterval=1.00139008
+Observation.DataProducts.Output_Correlated_[0].SAP=0
+Observation.DataProducts.Output_Correlated_[0].centralFrequency=115039062.500000
+Observation.DataProducts.Output_Correlated_[0].channelWidth=3051.757812
+Observation.DataProducts.Output_Correlated_[0].channelsPerSubband=64
+Observation.DataProducts.Output_Correlated_[0].duration=119.165420
+Observation.DataProducts.Output_Correlated_[0].fileFormat=AIPS++/CASA
+Observation.DataProducts.Output_Correlated_[0].filename=L257915_SAP000_SB000_uv.MS
+Observation.DataProducts.Output_Correlated_[0].integrationInterval=1.001390
+Observation.DataProducts.Output_Correlated_[0].location=locus001:/data/L257915/
+Observation.DataProducts.Output_Correlated_[0].percentageWritten=100
+Observation.DataProducts.Output_Correlated_[0].size=268083200
+Observation.DataProducts.Output_Correlated_[0].startTime=2015-01-15 09:32:09
+Observation.DataProducts.Output_Correlated_[0].stationSubband=77
+Observation.DataProducts.Output_Correlated_[0].subband=0
+   </payload>
+</message>
diff --git a/LCS/MessageBus/data/feedback_dp_empty.txt b/LCS/MessageBus/data/feedback_dp_empty.txt
new file mode 100644
index 00000000000..9c8bb9a44d8
--- /dev/null
+++ b/LCS/MessageBus/data/feedback_dp_empty.txt
@@ -0,0 +1,23 @@
+<message>
+   <header>
+      <system>LOFAR</system>
+      <version>1.0.0</version>
+      <protocol>
+         <name>lofar.observation.start</name>
+         <version>1.0</version>
+      </protocol>
+      <source>
+         <name>mySubSystem</name>
+         <user>user</user>
+         <uuid></uuid>
+         <timestamp></timestamp>
+         <summary>some test message</summary>
+      </source>
+      <ids>
+         <momid>12345</momid>
+         <sasid>44883</sasid>
+      </ids>
+   </header>
+   <payload>
+   </payload>
+</message>
diff --git a/LCS/MessageBus/data/feedback_dp_no_ids.txt b/LCS/MessageBus/data/feedback_dp_no_ids.txt
new file mode 100644
index 00000000000..101d55bcf0b
--- /dev/null
+++ b/LCS/MessageBus/data/feedback_dp_no_ids.txt
@@ -0,0 +1,40 @@
+<message>
+   <header>
+      <system>LOFAR</system>
+      <version>1.0.0</version>
+      <protocol>
+         <name>lofar.observation.start</name>
+         <version>1.0</version>
+      </protocol>
+      <source>
+         <name>mySubSystem</name>
+         <user>user</user>
+         <uuid></uuid>
+         <timestamp></timestamp>
+         <summary>some test message</summary>
+      </source>
+      <ids>
+         <momid></momid>
+         <sasid></sasid>
+      </ids>
+   </header>
+   <payload>
+Observation.Correlator.channelWidth=3051.7578125
+Observation.Correlator.channelsPerSubband=64
+Observation.Correlator.integrationInterval=1.00139008
+Observation.DataProducts.Output_Correlated_[0].SAP=0
+Observation.DataProducts.Output_Correlated_[0].centralFrequency=115039062.500000
+Observation.DataProducts.Output_Correlated_[0].channelWidth=3051.757812
+Observation.DataProducts.Output_Correlated_[0].channelsPerSubband=64
+Observation.DataProducts.Output_Correlated_[0].duration=119.165420
+Observation.DataProducts.Output_Correlated_[0].fileFormat=AIPS++/CASA
+Observation.DataProducts.Output_Correlated_[0].filename=L257915_SAP000_SB000_uv.MS
+Observation.DataProducts.Output_Correlated_[0].integrationInterval=1.001390
+Observation.DataProducts.Output_Correlated_[0].location=locus001:/data/L257915/
+Observation.DataProducts.Output_Correlated_[0].percentageWritten=100
+Observation.DataProducts.Output_Correlated_[0].size=268083200
+Observation.DataProducts.Output_Correlated_[0].startTime=2015-01-15 09:32:09
+Observation.DataProducts.Output_Correlated_[0].stationSubband=77
+Observation.DataProducts.Output_Correlated_[0].subband=0
+   </payload>
+</message>
diff --git a/LCS/MessageBus/data/feedback_dp_xml_error.txt b/LCS/MessageBus/data/feedback_dp_xml_error.txt
new file mode 100644
index 00000000000..0e7ebf05ed4
--- /dev/null
+++ b/LCS/MessageBus/data/feedback_dp_xml_error.txt
@@ -0,0 +1,40 @@
+<message>
+   <header>
+      <system>LOFAR</system>
+      <version>1.0.0</version>
+      <protocol>
+         <name>lofar.observation.start</name>
+         <version>1.0</version>
+      </protocol>
+      <source>
+         <name>mySubSystem</name>
+         <user>user</user>
+         <uuid></uuid>
+         <timestamp></timestamp>
+         <summary>some test message</summary>
+      </source>
+      <ids>
+         <momid>12345</momid>
+         <sasid>44883</sasid>
+      </ids>
+   </header>
+   <payload_illegal_tag>
+Observation.Correlator.channelWidth=3051.7578125
+Observation.Correlator.channelsPerSubband=64
+Observation.Correlator.integrationInterval=1.00139008
+Observation.DataProducts.Output_Correlated_[0].SAP=0
+Observation.DataProducts.Output_Correlated_[0].centralFrequency=115039062.500000
+Observation.DataProducts.Output_Correlated_[0].channelWidth=3051.757812
+Observation.DataProducts.Output_Correlated_[0].channelsPerSubband=64
+Observation.DataProducts.Output_Correlated_[0].duration=119.165420
+Observation.DataProducts.Output_Correlated_[0].fileFormat=AIPS++/CASA
+Observation.DataProducts.Output_Correlated_[0].filename=L257915_SAP000_SB000_uv.MS
+Observation.DataProducts.Output_Correlated_[0].integrationInterval=1.001390
+Observation.DataProducts.Output_Correlated_[0].location=locus001:/data/L257915/
+Observation.DataProducts.Output_Correlated_[0].percentageWritten=100
+Observation.DataProducts.Output_Correlated_[0].size=268083200
+Observation.DataProducts.Output_Correlated_[0].startTime=2015-01-15 09:32:09
+Observation.DataProducts.Output_Correlated_[0].stationSubband=77
+Observation.DataProducts.Output_Correlated_[0].subband=0
+   </payload>
+</message>
-- 
GitLab