fleet/cmd/fleetctl/testdata
Victor Lyuboslavsky fc33df1981
Basic Android MDM on/off functionality (#26309)
For #26218 

Basic Android MDM on/off backend functionality. Manually tested.

The following env vars must be set:
```
FLEET_DEV_ANDROID_ENABLED=1
FLEET_DEV_ANDROID_SERVICE_CREDENTIALS=$(cat credentials.json)
FLEET_DEV_ANDROID_PUBSUB_TOPIC=projects/your-project/topics/your-topic
```

I picked https://github.com/go-json-experiment/json as the JSON library,
which seems like the safest option.
- will become json/v2 at some point
- currently used in production by other companies, like Tailscale
- well-maintained
- Some context here: https://github.com/fleetdm/fleet/issues/25512

Plan for next work:
- refactoring from 1st PR
- add pubsub with device enroll -> spec proxy for fleetdm.com
- come back to this sub-task to add tests and finish TODOs

# Checklist for submitter

- [x] Added/updated automated tests
- [x] Manual QA for all new/changed functionality
2025-02-18 09:43:11 -06:00
..
gitops Add labels and editing for VPP apps (#25979) 2025-02-03 11:16:21 -06:00
convert_input.conf Update fleetctl convert for schedulable queries (#13125) 2023-08-08 10:39:20 -07:00
convert_output.yml Save Query Results to DB (#14335) 2023-10-10 09:44:03 -03:00
expectedGetConfigAppConfigJson.json Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
expectedGetConfigAppConfigTeamMaintainerJson.json Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
expectedGetConfigAppConfigTeamMaintainerYaml.yml Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
expectedGetConfigAppConfigYaml.yml Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
expectedGetConfigIncludeServerConfigJson.json Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
expectedGetConfigIncludeServerConfigYaml.yml Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
expectedGetTeamsJson.json SE: CLI setup experience changes (#22956) 2024-10-23 14:51:02 -04:00
expectedGetTeamsText.txt fleetctl get teams prints team id (#18395) 2024-04-29 09:56:04 -04:00
expectedGetTeamsYaml.yml Allow setting failing policy webhook for team via GitOps (#25715) 2025-01-30 11:21:43 -06:00
expectedHostDetailResponseJson.json don't rely on MDM solution name to know if the host has Fleet MDM on (#19688) 2024-06-14 15:01:12 -03:00
expectedHostDetailResponseYaml.yml don't rely on MDM solution name to know if the host has Fleet MDM on (#19688) 2024-06-14 15:01:12 -03:00
expectedListHostsJson.json don't rely on MDM solution name to know if the host has Fleet MDM on (#19688) 2024-06-14 15:01:12 -03:00
expectedListHostsMDM.json don't rely on MDM solution name to know if the host has Fleet MDM on (#19688) 2024-06-14 15:01:12 -03:00
expectedListHostsYaml.yml don't rely on MDM solution name to know if the host has Fleet MDM on (#19688) 2024-06-14 15:01:12 -03:00
macosSetupExpectedAppConfigEmpty.yml Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
macosSetupExpectedAppConfigSet.yml Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
macosSetupExpectedTeam1And2Empty.yml Allow setting failing policy webhook for team via GitOps (#25715) 2025-01-30 11:21:43 -06:00
macosSetupExpectedTeam1And2Set.yml Allow setting failing policy webhook for team via GitOps (#25715) 2025-01-30 11:21:43 -06:00
macosSetupExpectedTeam1Empty.yml Allow setting failing policy webhook for team via GitOps (#25715) 2025-01-30 11:21:43 -06:00
macosSetupExpectedTeam1Set.yml Allow setting failing policy webhook for team via GitOps (#25715) 2025-01-30 11:21:43 -06:00