Commit 3c3ae8b
[Index Management] Fix serverless API integration tests (#166203)
Fixes #165565
Fixes #165609
## Summary
Two of the PUT requests in the IM serverless API integration tests were
failing with the following error: `{"statusCode":400,"error":"Bad
Request","message":"uri
[https://localhost:5620/internal/index_management/indices/create] with
method [put] exists but is not available with the current
configuration"}`.
I think this is because they were missing the
`x-elastic-internal-origin` header which needs to be provided when we
try to access an internal API in serverless outside of the `core.http`
service. Once I added the headers, the tests started passing
successfully.
---------
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>1 parent f8927dd commit 3c3ae8b
1 file changed
Lines changed: 11 additions & 2 deletions
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| |||
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| 130 | + | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
| |||
0 commit comments