mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-10 16:00:19 -04:00
config: add SEV-SNP config options for GCP
This commit is contained in:
parent
3a349b1a15
commit
b9a982d1d3
8 changed files with 247 additions and 33 deletions
|
@ -328,7 +328,7 @@ func TestFromFile(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestValidate(t *testing.T) {
|
||||
const defaultErrCount = 32 // expect this number of error messages by default because user-specific values are not set and multiple providers are defined by default
|
||||
const defaultErrCount = 33 // expect this number of error messages by default because user-specific values are not set and multiple providers are defined by default
|
||||
const azErrCount = 7
|
||||
const awsErrCount = 8
|
||||
const gcpErrCount = 8
|
||||
|
@ -735,6 +735,11 @@ func TestValidInstanceTypeForProvider(t *testing.T) {
|
|||
instanceTypes: instancetypes.GCPInstanceTypes,
|
||||
expectedResult: true,
|
||||
},
|
||||
"gcp sev-snp": {
|
||||
variant: variant.GCPSEVSNP{},
|
||||
instanceTypes: instancetypes.GCPInstanceTypes,
|
||||
expectedResult: true,
|
||||
},
|
||||
"put gcp when azure is set": {
|
||||
variant: variant.AzureSEVSNP{},
|
||||
instanceTypes: instancetypes.GCPInstanceTypes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue