weaken interface

This commit is contained in:
Adrian Stobbe 2024-09-05 09:59:26 +02:00
parent 665cff0071
commit 3b416224ca
4 changed files with 22 additions and 12 deletions

View file

@ -9,6 +9,7 @@ package config
import (
"context"
"errors"
"fmt"
"reflect"
"testing"
@ -1051,7 +1052,7 @@ func getConfigAsMap(conf *Config, t *testing.T) (res configMap) {
type stubAttestationFetcher struct{}
func (f stubAttestationFetcher) FetchLatestVersion(_ context.Context, _ variant.Variant) (attestationconfigapi.Entry, error) {
func (f stubAttestationFetcher) FetchLatestVersion(_ context.Context, _ fmt.Stringer) (attestationconfigapi.Entry, error) {
return attestationconfigapi.Entry{
SEVSNPVersion: testCfg,
}, nil