mocks

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 7 Imported by: 0

README

Device Service Mock Data

This directory contains mock JSON responses for testing the Apple Business Manager Device Service API endpoints.

Files

  • validate_get_organization_devices.json - Mock response for GET /orgDevices endpoint
  • validate_get_device_information.json - Mock response for GET /orgDevices/{id} endpoint

Usage

These JSON files are used by the test suite to validate API response parsing and ensure the client correctly handles the expected response structure from Apple's Business Manager API.

The mock data is based on the official Apple Business Manager API documentation and real API response examples.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrgDevicesMock

type OrgDevicesMock struct{}

func (*OrgDevicesMock) AddMockDevice

func (m *OrgDevicesMock) AddMockDevice(deviceID string, device map[string]any)

AddMockDevice adds a device to the mock state

func (*OrgDevicesMock) CleanupMockState

func (m *OrgDevicesMock) CleanupMockState()

CleanupMockState clears all mock state data

func (*OrgDevicesMock) GetMockDevice

func (m *OrgDevicesMock) GetMockDevice(deviceID string) (map[string]any, bool)

GetMockDevice retrieves a device from the mock state

func (*OrgDevicesMock) RegisterErrorMocks

func (m *OrgDevicesMock) RegisterErrorMocks()

RegisterErrorMocks registers mock responders that return error responses

func (*OrgDevicesMock) RegisterMocks

func (m *OrgDevicesMock) RegisterMocks()

RegisterMocks registers all the HTTP mock responders for organization devices

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL