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
I've fixed an issue in the elasticstack_kibana_slo resource where the slo_id field wasn't being properly checked. Previously, if you provided an ID that was too short, too long, or had invalid characters, it could cause errors when communicating with the API.
Here's what I've done:
1. I've updated the definition for `slo_id` in `internal/kibana/slo.go`:
* The description now clearly states the ID must be between 8 and 48 characters.
* I've added a check to ensure the `slo_id` meets this length requirement and only contains letters, numbers, hyphens, and underscores.
2. I've also added a new automated check in `internal/kibana/slo_test.go`. This makes sure that the system now correctly rejects `slo_id` values that are:
* Too short
* Too long
* Contain invalid characters
And that it provides you with the right error message in these cases.
0 commit comments