diff --git a/protos/README.md b/protos/README.md index b9106f02..c7736043 100644 --- a/protos/README.md +++ b/protos/README.md @@ -15,7 +15,9 @@ predicates have protobuf definitions: - [SLSA Verification Summary]: SLSA verification decision about a software artifact. -- [in-toto Link]: Generic predicate that records a software supply chain step +- [in-toto Link]: Generic predicate that records a software supply chain step. +- [Test Result]: Expresses the result of a test run in the software supply + chain. ## Supported language bindings @@ -43,6 +45,7 @@ testing the supported language bindings. [SLSA Verification Summary]: in_toto_attestation/predicates/vsa/ [in-toto Link]: in_toto_attestation/predicates/link/ +[Test Result]: in_toto_attestation/predicates/test_result/ [documentation]: ../docs/protos.md [go]: ../go/ [python]: ../python/ diff --git a/protos/in_toto_attestation/predicates/test_result/v0/test_result.proto b/protos/in_toto_attestation/predicates/test_result/v0/test_result.proto new file mode 100644 index 00000000..54e53e58 --- /dev/null +++ b/protos/in_toto_attestation/predicates/test_result/v0/test_result.proto @@ -0,0 +1,23 @@ + +syntax = "proto3"; + +package in_toto_attestation.predicates.test_result.v0; + +import "in_toto_attestation/v1/resource_descriptor.proto"; + +option go_package = "github.com/in-toto/attestation/go/predicates/test_result/v0"; +option java_package = "io.github.intoto.attestation.predicates.test_result.v0"; + +message TestResult { + string result = 1; + + repeated in_toto_attestation.v1.ResourceDescriptor configuration = 2; + + string url = 3; + + repeated string passed_tests = 4; + + repeated string warned_tests = 5; + + repeated string failed_tests = 6; +} diff --git a/spec/predicates/README.md b/spec/predicates/README.md index fa3ae9df..0a9a4035 100644 --- a/spec/predicates/README.md +++ b/spec/predicates/README.md @@ -23,7 +23,7 @@ our [vetting process], and may be of general interest: artifact. - [SPDX]: SPDX-formatted BOM for software artifacts. - [CycloneDX]: CycloneDX BOM for software artifacts. -- [Test Results]: A generic schema to express results of any type of tests. +- [Test Result]: A generic schema to express results of any type of tests. [CycloneDX]: https://cyclonedx.org/ [Link]: link.md @@ -33,6 +33,6 @@ our [vetting process], and may be of general interest: [SLSA Provenance]: https://slsa.dev/provenance [SLSA Verification Summary]: vsa.md [SPDX]: spdx.md -[Test Results]: test-results.md +[Test Result]: test-result.md [in-toto 0.9]: https://github.com/in-toto/docs/blob/master/in-toto-spec.md#44-file-formats-namekeyid-prefixlink [vetting process]: ../../docs/new_predicate_guidelines.md#vetting-process diff --git a/spec/predicates/test-results.md b/spec/predicates/test-result.md similarity index 99% rename from spec/predicates/test-results.md rename to spec/predicates/test-result.md index 4ca53d7e..0b92bd70 100644 --- a/spec/predicates/test-results.md +++ b/spec/predicates/test-result.md @@ -1,4 +1,4 @@ -# Predicate type: Test Results +# Predicate type: Test Result Type URI: https://in-toto.io/attestation/test-result/v0.1