Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions oadrlib/lib/oadr2b/RegisterReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ public string createRegisterReport(string requestID, string venID, Dictionary<st
request.requestID = requestID;
request.venID = venID;

// Test case R1_3170_TH_VTN_1 (test-harness for OpenADR certification
// as provided by Quality logic) fails if reportRequestID is not set.
// Report request ID is mandatory in OpenADR for any subsquent request
// when sent for same report.
if (reportRequestID != null)
{
request.reportRequestID = reportRequestID;
}

request.oadrReport = new oadrReportType[reports.Count];

int index = 0;
Expand Down
4 changes: 3 additions & 1 deletion oadrlib/lib/oadr2b/ReportWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ public oadrReportType generateReport(string reportRequestID)
return report;

List<IntervalType> reportIntervals = m_reportIntervals.Values.ToList().OrderBy(o => o.dtstart.datetime).ToList();
reportIntervals.Reverse();
// Test Case R1_3160_TH_VTN_1: Based on OpenADR specifications, intervals have to be
// in ascending order. Reversing it here converts it into descending order.
//reportIntervals.Reverse();

// the dtstart of the report must match the dtstart of the first interval
report.dtstart = new dtstart();
Expand Down