use variant interface instead of fmt.Stringer

This commit is contained in:
Adrian Stobbe 2024-09-10 10:47:02 +02:00
parent d094d80807
commit 2d19273797
4 changed files with 29 additions and 10 deletions

View file

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