You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/eps_fhir/validator.feature
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,19 @@ Feature: I can call the validator endpoint
4
4
5
5
Scenario: I can call the validator endpoint with valid fhir with x-show-validation-warnings set to false
6
6
Given I am an authorised prescriber
7
-
When I make a request to the eps_fhir validator endpoint
7
+
When I make a valid request to the eps_fhir validator endpoint with show validation set to false
8
8
Then the response indicates a success
9
9
And the validator response has 1 information issue
10
+
11
+
Scenario: I can call the validator endpoint with valid fhir with x-show-validation-warnings set to true
12
+
Given I am an authorised prescriber
13
+
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
15
+
And the validator response has many information issue
16
+
17
+
Scenario: I can call the validator endpoint with invalid fhir
18
+
Given I am an authorised prescriber
19
+
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
20
+
Then the response indicates a bad request
21
+
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 '{')"
Copy file name to clipboardExpand all lines: features/eps_fhir_dispensing/validator.feature
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,19 @@ Feature: I can call the validator endpoint
4
4
5
5
Scenario: I can call the validator endpoint with valid fhir with x-show-validation-warnings set to false
6
6
Given I am an authorised dispenser
7
-
When I make a request to the eps_fhir_dispensing validator endpoint
7
+
When I make a valid request to the eps_fhir validator endpoint with show validation set to false
8
8
Then the response indicates a success
9
9
And the validator response has 1 information issue
10
+
11
+
Scenario: I can call the validator endpoint with valid fhir with x-show-validation-warnings set to true
12
+
Given I am an authorised dispenser
13
+
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
15
+
And the validator response has many information issue
16
+
17
+
Scenario: I can call the validator endpoint with invalid fhir
18
+
Given I am an authorised dispenser
19
+
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
20
+
Then the response indicates a bad request
21
+
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 '{')"
Copy file name to clipboardExpand all lines: features/eps_fhir_prescribing/validator.feature
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,19 @@ Feature: I can call the validator endpoint
4
4
5
5
Scenario: I can call the validator endpoint with valid fhir with x-show-validation-warnings set to false
6
6
Given I am an authorised prescriber
7
-
When I make a request to the eps_fhir_prescribing validator endpoint
7
+
When I make a valid request to the eps_fhir validator endpoint with show validation set to false
8
8
Then the response indicates a success
9
9
And the validator response has 1 information issue
10
+
11
+
Scenario: I can call the validator endpoint with valid fhir with x-show-validation-warnings set to true
12
+
Given I am an authorised prescriber
13
+
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
15
+
And the validator response has many information issue
16
+
17
+
Scenario: I can call the validator endpoint with invalid fhir
18
+
Given I am an authorised prescriber
19
+
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
20
+
Then the response indicates a bad request
21
+
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 '{')"
0 commit comments