You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql="SELECT * FROM PilotsHistorySummary ORDER BY GridSite, DestinationSite, Status, VO;"
252
+
sql="SELECT * FROM PilotsHistorySummary ORDER BY GridSite, GridType, Status, VO;"
251
253
result=PilotAgentsDB()._query(sql)
252
254
assertresult["OK"], result["Message"]
253
255
values=result["Value"][1]
254
256
assertlen(values) ==5, "Expected 5 record in the summary"
255
257
# Check it corresponds to the basic "GROUP BY" query
256
-
sql="SELECT GridSite, DestinationSite, Status, VO, COUNT(*) FROM PilotAgents GROUP BY GridSite, DestinationSite, Status, VO ORDER BY GridSite, DestinationSite, Status, VO;"
258
+
sql="SELECT GridSite, GridType, Status, VO, COUNT(*) FROM PilotAgents GROUP BY GridSite, GridType, Status, VO ORDER BY GridSite, Status, VO;"
assertresult_grouped["Value"] ==result_summary["Value"], "Summary and grouped query results differ"
@@ -272,10 +274,10 @@ def test_summarySnapshot():
272
274
res=paDB._update(sql)
273
275
assertres["OK"], res["Message"]
274
276
# Check it corresponds to the basic "GROUP BY" query
275
-
sql="SELECT GridSite, DestinationSite, Status, VO, COUNT(*) FROM PilotAgents GROUP BY GridSite, DestinationSite, Status, VO ORDER BY GridSite, DestinationSite, Status, VO;"
277
+
sql="SELECT GridSite, GridType, Status, VO, COUNT(*) FROM PilotAgents GROUP BY GridSite, GridType, Status, VO ORDER BY GridSite, Status, VO;"
0 commit comments