secret: Add support for usage type vTPM, extend schema and test case

Add support for usage type vTPM to secret.
Extend the schema for the Secret to support the vTPM usage type
and add a test case for parsing the Secret with usage type vTPM.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Stefan Berger
2019-07-25 14:21:57 -04:00
committed by Daniel P. Berrangé
parent c1d347027f
commit 50a7b0cb4e
6 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
<secret ephemeral='no' private='yes'>
<uuid>aa6c7af2-45a7-477c-85a2-fe86d9f2514e</uuid>
<description>vTPM secret</description>
<usage type='vtpm'>
<name>vTPMvTPMvTPM</name>
</usage>
</secret>