Add Android APK fleet nodes with Crucible UI integration and tests.
APK wrapper registers platform=android via AETHERFORGE_PLATFORM; fleet UI shows robot icons, Android Access Depth probes, and a shortened mining onion timeline.
This commit is contained in:
@@ -76,3 +76,27 @@ describe('buildAccessDepthModel pending chain', () => {
|
||||
expect(model.failed).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
describe('buildAccessDepthModel android', () => {
|
||||
it('uses android platform label and probes', () => {
|
||||
const model = buildAccessDepthModel(
|
||||
agent({ platform: 'android', os_version: '14', arch: 'arm64' }),
|
||||
parseAccessDepthDiagnostics({
|
||||
environment_probes: {
|
||||
wifi: true,
|
||||
battery: true,
|
||||
foreground_service: true,
|
||||
},
|
||||
tier_chain_order: ['foreground_service', 'cpu_inprocess'],
|
||||
}),
|
||||
);
|
||||
expect(model.platformLabel).toBe('Android');
|
||||
expect(model.probes.map((p) => p.label)).toEqual(['Wi-Fi', 'Battery', 'Foreground svc']);
|
||||
expect(model.miningOnion.map((r) => r.tier)).toEqual([
|
||||
'foreground_service',
|
||||
'cpu_inprocess',
|
||||
'desktop_tiers_skipped',
|
||||
]);
|
||||
expect(model.spreadOnion).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user