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
fix(v6.0.0): CI failures across 6 v6 suites from prior batch
- getCurrentConsumer: add canGetCurrentConsumer to ResourceDoc roles so
authenticated-but-roleless requests get 403 (matches Lift, ConsumerTest).
- getOidcClient / verifyOidcClient: set authMode = UserOrApplication so
anonymous requests return ApplicationNotIdentified (401) instead of
AuthenticatedUserIsRequired (OidcClient tests).
- counterparty-attribute (5 endpoints): rename URL placeholder COUNTERPARTY_ID
to COUNTERPARTY_ID_PARAM in the http4s ResourceDocs so middleware skips its
getCounterpartyTrait lookup; deleteCounterpartyAttribute now uses executeDelete
for 204 (CounterpartyAttributeTest).
- createOrUpdateWebUiProps PUT: inline IO handler that returns 201 when the
property is new and 200 when it already exists (WebUiPropsTest).
- deleteWebUiProps DELETE: switch to executeDelete for 204 (WebUiPropsTest).
- createCallLimits POST: return CallLimitJsonV600 (unbox the RateLimiting from
createConsumerCallLimits) so the response carries rate_limiting_id, which
RateLimitsTest extracts to chain into DELETE.
- deleteCallLimits DELETE: switch to executeDelete for 204 (RateLimitsTest).
All 6 suites (61 tests) now pass locally.
case req @PUT-> `prefixPath` /"management"/"webui_props"/ webUiPropName =>
2158
-
EndpointHelpers.executeAndRespond(req) { implicit cc =>
2159
-
valrawBody= cc.httpBody.getOrElse("")
2160
-
valnameLower= webUiPropName.toLowerCase
2161
-
for {
2162
-
_ <-NewStyle.function.tryons(s"$InvalidWebUiProps name must start with webui_, but current name is: $nameLower", 400, Some(cc)) {
2163
-
require(nameLower.startsWith("webui_"))
2164
-
}
2165
-
_ <-NewStyle.function.tryons(s"$InvalidWebUiProps name must contain only alphanumeric characters, underscore, and dot. Current name: $nameLower", 400, Some(cc)) {
2166
-
require(nameLower.matches("^[a-zA-Z0-9_.]+$"))
2167
-
}
2168
-
_ <-NewStyle.function.tryons(s"$InvalidWebUiProps name must not exceed 255 characters. Current length: ${nameLower.length}", 400, Some(cc)) {
2169
-
require(nameLower.length <=255)
2170
-
}
2171
-
valueJson <-NewStyle.function.tryons(s"$InvalidJsonFormat The Json body should contain a value field", 400, Some(cc)) {
_ <-NewStyle.function.tryons(s"$InvalidWebUiProps name must start with webui_, but current name is: $nameLower", 400, Some(cc)) {
2164
+
require(nameLower.startsWith("webui_"))
2165
+
}
2166
+
_ <-NewStyle.function.tryons(s"$InvalidWebUiProps name must contain only alphanumeric characters, underscore, and dot. Current name: $nameLower", 400, Some(cc)) {
2167
+
require(nameLower.matches("^[a-zA-Z0-9_.]+$"))
2178
2168
}
2169
+
_ <-NewStyle.function.tryons(s"$InvalidWebUiProps name must not exceed 255 characters. Current length: ${nameLower.length}", 400, Some(cc)) {
0 commit comments