Skip to content

Commit

Permalink
Add test result proto
Browse files Browse the repository at this point in the history
Also makes title of the predicate singular

Signed-off-by: Aditya Sirish <[email protected]>
  • Loading branch information
adityasaky committed May 26, 2023
1 parent bf9742d commit 13efbe4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 3 additions & 1 deletion protos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion spec/predicates/test-results.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Predicate type: Test Results
# Predicate type: Test Result

Type URI: https://in-toto.io/attestation/test-result/v0.1

Expand Down

0 comments on commit 13efbe4

Please sign in to comment.