Skip to content

Commit

Permalink
test: update cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwwinter committed Mar 22, 2024
1 parent 1851fcd commit 2c5ef8a
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,19 @@ Feature: the report calculation endpoint persist to database
Then the client receives status code of 200
Then the client receives value 22cfbb91fcbff5a2e0755cc26567a81078898dfe939d07c9745149f45863ca31 for property dataHash
Then the client receives value ReportData:1 for property _id

Scenario: client makes call to GET /reporting/report-calculation/ReportCalculation:42 and receives NotFound
Given database app is created
Given database report-calculation is created
Given signed in as client dummy-client with secret client-secret in realm dummy-realm
When the client calls GET /v1/reporting/report-calculation/ReportCalculation:42
Then the client receives an json object
Then the client receives status code of 404

Scenario: client makes call to GET /reporting/report-calculation/ReportCalculation:42/data and receives NotFound
Given database app is created
Given database report-calculation is created
Given signed in as client dummy-client with secret client-secret in realm dummy-realm
When the client calls GET /v1/reporting/report-calculation/ReportCalculation:42/data
Then the client receives an json object
Then the client receives status code of 404

0 comments on commit 2c5ef8a

Please sign in to comment.