This commit is contained in:
Balena CI 2021-07-06 01:50:32 +03:00 committed by VersionBot
parent cb76877c1a
commit 41e745ce85
5 changed files with 67 additions and 3 deletions

View File

@ -1,3 +1,59 @@
- commits:
- subject: Improve testing for supervisor composition modules
hash: e04e64763f3aeab9b5a91be8ad238ef763d82f22
body: >
This PR cleans up testing for supervisor compose modules. It also fixes
broken
tests for application manager and removes a lot of dependencies for
those tests
on DB and other unnecessary mocks. There are probably a lot of cases
that tests
are missing but this should make writing new tests a lot easier.
This PR also creates a new mock dockerode (mockerode) module that should
make it
easier to test operations that interact with the engine. All references
to the old mock-dockerode have not yet been removed but that should come
soon in another PR
List of squashed commits:
- Add tests for network create/remove
- Move compose service tests to test/src/compose and reorganize test
descriptions
- Add support for image creation to mockerode
- Add additional tests for compose volumes
- Update mockerode so unimplemented fake methods throw. This is to
ensure
tests using mockerode fail if an unimplemented method is used
- Update tests for volume-manager with mockerode
- Update tests for compose/images
- Simplify tests using mockerode
- Clean up compose/app tests
- Create application manager tests
footer:
Change-type: minor
change-type: minor
author: Felipe Lalanne
nested: []
version: 12.9.0
date: 2021-07-05T21:54:41.727Z
- commits: - commits:
- subject: Bump color-string from 1.5.3 to 1.5.5 - subject: Bump color-string from 1.5.3 to 1.5.5
hash: 4518c93fcaf77727663e4f91ed922b51a5d2f94f hash: 4518c93fcaf77727663e4f91ed922b51a5d2f94f

View File

@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY! automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/). This project adheres to [Semantic Versioning](http://semver.org/).
# v12.9.0
## (2021-07-05)
* Improve testing for supervisor composition modules [Felipe Lalanne]
# v12.8.12 # v12.8.12
## (2021-07-01) ## (2021-07-01)

View File

@ -1 +1 @@
12.8.12 12.9.0

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "balena-supervisor", "name": "balena-supervisor",
"version": "12.8.12", "version": "12.9.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,7 +1,7 @@
{ {
"name": "balena-supervisor", "name": "balena-supervisor",
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.", "description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
"version": "12.8.12", "version": "12.9.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
"type": "git", "type": "git",
@ -137,5 +137,8 @@
"hooks": { "hooks": {
"pre-commit": "lint-staged" "pre-commit": "lint-staged"
} }
},
"versionist": {
"publishedAt": "2021-07-05T21:54:41.923Z"
} }
} }