mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-08 01:05:16 -04:00
Remove ConstellationPort from config file
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
83857b142c
commit
c679526bae
3 changed files with 5 additions and 14 deletions
|
@ -10,7 +10,6 @@ import (
|
|||
"github.com/spf13/afero"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
func TestDefaultConfig(t *testing.T) {
|
||||
|
@ -47,11 +46,6 @@ func TestFromFile(t *testing.T) {
|
|||
wantResultMutator func(c *Config) // mutates the Default() config to the expected result.
|
||||
wantErr bool
|
||||
}{
|
||||
"overwrite fields": {
|
||||
from: &Config{CoordinatorPort: proto.String("1000")},
|
||||
configName: constants.ConfigFilename,
|
||||
wantResultMutator: func(c *Config) { c.CoordinatorPort = proto.String("1000") },
|
||||
},
|
||||
"overwrite slices": {
|
||||
from: &Config{Provider: someProviderConfig},
|
||||
configName: constants.ConfigFilename,
|
||||
|
@ -86,7 +80,6 @@ func TestFromFile(t *testing.T) {
|
|||
require.NoError(err)
|
||||
wantResult := Default()
|
||||
tc.wantResultMutator(wantResult)
|
||||
assert.EqualValues(wantResult.CoordinatorPort, result.CoordinatorPort)
|
||||
assert.EqualValues(wantResult.AutoscalingNodeGroupsMin, result.AutoscalingNodeGroupsMin)
|
||||
assert.EqualValues(wantResult.AutoscalingNodeGroupsMax, result.AutoscalingNodeGroupsMax)
|
||||
require.NotNil(wantResult.Provider)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue