Skip to content

Commit e15b113

Browse files
committed
tweak test
1 parent 68ab5c9 commit e15b113

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

features/eps_fhir/validator.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ Feature: I can call the validator endpoint
1111
Scenario: I can call the validator endpoint with valid fhir with x-show-validation-warnings set to true
1212
Given I am an authorised prescriber
1313
When I make a valid request to the eps_fhir validator endpoint with show validation set to true
14-
Then the response indicates a success
14+
Then the response indicates a bad request
1515
And the validator response has many information issue
16+
And the validator response has 0 error issue
1617

1718
Scenario: I can call the validator endpoint with invalid fhir
1819
Given I am an authorised prescriber
1920
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
2021
Then the response indicates a bad request
2122
And the validator response has many error issue
22-
And the validator response has error with diagnostic "HAPI-1861: Failed to parse JSON encoded FHIR content: HAPI-1859: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')"
23+
And the validator response has error with diagnostic HAPI-1861: Failed to parse JSON encoded FHIR content: HAPI-1859: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')

features/eps_fhir_dispensing/validator.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ Feature: I can call the validator endpoint
1313
When I make a valid request to the eps_fhir validator endpoint with show validation set to true
1414
Then the response indicates a success
1515
And the validator response has many information issue
16+
And the validator response has 0 error issue
1617

1718
Scenario: I can call the validator endpoint with invalid fhir
1819
Given I am an authorised dispenser
1920
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
2021
Then the response indicates a bad request
2122
And the validator response has many error issue
22-
And the validator response has error with diagnostic "HAPI-1861: Failed to parse JSON encoded FHIR content: HAPI-1859: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')"
23+
And the validator response has error with diagnostic HAPI-1861: Failed to parse JSON encoded FHIR content: HAPI-1859: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')

features/eps_fhir_prescribing/validator.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ Feature: I can call the validator endpoint
1313
When I make a valid request to the eps_fhir validator endpoint with show validation set to true
1414
Then the response indicates a success
1515
And the validator response has many information issue
16+
And the validator response has 0 error issue
1617

1718
Scenario: I can call the validator endpoint with invalid fhir
1819
Given I am an authorised prescriber
1920
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
2021
Then the response indicates a bad request
2122
And the validator response has many error issue
22-
And the validator response has error with diagnostic "HAPI-1861: Failed to parse JSON encoded FHIR content: HAPI-1859: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')"
23+
And the validator response has error with diagnostic HAPI-1861: Failed to parse JSON encoded FHIR content: HAPI-1859: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')

0 commit comments

Comments
 (0)