Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration test for update agent [ORBP-573] #310

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

alekseifedotov
Copy link
Contributor

@alekseifedotov alekseifedotov commented Dec 6, 2024

In this PR I'm adding integration test for update agent.

How it works

The script spawns a podman container with update-agent inside. That docker container partially reproduces orb environment. It mocks:

  • efivars
  • /usr/persistent/
  • /dev/mmcblk0.
  • /etc/orb_update_agent.conf
  • claim.json

In claim.json it contains links on local files to get the update.
After update-agent is done, the script compares the resulting partitions with the expected ones.

Future steps

  • generate OTA files on startup
  • integrate the test in the CI
  • add localstack to mock S3 buckets
  • add dbus in the container to mock dbus communication
  • add mcu emulation
  • add capsule update mock

I'll make it a draft for now.


Requirements:

@alekseifedotov alekseifedotov marked this pull request as draft December 6, 2024 20:33
@alekseifedotov alekseifedotov changed the title Add integration test for update agent Add integration test for update agent [ORBP-573] Dec 9, 2024
@alekseifedotov alekseifedotov force-pushed the aleksei/add-integration-test-for-update-agent branch from 44e5edf to f3b7a49 Compare December 13, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant