Skip to content

Commit 1504e9d

Browse files
authored
Merge pull request #264 from buildkite/te-5081/build-id-missing-from-runs
Add build id to test runs
2 parents 3e272d4 + f10da4e commit 1504e9d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test_runs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type TestRun struct {
2222
CreatedAt *Timestamp `json:"created_at,omitempty"`
2323
State string `json:"state,omitempty"`
2424
Result string `json:"result,omitempty"`
25+
BuildID string `json:"build_id,omitempty"`
2526
}
2627

2728
type FailureExpanded struct {

test_runs_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func TestTestRunsService_Get(t *testing.T) {
103103
"commit_sha": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
104104
"created_at": "2023-05-20T10:25:50.264Z",
105105
"state": "finished",
106-
"result": "failed"
106+
"result": "failed",
107+
"build_id": "0191bd22-3c60-7a96-aa84-e173e79bb7f5"
107108
}`)
108109
})
109110

@@ -127,6 +128,7 @@ func TestTestRunsService_Get(t *testing.T) {
127128
CreatedAt: NewTimestamp(parsedTime),
128129
State: "finished",
129130
Result: "failed",
131+
BuildID: "0191bd22-3c60-7a96-aa84-e173e79bb7f5",
130132
}
131133

132134
if diff := cmp.Diff(run, want); diff != "" {

0 commit comments

Comments
 (0)