diff --git a/server/service/integration_core_test.go b/server/service/integration_core_test.go index e14e76978ca8..ce1a489ea1a1 100644 --- a/server/service/integration_core_test.go +++ b/server/service/integration_core_test.go @@ -12332,7 +12332,7 @@ func (s *integrationTestSuite) TestListSoftwareVersionsTeamIdentifier() { versionsResp := listSoftwareVersionsResponse{} s.DoJSON("GET", "/api/latest/fleet/software/versions", nil, http.StatusOK, &versionsResp, - "per_page", "5", "page", "0", + "per_page", "5", "page", "0", "order_key", "name", "order_direction", "desc", ) require.Len(t, versionsResp.Software, 2) require.Equal(t, "Safari.app", versionsResp.Software[0].Name) diff --git a/server/service/osquery_test.go b/server/service/osquery_test.go index 286b6b8a28aa..5be2974a12ae 100644 --- a/server/service/osquery_test.go +++ b/server/service/osquery_test.go @@ -1062,6 +1062,7 @@ func verifyDiscovery(t *testing.T, queries, discovery map[string]string) { hostDetailQueryPrefix + "software_vscode_extensions": {}, hostDetailQueryPrefix + "software_macos_firefox": {}, hostDetailQueryPrefix + "battery": {}, + hostDetailQueryPrefix + "software_macos_codesign": {}, } for name := range queries { require.NotEmpty(t, discovery[name]) diff --git a/server/service/osquery_utils/queries_test.go b/server/service/osquery_utils/queries_test.go index 08ee059ac1d8..519e3d4fa0af 100644 --- a/server/service/osquery_utils/queries_test.go +++ b/server/service/osquery_utils/queries_test.go @@ -307,7 +307,7 @@ func TestGetDetailQueries(t *testing.T) { queriesWithUsersAndSoftware := GetDetailQueries(context.Background(), config.FleetConfig{App: config.AppConfig{EnableScheduledQueryStats: true}}, nil, &fleet.Features{EnableHostUsers: true, EnableSoftwareInventory: true}) qs = baseQueries qs = append(qs, "users", "users_chrome", "software_macos", "software_linux", "software_windows", "software_vscode_extensions", - "software_chrome", "scheduled_query_stats", "software_macos_firefox") + "software_chrome", "scheduled_query_stats", "software_macos_firefox", "software_macos_codesign") require.Len(t, queriesWithUsersAndSoftware, len(qs)) sortedKeysCompare(t, queriesWithUsersAndSoftware, qs)