Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 11.41 KB | None | 0 0
  1. testFrozenDateTime: "2015-05-15T16:00:00.000-0000"
  2. getCarsRValue:
  3. - carKey: 2001
  4.   driverKey: 3001
  5. aetrSummaryFactory:
  6.   carKey: 2001
  7.   drvKey1: 3001
  8.   timeEnd: "2015-05-04T08:00:00.000-0000"
  9.   nowUTC: "2015-05-04T08:00:00.000-0000"
  10. trackingList1:
  11.   # day 7
  12.   - truckStatus: "P"
  13.     drivingTime: 2700  # 45 minutes of resting
  14.     time: "2015-05-10T18:45:00.000+0000"
  15.   - truckStatus: "M"
  16.     drivingTime: 16200  # 4.5 hours of driving
  17.     time: "2015-05-10T18:00:00.000+0000"
  18.     distance: 100.0
  19.   - truckStatus: "*"  # sleep
  20.     time: "2015-05-10T13:30:00.000+0000"
  21.  
  22.   # day 6
  23.   - truckStatus: "P"
  24.     drivingTime: 2700  # 45 minutes of resting
  25.     time: "2015-05-09T18:45:00.000+0000"
  26.   - truckStatus: "M"
  27.     drivingTime: 16200  # 4.5 hours of driving
  28.     time: "2015-05-09T18:00:00.000+0000"
  29.     distance: 100.0
  30.   - truckStatus: "*"  # sleep
  31.     time: "2015-05-09T13:30:00.000+0000"
  32.  
  33.   # day 5
  34.   - truckStatus: "P"
  35.     drivingTime: 2700  # 45 minutes of resting
  36.     time: "2015-05-08T18:45:00.000+0000"
  37.   - truckStatus: "M"
  38.     drivingTime: 16200  # 4.5 hours of driving
  39.     time: "2015-05-08T18:00:00.000+0000"
  40.     distance: 100.0
  41.   - truckStatus: "*"  # sleep
  42.     time: "2015-05-08T13:30:00.000+0000"
  43.  
  44.   # day 4
  45.   - truckStatus: "P"
  46.     drivingTime: 2700  # 45 minutes of resting
  47.     time: "2015-05-07T18:45:00.000+0000"
  48.   - truckStatus: "M"
  49.     drivingTime: 16200  # 4.5 hours of driving
  50.     time: "2015-05-07T18:00:00.000+0000"
  51.     distance: 100.0
  52.   - truckStatus: "*"  # sleep
  53.     time: "2015-05-07T13:30:00.000+0000"
  54.  
  55.   # day 3
  56.   - truckStatus: "P"
  57.     drivingTime: 2700  # 45 minutes of resting
  58.     time: "2015-05-06T18:45:00.000+0000"
  59.   - truckStatus: "M"
  60.     drivingTime: 16200  # 4.5 hours of driving
  61.     time: "2015-05-06T18:00:00.000+0000"
  62.     distance: 100.0
  63.   - truckStatus: "*"  # sleep
  64.     time: "2015-05-06T13:30:00.000+0000"
  65.  
  66.   # day 2
  67.   - truckStatus: "P"
  68.     drivingTime: 2700  # 45 minutes of resting
  69.     time: "2015-05-05T18:45:00.000+0000"
  70.   - truckStatus: "M"
  71.     drivingTime: 16200  # 4.5 hours of driving
  72.     time: "2015-05-05T18:00:00.000+0000"
  73.     distance: 100.0
  74.   - truckStatus: "*"  # sleep
  75.     time: "2015-05-05T13:30:00.000+0000"
  76.  
  77.   # day 1
  78.   - truckStatus: "P"
  79.     drivingTime: 2700  # 45 minutes of resting
  80.     time: "2015-05-04T18:45:00.000+0000"
  81.   - truckStatus: "M"
  82.     drivingTime: 16200  # 4.5 hours of driving
  83.     time: "2015-05-04T18:00:00.000+0000"
  84.     distance: 100.0
  85.   - truckStatus: "*"  # sleep
  86.     time: "2015-05-04T13:30:00.000+0000"
  87.  
  88. expectedJson: >-
  89.   {
  90.     "2001" : [ {
  91.                  "type" : "SLEEP",
  92.                  "length" : 19800,
  93.                  "length_dbg" : "5h 30m 0s",
  94.                  "updated_length_dbg" : "0h 0m 0s",
  95.                  "distance" : 0.0,
  96.                  "was_merged" : false,
  97.                  "firstDriver" : true,
  98.                  "aetrError" : null,
  99.                  "aetrAltError" : null,
  100.                  "driveStyle" : 0.0,
  101.                  "updatedLength" : 0,
  102.                  "updatedDistance" : 0.0,
  103.                  "startDate" : 1430726400000,
  104.                  "endDate" : 1430746200000
  105.                }, {
  106.                  "type" : "DRIVE",
  107.                  "length" : 16200,
  108.                  "length_dbg" : "4h 30m 0s",
  109.                  "updated_length_dbg" : "0h 0m 0s",
  110.                  "distance" : 100.0,
  111.                  "was_merged" : false,
  112.                  "firstDriver" : true,
  113.                  "aetrError" : null,
  114.                  "aetrAltError" : null,
  115.                  "driveStyle" : 0.0,
  116.                  "updatedLength" : 0,
  117.                  "updatedDistance" : 0.0,
  118.                  "startDate" : 1430746200000,
  119.                  "endDate" : 1430762400000
  120.                }, {
  121.                  "type" : "SLEEP",
  122.                  "length" : 70200,
  123.                  "length_dbg" : "19h 30m 0s",
  124.                  "updated_length_dbg" : "0h 0m 0s",
  125.                  "distance" : 0.0,
  126.                  "was_merged" : false,
  127.                  "firstDriver" : true,
  128.                  "aetrError" : null,
  129.                  "aetrAltError" : null,
  130.                  "driveStyle" : 0.0,
  131.                  "updatedLength" : 0,
  132.                  "updatedDistance" : 0.0,
  133.                  "startDate" : 1430762400000,
  134.                  "endDate" : 1430832600000
  135.                }, {
  136.                  "type" : "DRIVE",
  137.                  "length" : 16200,
  138.                  "length_dbg" : "4h 30m 0s",
  139.                  "updated_length_dbg" : "0h 0m 0s",
  140.                  "distance" : 100.0,
  141.                  "was_merged" : false,
  142.                  "firstDriver" : true,
  143.                  "aetrError" : null,
  144.                  "aetrAltError" : null,
  145.                  "driveStyle" : 0.0,
  146.                  "updatedLength" : 0,
  147.                  "updatedDistance" : 0.0,
  148.                  "startDate" : 1430832600000,
  149.                  "endDate" : 1430848800000
  150.                }, {
  151.                  "type" : "SLEEP",
  152.                  "length" : 70200,
  153.                  "length_dbg" : "19h 30m 0s",
  154.                  "updated_length_dbg" : "0h 0m 0s",
  155.                  "distance" : 0.0,
  156.                  "was_merged" : false,
  157.                  "firstDriver" : true,
  158.                  "aetrError" : null,
  159.                  "aetrAltError" : null,
  160.                  "driveStyle" : 0.0,
  161.                  "updatedLength" : 0,
  162.                  "updatedDistance" : 0.0,
  163.                  "startDate" : 1430848800000,
  164.                  "endDate" : 1430919000000
  165.                }, {
  166.                  "type" : "DRIVE",
  167.                  "length" : 16200,
  168.                  "length_dbg" : "4h 30m 0s",
  169.                  "updated_length_dbg" : "0h 0m 0s",
  170.                  "distance" : 100.0,
  171.                  "was_merged" : false,
  172.                  "firstDriver" : true,
  173.                  "aetrError" : null,
  174.                  "aetrAltError" : null,
  175.                  "driveStyle" : 0.0,
  176.                  "updatedLength" : 0,
  177.                  "updatedDistance" : 0.0,
  178.                  "startDate" : 1430919000000,
  179.                  "endDate" : 1430935200000
  180.                }, {
  181.                  "type" : "SLEEP",
  182.                  "length" : 70200,
  183.                  "length_dbg" : "19h 30m 0s",
  184.                  "updated_length_dbg" : "0h 0m 0s",
  185.                  "distance" : 0.0,
  186.                  "was_merged" : false,
  187.                  "firstDriver" : true,
  188.                  "aetrError" : null,
  189.                  "aetrAltError" : null,
  190.                  "driveStyle" : 0.0,
  191.                  "updatedLength" : 0,
  192.                  "updatedDistance" : 0.0,
  193.                  "startDate" : 1430935200000,
  194.                  "endDate" : 1431005400000
  195.                }, {
  196.                  "type" : "DRIVE",
  197.                  "length" : 16200,
  198.                  "length_dbg" : "4h 30m 0s",
  199.                  "updated_length_dbg" : "0h 0m 0s",
  200.                  "distance" : 100.0,
  201.                  "was_merged" : false,
  202.                  "firstDriver" : true,
  203.                  "aetrError" : null,
  204.                  "aetrAltError" : null,
  205.                  "driveStyle" : 0.0,
  206.                  "updatedLength" : 0,
  207.                  "updatedDistance" : 0.0,
  208.                  "startDate" : 1431005400000,
  209.                  "endDate" : 1431021600000
  210.                }, {
  211.                  "type" : "SLEEP",
  212.                  "length" : 70200,
  213.                  "length_dbg" : "19h 30m 0s",
  214.                  "updated_length_dbg" : "0h 0m 0s",
  215.                  "distance" : 0.0,
  216.                  "was_merged" : false,
  217.                  "firstDriver" : true,
  218.                  "aetrError" : null,
  219.                  "aetrAltError" : null,
  220.                  "driveStyle" : 0.0,
  221.                  "updatedLength" : 0,
  222.                  "updatedDistance" : 0.0,
  223.                  "startDate" : 1431021600000,
  224.                  "endDate" : 1431091800000
  225.                }, {
  226.                  "type" : "DRIVE",
  227.                  "length" : 16200,
  228.                  "length_dbg" : "4h 30m 0s",
  229.                  "updated_length_dbg" : "0h 0m 0s",
  230.                  "distance" : 100.0,
  231.                  "was_merged" : false,
  232.                  "firstDriver" : true,
  233.                  "aetrError" : null,
  234.                  "aetrAltError" : null,
  235.                  "driveStyle" : 0.0,
  236.                  "updatedLength" : 0,
  237.                  "updatedDistance" : 0.0,
  238.                  "startDate" : 1431091800000,
  239.                  "endDate" : 1431108000000
  240.                }, {
  241.                  "type" : "SLEEP",
  242.                  "length" : 70200,
  243.                  "length_dbg" : "19h 30m 0s",
  244.                  "updated_length_dbg" : "0h 0m 0s",
  245.                  "distance" : 0.0,
  246.                  "was_merged" : false,
  247.                  "firstDriver" : true,
  248.                  "aetrError" : null,
  249.                  "aetrAltError" : null,
  250.                  "driveStyle" : 0.0,
  251.                  "updatedLength" : 0,
  252.                  "updatedDistance" : 0.0,
  253.                  "startDate" : 1431108000000,
  254.                  "endDate" : 1431178200000
  255.                }, {
  256.                  "type" : "DRIVE",
  257.                  "length" : 16200,
  258.                  "length_dbg" : "4h 30m 0s",
  259.                  "updated_length_dbg" : "0h 0m 0s",
  260.                  "distance" : 100.0,
  261.                  "was_merged" : false,
  262.                  "firstDriver" : true,
  263.                  "aetrError" : null,
  264.                  "aetrAltError" : null,
  265.                  "driveStyle" : 0.0,
  266.                  "updatedLength" : 0,
  267.                  "updatedDistance" : 0.0,
  268.                  "startDate" : 1431178200000,
  269.                  "endDate" : 1431194400000
  270.                }, {
  271.                  "type" : "SLEEP",
  272.                  "length" : 70200,
  273.                  "length_dbg" : "19h 30m 0s",
  274.                  "updated_length_dbg" : "0h 0m 0s",
  275.                  "distance" : 0.0,
  276.                  "was_merged" : false,
  277.                  "firstDriver" : true,
  278.                  "aetrError" : null,
  279.                  "aetrAltError" : null,
  280.                  "driveStyle" : 0.0,
  281.                  "updatedLength" : 0,
  282.                  "updatedDistance" : 0.0,
  283.                  "startDate" : 1431194400000,
  284.                  "endDate" : 1431264600000
  285.                }, {
  286.                  "type" : "DRIVE",
  287.                  "length" : 16200,
  288.                  "length_dbg" : "4h 30m 0s",
  289.                  "updated_length_dbg" : "0h 0m 0s",
  290.                  "distance" : 100.0,
  291.                  "was_merged" : false,
  292.                  "firstDriver" : true,
  293.                  "aetrError" : [ "ERR:02 Driving more than 6 days in a week!", "ERR:14 No proper weekly rest!" ],
  294.                  "aetrAltError" : null,
  295.                  "driveStyle" : 0.0,
  296.                  "updatedLength" : 0,
  297.                  "updatedDistance" : 0.0,
  298.                  "startDate" : 1431264600000,
  299.                  "endDate" : 1431280800000
  300.                }, {
  301.                  "type" : "PAUSE",
  302.                  "length" : 2700,
  303.                  "length_dbg" : "0h 45m 0s",
  304.                  "updated_length_dbg" : "0h 0m 0s",
  305.                  "distance" : 0.0,
  306.                  "was_merged" : false,
  307.                  "firstDriver" : true,
  308.                  "aetrError" : null,
  309.                  "aetrAltError" : null,
  310.                  "driveStyle" : 0.0,
  311.                  "updatedLength" : 0,
  312.                  "updatedDistance" : 0.0,
  313.                  "startDate" : 1431280800000,
  314.                  "endDate" : 1431283500000
  315.                } ]
  316.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement