mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-19 21:38:44 -04:00
Rename in config: PCRs->Measurements
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
3318126363
commit
a953df60b6
3 changed files with 8 additions and 8 deletions
|
@ -68,13 +68,13 @@ func (v *Validators) updatePCR(pcrIndex uint32, encoded string) error {
|
|||
func (v *Validators) setPCRs(config *config.Config) error {
|
||||
switch v.provider {
|
||||
case cloudprovider.GCP:
|
||||
gcpPCRs := *config.Provider.GCP.PCRs
|
||||
gcpPCRs := *config.Provider.GCP.Measurements
|
||||
if err := v.checkPCRs(gcpPCRs); err != nil {
|
||||
return err
|
||||
}
|
||||
v.pcrs = gcpPCRs
|
||||
case cloudprovider.Azure:
|
||||
azurePCRs := *config.Provider.Azure.PCRs
|
||||
azurePCRs := *config.Provider.Azure.Measurements
|
||||
if err := v.checkPCRs(azurePCRs); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -68,10 +68,10 @@ func TestNewValidators(t *testing.T) {
|
|||
|
||||
conf := &config.Config{Provider: &config.ProviderConfig{}}
|
||||
if tc.provider == cloudprovider.GCP {
|
||||
conf.Provider.GCP = &config.GCPConfig{PCRs: &tc.pcrs}
|
||||
conf.Provider.GCP = &config.GCPConfig{Measurements: &tc.pcrs}
|
||||
}
|
||||
if tc.provider == cloudprovider.Azure {
|
||||
conf.Provider.Azure = &config.AzureConfig{PCRs: &tc.pcrs}
|
||||
conf.Provider.Azure = &config.AzureConfig{Measurements: &tc.pcrs}
|
||||
}
|
||||
if tc.provider == cloudprovider.QEMU {
|
||||
conf.Provider.QEMU = &config.QEMUConfig{PCRs: &tc.pcrs}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue