test: add baseos qemu enrollment

This commit is contained in:
2026-05-07 20:33:14 +00:00
parent 1af90d23e2
commit 0116c4972d
4 changed files with 156 additions and 2 deletions
@@ -177,9 +177,11 @@ const main = async () => {
const capabilities = await capabilitiesResponse.json() as {
supportedArchitectures: string[];
supportedImageKinds: string[];
supportedSourcePresets: string[];
};
assert(capabilities.supportedArchitectures.includes('rpi'), 'CoreBuild did not advertise rpi support');
assert(capabilities.supportedImageKinds.includes('balena-raw'), 'CoreBuild did not advertise balena-raw support');
assert(capabilities.supportedSourcePresets.includes('balena-raspberrypi4-64'), 'CoreBuild did not advertise Raspberry Pi balenaOS source preset support');
const s3Descriptor = await smarts3.getS3Descriptor({ bucketName });
const artifactKey = `${smokeId}/baseos-rpi.img.xz`;
@@ -237,6 +239,7 @@ const main = async () => {
const baseosEnv = await readGuestFile(decompressedArtifactPath, '/baseos/baserunner.env');
assert(baseosEnv.includes('BASEOS_CLOUDLY_URL="http://cloudly.test.local"'), 'BaseOS env Cloudly URL was not written');
assert(baseosEnv.includes('BASEOS_JOIN_TOKEN="join-token-for-baseos-image-test"'), 'BaseOS env join token was not written');
assert(baseosEnv.includes('BASEOS_PRELOAD_TARGET_STATE_PATH="/data/baseos/preload-target-state.json"'), 'BaseOS preload target-state path was not written');
console.log('[baseos-image-pipeline] BaseOS raw-image pipeline scenario completed successfully');
} finally {