On Tue, Jul 9, 2019 at 9:24 PM Stefan Berger wrote:
>
> 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
> ---
> docs/schemas/secret.rng | 10 ++
> tests/secretxml2xmlin/usage-vtpm.xml | 7 +++
> tests/secretxml2xmltest.c| 1 +
> 3 files changed, 18 insertions(+)
> create mode 100644 tests/secretxml2xmlin/usage-vtpm.xml
>
> diff --git a/docs/schemas/secret.rng b/docs/schemas/secret.rng
> index 1e94d66e48..e0add8a5e9 100644
> --- a/docs/schemas/secret.rng
> +++ b/docs/schemas/secret.rng
> @@ -37,6 +37,7 @@
>
>
>
> +
>
>
>
> @@ -81,4 +82,13 @@
>
>
>
> +
> +
> + vtpm
> +
> +
> +
> +
> +
> +
>
should be in previous patch
> diff --git a/tests/secretxml2xmlin/usage-vtpm.xml
> b/tests/secretxml2xmlin/usage-vtpm.xml
> new file mode 100644
> index 00..5baff3034d
> --- /dev/null
> +++ b/tests/secretxml2xmlin/usage-vtpm.xml
> @@ -0,0 +1,7 @@
> +
> + aa6c7af2-45a7-477c-85a2-fe86d9f2514e
> + vTPM secret
> +
> +vTPMvTPMvTPM
> +
> +
> diff --git a/tests/secretxml2xmltest.c b/tests/secretxml2xmltest.c
> index fd93703424..595583346a 100644
> --- a/tests/secretxml2xmltest.c
> +++ b/tests/secretxml2xmltest.c
> @@ -80,6 +80,7 @@ mymain(void)
> DO_TEST("usage-ceph");
> DO_TEST("usage-iscsi");
> DO_TEST("usage-tls");
> +DO_TEST("usage-vtpm");
>
> return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
> }
> --
> 2.20.1
>
other than that,
Reviewed-by: Marc-André Lureau
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list