fleet/server/test
Victor Lyuboslavsky a0e9d88e0d
Updated SQL modes in tests to match production. (#31445)
Fixes #31444 

The changes are primarily in tests. The only changes in production code
are a couple validations/checks for invalid values in:
- mysql/apple_mdm.go
- mysql/hosts.go
- mysql/queries.go

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved handling of timestamp and default values across various
features to prevent database errors and warnings.
* Enhanced validation and data consistency for Apple Business Manager
tokens and MDM profiles.
* Updated test data and logic to comply with stricter database
constraints and realistic scenarios, including date handling and field
lengths.

* **Chores**
* Updated test setups to reflect schema changes, improve data integrity,
and avoid future compatibility issues.
  * Standardized SQL mode and timestamp usage in test environments.
* Refined test data for VPP apps, software installers, and device
enrollments for better reliability.

* **Tests**
* Expanded and updated tests to cover new fields, stricter validation,
and more accurate simulation of real-world conditions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-03 08:18:13 +02:00
..
httptest Replace home-made SAML implementation with https://github.com/crewjam/saml (#28486) 2025-07-07 15:13:46 -03:00
activities.go Updated SQL modes in tests to match production. (#31445) 2025-08-03 08:18:13 +02:00
comparisons.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
context.go Implement API endpoint for MDM manual enrollment profile download (#9232) 2023-01-16 10:22:12 -05:00
enrollment.go Refactor EnrollOrbit/EnrollHost (#30872) 2025-07-15 17:22:02 -03:00
functions.go Updated SQL modes in tests to match production. (#31445) 2025-08-03 08:18:13 +02:00
mdm.go BRP: cancel single profile on delete via UI (#29107) 2025-05-20 08:55:51 -04:00
new_objects.go Android: add 'Android' builtin label, add new Android hosts to 'All hosts' and this label (#26585) 2025-02-25 14:44:48 -05:00
printing.go Bulk script execution backend (#28299) 2025-04-30 12:54:46 -04:00
testingt.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
users.go New gitops role (#10850) 2023-04-12 16:11:04 -03:00