mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-22 06:57:49 +00:00
Merge pull request #1149 from balena-io/roman/regression-db-test
Add regression test for app manager init
This commit is contained in:
commit
97fab2099f
@ -142,6 +142,7 @@ describe 'ApplicationManager', ->
|
||||
})
|
||||
stub(@applications.docker, 'getNetworkGateway').returns(Promise.resolve('172.17.0.1'))
|
||||
stub(@applications.docker, 'listContainers').returns(Promise.resolve([]))
|
||||
stub(@applications.docker, 'listImages').returns(Promise.resolve([]))
|
||||
stub(Service, 'extendEnvVars').callsFake (env) ->
|
||||
env['ADDITIONAL_ENV_VAR'] = 'foo'
|
||||
return env
|
||||
@ -195,6 +196,9 @@ describe 'ApplicationManager', ->
|
||||
@applications.docker.listContainers.restore()
|
||||
Service.extendEnvVars.restore()
|
||||
|
||||
it 'should init', ->
|
||||
@applications.init()
|
||||
|
||||
it 'infers a start step when all that changes is a running state', ->
|
||||
Promise.join(
|
||||
@normaliseCurrent(currentState[0])
|
||||
|
Loading…
Reference in New Issue
Block a user