LF-2873 Test plan

When posting a reading_type that is invalid for a sensor, provide a more robust response than [] https://lite-farm.atlassian.net/browse/LF-2873

Role: N/A

User preferences: N/A

API: N/A

Dates: N/A

Switching farms:N/A

Input constraints: N/A

Data transformation: N/A

Cascading effects: N/A

Synchronous/ Asynchronous: N/A

External service: ESCI

Test Suite

Test Step #

Description

Test Data

Expected Result

Actual Result

Pass/Fail

1

Using an API testing tool make a post to a valid ESCI sensor associated with a farm on the app, with a valid payload

 

200 status code and data added to the data store in the response body

 

 

2

Repeat step 1, with a single change to the payload, an invalid reading_type

 

400 status code and a response body that reads “{X} is an invalid reading_type”.

 

 

3