Commit c9cf12d
authored
APPT-1671: remove if statement for cancel booking parse (#1180)
# Description
Resolving error in the cancel booking parsing -
`{"Level":"Error","MessageTemplate":"Specified method is not
supported.","RenderedMessage":"Specified method is not
supported.","Exception":"System.NotSupportedException: Specified method
is not supported.\r\n at
Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.get_Length()\r\n
at
Nhs.Appointments.Api.Functions.CancelBookingFunction.ReadRequestAsync(HttpRequest
req) in
/home/vsts/work/1/s/src/api/Nhs.Appointments.Api/Functions/CancelBookingFunction.cs:line
109\r\n at
Nhs.Appointments.Api.Functions.BaseApiFunction`2.RunAsync(HttpRequest
req)","TraceId":"288a641dfb98b44e7d25fdc931a440de","SpanId":"4ffc4d12300d0c4f","Properties":{"SourceContext":"Nhs.Appointments.Api.Functions.CancelBookingFunction","AzureFunctions_InvocationId":"391bae1f-c9ab-4a7c-a067-9c7077b58400","AzureFunctions_FunctionName":"CancelBookingFunction"}}`
Example error is in 2.8 - will need cherry-picking
index="mya_nhsuk_int"| spath TraceId | search
TraceId=288a641dfb98b44e7d25fdc931a440de
Fixes # (issue)
# Checklist:
- [x] My work is behind a feature toggle (if appropriate)
- [x] If my work is behind a feature toggle, I've added a full suite of
tests for both the ON and OFF state
- [x] The ticket number is in the Pull Request title, with format
"APPT-XXX: My Title Here"
- [x] I have ran npm tsc / lint (in the future these will be ran
automatically)
- [x] My code generates no new .NET warnings (in the future these will
be treated as errors)
- [x] If I've added a new Function, it is disabled in all but one of the
terraform groups (e.g. http_functions)
- [x] If I've added a new Function, it has both unit and integration
tests. Any request body validators have unit tests also
- [x] If I've made UI changes, I've added appropriate Playwright and
Jest tests
- [x] If I've added/updated an end-point, I've added the appropriate
annotations and tested the Swagger documentation reflects the change1 parent fcc6b2b commit c9cf12d
File tree
2 files changed
+26
-16
lines changed- src/api/Nhs.Appointments.Api/Functions/HttpFunctions
- tests/Nhs.Appointments.Api.Integration/Scenarios/Booking/Cancel
2 files changed
+26
-16
lines changedLines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 110 | + | |
120 | 111 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
127 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
| |||
0 commit comments