Test Result : Scenario: MetricsInfo last published date

0 failures
24 tests
Took 17 ms.

All Tests

Test nameDurationStatus
And Account for "kapua-sys"0 msPassed
And All indices are deleted0 msPassed
And Client "test-client-1" first published a metric in the list "AccountMetrics" on "2017-07-03T09:00:00.000Z"0 msPassed
And Client "test-client-1" last published a metric in the list "AccountMetrics" on "2017-07-03T09:00:00.000Z"0 msPassed
And Client "test-client-2" first published a metric in the list "AccountMetrics" on "2017-07-03T09:00:00.000Z"0 msPassed
And Client "test-client-2" last published a metric in the list "AccountMetrics" on "2017-07-03T09:00:20.000Z"0 msPassed
And I refresh all database indices0 msPassed
And I set the database to device timestamp indexing0 msPassed
And I set the following metrics to the message 0 from the list "TestMessages"0 msPassed
And I set the following metrics to the message 1 from the list "TestMessages"0 msPassed
And I set the following metrics to the message 2 from the list "TestMessages"0 msPassed
And I set the following metrics to the message 3 from the list "TestMessages"0 msPassed
And The device "test-device-1"0 msPassed
And The metric "tst-metric-1" was last published in the list "AccountMetrics" on "2017-07-03T09:00:00.000Z"0 msPassed
And The metric "tst-metric-2" was last published in the list "AccountMetrics" on "2017-07-03T09:00:00.000Z"0 msPassed
And The metric "tst-metric-3" was last published in the list "AccountMetrics" on "2017-07-03T09:00:20.000Z"0 msPassed
And The metric "tst-metric-4" was last published in the list "AccountMetrics" on "2017-07-03T09:00:20.000Z"0 msPassed
And The metric info items "AccountMetrics" match the prepared messages in "TestMessages"0 msPassed
Given I login as user with name "kapua-sys" and password "kapua-password"0 msPassed
Scenario: MetricsInfo last published date17 msPassed
Then I store the messages from list "TestMessages" and remember the IDs as "StoredMessageIDs"0 msPassed
Then There are exactly 4 metrics in the list "AccountMetrics"0 msPassed
When I prepare a number of messages with the following details and remember the list as "TestMessages"0 msPassed
When I query for the current account metrics in the date range "2017-07-03T09:00:00.000Z" to "2017-07-03T09:00:20.000Z" and store them as "AccountMetrics"0 msPassed