mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-05 21:44:15 -04:00
Restructure config and constants
This commit is contained in:
parent
66bb632a69
commit
1a9b33d738
18 changed files with 134 additions and 112 deletions
|
@ -49,9 +49,9 @@ func TestFromFile(t *testing.T) {
|
|||
wantErr bool
|
||||
}{
|
||||
"overwrite fields": {
|
||||
from: &Config{StatePath: proto.String("test")},
|
||||
from: &Config{CoordinatorPort: proto.String("1000")},
|
||||
configName: configName,
|
||||
wantResultMutator: func(c *Config) { c.StatePath = proto.String("test") },
|
||||
wantResultMutator: func(c *Config) { c.CoordinatorPort = proto.String("1000") },
|
||||
},
|
||||
"overwrite slices": {
|
||||
from: &Config{Provider: someProviderConfig},
|
||||
|
@ -87,9 +87,6 @@ func TestFromFile(t *testing.T) {
|
|||
require.NoError(err)
|
||||
wantResult := Default()
|
||||
tc.wantResultMutator(wantResult)
|
||||
assert.EqualValues(wantResult.StatePath, result.StatePath)
|
||||
assert.EqualValues(wantResult.AdminConfPath, result.AdminConfPath)
|
||||
assert.EqualValues(wantResult.MasterSecretPath, result.MasterSecretPath)
|
||||
assert.EqualValues(wantResult.CoordinatorPort, result.CoordinatorPort)
|
||||
assert.EqualValues(wantResult.AutoscalingNodeGroupsMin, result.AutoscalingNodeGroupsMin)
|
||||
assert.EqualValues(wantResult.AutoscalingNodeGroupsMax, result.AutoscalingNodeGroupsMax)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue