mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 07:15:05 -04:00
Use id file for init ip
This commit is contained in:
parent
7bbcc564bb
commit
a859accf1f
4 changed files with 112 additions and 136 deletions
|
@ -46,7 +46,7 @@ func TestCreateArgumentValidation(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestCreate(t *testing.T) {
|
||||
testState := state.ConstellationState{Name: "test"}
|
||||
testState := state.ConstellationState{Name: "test", BootstrapperHost: "192.0.2.1"}
|
||||
someErr := errors.New("failed")
|
||||
|
||||
testCases := map[string]struct {
|
||||
|
@ -263,6 +263,8 @@ func TestCreate(t *testing.T) {
|
|||
assert.True(tc.creator.createCalled)
|
||||
var state state.ConstellationState
|
||||
require.NoError(fileHandler.ReadJSON(constants.StateFilename, &state))
|
||||
var idFile clusterIDsFile
|
||||
require.NoError(fileHandler.ReadJSON(constants.ClusterIDsFileName, &idFile))
|
||||
assert.Equal(state, testState)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue