Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
test(e2e): group flaky test
Browse files Browse the repository at this point in the history
Sometimes the permission is not in place right after the rule has been created
  • Loading branch information
coderbyheart committed Jan 8, 2021
1 parent ea40baf commit ced3866
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions features/DeviceBatchData.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ Feature: Device: Batch Data
}
"""

Scenario: Query the historical gps data

Given I am authenticated with Cognito
When I run this Timestream query
"""
SELECT measure_value::double AS value
FROM "{historicaldataDatabaseName}"."{historicaldataTableName}"
WHERE deviceId='{cat:id}' AND measure_name='gps.lng' AND measure_value::double IS NOT NULL LIMIT 2
WHERE deviceId='{cat:id}'
AND measure_name='gps.lng'
AND measure_value::double IS NOT NULL
ORDER BY time DESC
LIMIT 2
"""
Then "timestreamQueryResult" should match this JSON
# The values are string because they have not yet run through the formatter
Expand Down

0 comments on commit ced3866

Please sign in to comment.