From 0b2caa5b77d1a638b56eac0a641430293c3d4f26 Mon Sep 17 00:00:00 2001 From: Damon Aw Date: Thu, 3 Jun 2021 17:45:59 -0400 Subject: [PATCH] Add a golden path E2E test case for command_uuid (#756) --- mdm/mdm/mdm_command_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mdm/mdm/mdm_command_test.go b/mdm/mdm/mdm_command_test.go index cdb426e5..2875e63e 100644 --- a/mdm/mdm/mdm_command_test.go +++ b/mdm/mdm/mdm_command_test.go @@ -344,6 +344,18 @@ func TestEndToEnd(t *testing.T) { } }, }, + + { + name: "Set Command UUID", + requestBytes: []byte( + `{"request_type":"VerifyFirmwarePassword","password":"test","command_uuid":"this-uuid-should-be-used"}`, + ), + testFn: func(t *testing.T, parts endToEndParts) { + if parts.payload.CommandUUID != "this-uuid-should-be-used" { + t.Error("CommandUUID should be set to request payload's command_uuid") + } + }, + }, } for _, tt := range tests {