From 244b8046079840a8b3de5b1e3e2238c584557c7a Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Wed, 2 Jul 2025 15:38:25 -0400 Subject: [PATCH] Skip implicit worker jobs in test, leave print debugging on (#30535) --- server/service/integration_mdm_dep_test.go | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/server/service/integration_mdm_dep_test.go b/server/service/integration_mdm_dep_test.go index f6f3f1d097..a87daef86f 100644 --- a/server/service/integration_mdm_dep_test.go +++ b/server/service/integration_mdm_dep_test.go @@ -2134,6 +2134,7 @@ func (s *integrationMDMTestSuite) createTeamDeviceForSetupExperienceWithProfileS func (s *integrationMDMTestSuite) TestSetupExperienceFlowWithSoftwareAndScriptAutoRelease() { t := s.T() ctx := context.Background() + s.setSkipWorkerJobs(t) teamDevice, enrolledHost, _ := s.createTeamDeviceForSetupExperienceWithProfileSoftwareAndScript() @@ -2158,18 +2159,18 @@ func (s *integrationMDMTestSuite) TestSetupExperienceFlowWithSoftwareAndScriptAu require.NoError(t, plist.Unmarshal(cmd.Raw, &fullCmd)) // Can be useful for debugging - // switch cmd.Command.RequestType { - // case "InstallProfile": - // fmt.Println(">>>> device received command: ", cmd.CommandUUID, cmd.Command.RequestType, string(fullCmd.Command.InstallProfile.Payload)) - // case "InstallEnterpriseApplication": - // if fullCmd.Command.InstallEnterpriseApplication.ManifestURL != nil { - // fmt.Println(">>>> device received command: ", cmd.CommandUUID, cmd.Command.RequestType, *fullCmd.Command.InstallEnterpriseApplication.ManifestURL) - // } else { - // fmt.Println(">>>> device received command: ", cmd.CommandUUID, cmd.Command.RequestType) - // } - // default: - // fmt.Println(">>>> device received command: ", cmd.Command.RequestType) - // } + switch cmd.Command.RequestType { + case "InstallProfile": + fmt.Println(">>>> device received command: ", cmd.CommandUUID, cmd.Command.RequestType, string(fullCmd.Command.InstallProfile.Payload)) + case "InstallEnterpriseApplication": + if fullCmd.Command.InstallEnterpriseApplication.ManifestURL != nil { + fmt.Println(">>>> device received command: ", cmd.CommandUUID, cmd.Command.RequestType, *fullCmd.Command.InstallEnterpriseApplication.ManifestURL) + } else { + fmt.Println(">>>> device received command: ", cmd.CommandUUID, cmd.Command.RequestType) + } + default: + fmt.Println(">>>> device received command: ", cmd.Command.RequestType) + } cmds = append(cmds, &fullCmd) cmd, err = mdmDevice.Acknowledge(cmd.CommandUUID)