mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-14 09:30:45 -05:00
AB#2360 enterprise build tag (#397)
* enterprise build switch to disable license checking in default (OSS) version * remove community license quota * empty image references on OSS build in config Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
parent
6b1c20792a
commit
45beec15f5
13 changed files with 126 additions and 58 deletions
|
|
@ -13,6 +13,8 @@ import (
|
|||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
const defaultMsgCount = 9 // expect this number of error messages by default because user-specific values are not set
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
goleak.VerifyTestMain(m)
|
||||
}
|
||||
|
|
@ -154,7 +156,7 @@ func TestValidate(t *testing.T) {
|
|||
}{
|
||||
"default config is valid": {
|
||||
cnf: Default(),
|
||||
wantMsgCount: 7, // expect 7 error messages by default because user-specific values are not set
|
||||
wantMsgCount: defaultMsgCount,
|
||||
},
|
||||
"config with 1 error": {
|
||||
cnf: func() *Config {
|
||||
|
|
@ -162,7 +164,7 @@ func TestValidate(t *testing.T) {
|
|||
cnf.Version = "v0"
|
||||
return cnf
|
||||
}(),
|
||||
wantMsgCount: 8,
|
||||
wantMsgCount: defaultMsgCount + 1,
|
||||
},
|
||||
"config with 2 errors": {
|
||||
cnf: func() *Config {
|
||||
|
|
@ -171,7 +173,7 @@ func TestValidate(t *testing.T) {
|
|||
cnf.StateDiskSizeGB = -1
|
||||
return cnf
|
||||
}(),
|
||||
wantMsgCount: 9,
|
||||
wantMsgCount: defaultMsgCount + 2,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue