config: update tests

This commit is contained in:
Malte Poll 2023-08-02 10:27:43 +02:00 committed by Malte Poll
parent b61deb6a03
commit c0177c565f
3 changed files with 51 additions and 15 deletions

View file

@ -601,6 +601,8 @@ func (m *stubMerger) kubeconfigEnvVar() string {
func defaultConfigWithExpectedMeasurements(t *testing.T, conf *config.Config, csp cloudprovider.Provider) *config.Config {
t.Helper()
conf.RemoveProviderAndAttestationExcept(csp)
conf.Image = constants.BinaryVersion().String()
conf.Name = "kubernetes"