Felipe Lalanne
7c83eaef80
Simplify contract validation module
...
Use `satisfiesChildContract` instead of Blueprints as the previous
implementation did.
Change-type: patch
2025-05-08 19:33:12 -04:00
Felipe Lalanne
48e526ec43
Refactor contracts validation code
...
This updates the interfaces on lib/contracts and the validation in
the application-manager module.
2024-08-30 10:52:11 -04:00
Felipe Lalanne
988a1c9e9a
Update @balena/lint to v7
...
This updates balena lint to the latest version to enable eslint support
and unblock Typescript updates. This is a huge number of changes as the
linting rules are much more strict now, requiring modifiying most files
in the codebase. This commit also bumps the test dependency `rewire` as
that was interfering with the update of balena-lint
Change-type: patch
2024-03-01 18:27:30 -03:00
Felipe Lalanne
2758e190b2
Fix sw.arch
typo when testing contracts
...
Change-type: patch
2023-05-11 13:07:26 -04:00
Felipe Lalanne
8656bd62f7
Add arch.sw
to the valid container requirements
...
Change-type: minor
2023-05-09 15:44:26 -04:00
Felipe Lalanne
f1f09e0e27
Allow using slug to validate hw.device-type contract
...
This also adds the hw.device-type test case to the unit tests.
Change-type: patch
2023-05-09 15:20:18 -04:00
Felipe Lalanne
a884a58b4c
Simplify and move lib/contract.spec.ts to tests/unit
...
Improve contract tests to remove dependence on stubs and unnecessary
system calls.
Change-type: patch
2023-05-09 15:20:12 -04:00