Remove kekID from cryptmapper

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-03-24 15:21:19 +01:00 committed by Daniel Weiße
parent 7626765d87
commit 5660f813f0
7 changed files with 11 additions and 14 deletions

View file

@ -94,7 +94,7 @@ func TestCloseCryptDevice(t *testing.T) {
})
}
mapper := New(kms.NewStaticKMS(), "", &stubCryptDevice{})
mapper := New(kms.NewStaticKMS(), &stubCryptDevice{})
err := mapper.CloseCryptDevice("volume01-unit-test")
assert.NoError(t, err)
}
@ -227,7 +227,7 @@ func TestOpenCryptDevice(t *testing.T) {
})
}
mapper := New(kms.NewStaticKMS(), "", &stubCryptDevice{})
mapper := New(kms.NewStaticKMS(), &stubCryptDevice{})
_, err := mapper.OpenCryptDevice(context.Background(), "/dev/some-device", "volume01", false)
assert.NoError(t, err)
}