Core Tests
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Core Tests is the primary end-to-end test collection provided by the com.openframe.oss:openframe-test-service-core dependency. It validates OpenFrame tenant workflows through the deployed API, authentication, GraphQL, device-management, and integration surfaces.
The module groups functional tests for tenant administration, devices, tickets, remote management, software, knowledge base content, notifications, onboarding, and AI-related configuration. Individual test classes use shared fixtures, API helpers, ordered execution where state must persist between cases, and cleanup routines for resources created during a run.
flowchart TD
Runner["OpenFrame Test Runner"] --> CoreTests["Core Tests"]
CoreTests --> TenantAdmin["Tenant Administration"]
CoreTests --> DevicesLogs["Devices and Logs"]
CoreTests --> Rmm["Remote Management"]
CoreTests --> Collaboration["Collaboration and Support"]
CoreTests --> PlatformFeatures["Platform Features"]
TenantAdmin --> ApiAuth["API and Authentication Tests"]
TenantAdmin --> Organizations["Assignment and Organization Tests"]
TenantAdmin --> Registration["Owner Registration Tests"]
DevicesLogs --> DeviceTests["Device and Log Tests"]
DevicesLogs --> TagsPackages["Package and Tags Tests"]
Rmm --> Policies["Policy Tests"]
Rmm --> RemoteAccess["Remote Access Tests"]
Rmm --> Scripts["Script and Schedule Tests"]
Rmm --> Software["Integration Tools and Software Tests"]
Collaboration --> Tickets["Ticket and Time Tracking Tests"]
Collaboration --> KnowledgeBase["Knowledgebase and Onboarding Tests"]
Collaboration --> Dialogs["AI Settings and Dialog Tests"]
PlatformFeatures --> Notifications["Frontend and Notification Tests"]
PlatformFeatures --> Statistics["Software Action and Statistics Tests"]
ApiAuth --> Platform["Running OpenFrame Tenant"]
DeviceTests --> Platform
Rmm --> Platform
Collaboration --> Platform
PlatformFeatures --> Platform
| Area | Representative test classes | Validated behavior |
|---|---|---|
| API and authentication | ApiKeysTest, AuthTokensTest, ResetPasswordTest, UserTest |
API-key lifecycle, session refresh and logout, password reset, user and owner-management behavior. |
| Organizations and assignments | AssignmentsTest, OrganizationsTest, UserInvitationsTest |
Organization lifecycle, invitations, users, and assignments between knowledge-base content, tickets, devices, and articles. |
| Device and log operations | DevicesTest, DeviceLogsTest, LogsTest, StaleDeviceCleanupTest |
Device inventory, integration data, device-log queries, event logs, and duplicate-enrolment cleanup. |
| Remote management | CreatePolicyTest, TriggerPolicyTest, DeletePolicyTest, RemoteAccessPolicyTest, RemoteAccessSessionTest |
Fleet policy lifecycle, compliance aggregation, remote-access policy resolution, approval, session lifecycle, and audit history. |
| Scripts and software | ScriptsTest, ScriptScheduleTest, ScriptScheduleDevicesTest, ScriptExecutionHistoryTest, SoftwareBundleTest, SoftwareInventoryTest |
Script execution, scheduling, device targeting, software deployment, inventory, vulnerabilities, and execution history. |
| Tickets and knowledge base | TicketsTest, TimeTrackingTest, KnowledgeBaseTest, OnboardingTest |
Ticket lifecycle, attachments, time entries, knowledge-base content, attachments, tags, and user onboarding. |
| AI and frontend features | AiSettingsTest, DialogsTest, FrontendSupportTest, NotificationsTest |
AI configuration, dialog workflows, feature flags, dashboard events, notifications, and notification preferences. |
| Supporting platform coverage | IntegratedToolsTest, PackageSearchTest, TagsTest, StatsTest |
Integrated-tool discovery, package catalog behavior, tag lifecycle, software-action history, and optional tenant statistics collection. |
sequenceDiagram
participant Runner as "Test Runner"
participant Test as "Core Test Class"
participant Api as "Test API Helper"
participant Tenant as "OpenFrame Tenant"
participant Store as "Tenant Services and Data"
Runner->>Test: Execute tagged test case
Test->>Api: Invoke typed operation
Api->>Tenant: Submit API or GraphQL request
Tenant->>Store: Process workflow
Store-->>Tenant: Return result or error
Tenant-->>Api: Return response
Api-->>Test: Return typed DTO or raw response
Test->>Test: Assert contract and cleanup fixtures
Core Tests primarily verify externally visible contracts. This includes successful workflows, validation failures, pagination and filtering semantics, idempotent mutations, authorization boundaries, and state restoration after mutating scenarios.
Tests commonly use generated run-specific names and identifiers to avoid collisions in shared tenant environments. Stateful workflows may use ordered methods when a later test must inspect data created by an earlier test.
Cleanup is intentionally defensive:
The following component documentation describes the main Core Tests areas:
AiSettingsTest and DialogsTestApiKeysTest, AuthTokensTest, ResetPasswordTest, and UserTestAssignmentsTest, OrganizationsTest, and UserInvitationsTestCreatePolicyTest, DeletePolicyTest, and TriggerPolicyTestDeviceLogsTest, DevicesTest, LogsTest, and StaleDeviceCleanupTestFrontendSupportTest and NotificationsTestIntegratedToolsTest, SoftwareActionHistoryTest, SoftwareBundleTest, and SoftwareInventoryTestKnowledgeBaseTest and OnboardingTestOwnerRegistrationNegativeTest and OwnerRegistrationTestPackageSearchTest and TagsTestRemoteAccessPolicyTest and RemoteAccessSessionTestScriptsTest, ScriptScheduleTest, ScriptScheduleDevicesTest, and ScriptExecutionHistoryTestSoftwareActionHistoryTest and StatsTestTicketsTest and TimeTrackingTestCore Tests belongs to the test-service core library consumed by this repository. The tenant repository provides the deployable OpenFrame services and infrastructure that the tests exercise, including the API, authorization server, gateway, client services, management services, stream processing, and configured data services.