       (rc/-insertEnd joe-exo-end)
       (summarize-and-store (u/to-ISO-8601 start-day) (u/to-ISO-8601 end-day))
 
-      (let [summary (-> (select usage-summaries)
+      (let [summary (-> (select usage_summaries)
                         first
                         :usage  
                         u/deserialize)]


      (summarize-and-store (u/to-ISO-8601 (t/minus start-day (t/days 1))) (u/to-ISO-8601 end-day))
      
      (let [summaries (select usage-summaries)]
        (is (= [{:disk-GB {:unit_minutes 144720.0}, :RAM-GB {:unit_minutes 11520.0}, :nb-cpu {:unit_minutes 2880.0}}] 
          (map (comp u/deserialize :usage) (select usage-summaries)))))))





      (summarize-and-store (u/to-ISO-8601 start-day) (u/to-ISO-8601 end-day))
      
      (let [summaries (select usage_summaries)]
        (is (= [
          {:disk-GB {:unit_minutes 144720.0}, :RAM-GB {:unit_minutes 11520.0}, :nb-cpu {:unit_minutes 2880.0}}] 
          (map (comp u/deserialize :usage) (filter #(= "joe" (:user %)) summaries))))
