From 17e115a51737bd35c8d1eb16bcf5ee8e18974f8a Mon Sep 17 00:00:00 2001 From: Magnus Jensen Date: Tue, 21 Jul 2026 15:14:16 +0200 Subject: [PATCH] add mdm configured endpoints for DDM assets for testing (#49633) **Related issue:** Resolves # Saw I missed these when doing the DDM assets backend # Checklist for submitter If some of the following don't apply, delete the relevant line. ## Testing - [x] Added/updated automated tests - [ ] QA'd all new/changed functionality manually ## Summary by CodeRabbit * **Tests** * Expanded endpoint coverage for device management asset routes, including listing, retrieving, deleting, and batch creation. * Documented a remaining limitation affecting multipart asset uploads. --- server/service/testing_utils_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/service/testing_utils_test.go b/server/service/testing_utils_test.go index 0a096bc905..b31def41ba 100644 --- a/server/service/testing_utils_test.go +++ b/server/service/testing_utils_test.go @@ -910,6 +910,12 @@ func mdmConfigurationRequiredEndpoints() []struct { {"POST", "/api/fleet/orbit/setup_experience/status", false, true}, {"POST", "/api/latest/fleet/software/web_apps", false, true}, {"POST", "/api/latest/fleet/hosts/1/name_template/resend", false, true}, + {"GET", "/api/latest/fleet/assets", false, true}, + {"GET", "/api/latest/fleet/assets/1", false, true}, + // TODO: multipart/form data parsing issue, see comment above + // {"POST", "/api/latest/fleet/assets", false, true}, + {"DELETE", "/api/latest/fleet/assets/1", false, true}, + {"POST", "/api/latest/fleet/assets/batch", false, true}, } }