Add specification version to TIMESTAMP_SCHEMA

It was excluded from the Timestamp schema definition in error.

In the process of making metadata writing use the Timestamp schema
strictly, this bug was discovered.  Metadata previously written
included specification version, but the schema check did not.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
This commit is contained in:
Sebastien Awwad 2019-03-15 17:16:55 -04:00
parent b4d274f527
commit fca27122ef
No known key found for this signature in database
GPG key ID: BC0C6DEDD5E5CC03

View file

@ -345,6 +345,7 @@
TIMESTAMP_SCHEMA = SCHEMA.Object(
object_name = 'TIMESTAMP_SCHEMA',
_type = SCHEMA.String('timestamp'),
spec_version = SPECIFICATION_VERSION_SCHEMA,
version = securesystemslib.formats.METADATAVERSION_SCHEMA,
expires = securesystemslib.formats.ISO8601_DATETIME_SCHEMA,
meta = securesystemslib.formats.FILEDICT_SCHEMA)