mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-30 18:48:39 -04:00
Persist Node State to disk after node activation
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
0501d07f4a
commit
55a1aa783f
10 changed files with 109 additions and 4 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
|
||||
"github.com/edgelesssys/constellation/coordinator/peer"
|
||||
"github.com/edgelesssys/constellation/coordinator/pubapi/pubproto"
|
||||
"github.com/edgelesssys/constellation/coordinator/role"
|
||||
"github.com/edgelesssys/constellation/coordinator/state"
|
||||
"github.com/edgelesssys/constellation/coordinator/util/testdialer"
|
||||
"github.com/edgelesssys/constellation/coordinator/vpnapi/vpnproto"
|
||||
|
@ -121,6 +122,7 @@ func TestActivateAsNode(t *testing.T) {
|
|||
require.Len(core.updatedPeers, 1)
|
||||
}
|
||||
assert.Equal(tc.initialPeers, core.updatedPeers[0])
|
||||
assert.Equal([]role.Role{role.Node}, core.persistNodeStateRoles)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue