mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
## For #32967 - Only check for setup experience software to install if Fleet is a Premium instance - Test 3 states for Linux hosts (Free, Premium with setup software, Premium without setup software) ### Free –> forwards directly to regular DUP:  ### Premium –> checks for setup software, renders "Setting up your device" page if present:  ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually - [x] Confirmed that the fix is not expected to adversely impact load test results --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
17 lines
429 B
TypeScript
17 lines
429 B
TypeScript
const DEFAULT_LICENSE_MOCK = {
|
|
tier: "premium",
|
|
device_count: 100,
|
|
expiration: "2050-01-01T00:00:00Z",
|
|
note: "test license",
|
|
organization: "test org",
|
|
managed_cloud: false,
|
|
allow_disable_telemetry: false,
|
|
};
|
|
|
|
type License = typeof DEFAULT_LICENSE_MOCK;
|
|
|
|
const createMockLicense = (overrides?: Partial<License>): License => {
|
|
return { ...DEFAULT_LICENSE_MOCK, ...overrides };
|
|
};
|
|
|
|
export default createMockLicense;
|