diff --git a/protos/README.md b/protos/README.md index b9106f02..3ac84af4 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 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/test-results.md b/spec/predicates/test-results.md index 4ca53d7e..0b92bd70 100644 --- a/spec/predicates/test-results.md +++ b/spec/predicates/test-results.md @@ -1,4 +1,4 @@ -# Predicate type: Test Results +# Predicate type: Test Result Type URI: https://in-toto.io/attestation/test-result/v0.1