Don't expose task data via api (#4108)

This commit is contained in:
6543
2024-09-14 22:40:12 +02:00
committed by GitHub
parent 83926133d4
commit 41b2127e04
6 changed files with 4 additions and 15 deletions

View File

@@ -431,16 +431,14 @@ func TestClient_AgentTasksList(t *testing.T) {
agentID: 1,
expected: []*Task{
{
ID: "4696",
Data: []byte{},
ID: "4696",
Labels: map[string]string{
"platform": "linux/amd64",
"repo": "woodpecker-ci/woodpecker",
},
},
{
ID: "4697",
Data: []byte{},
ID: "4697",
Labels: map[string]string{
"platform": "linux/arm64",
"repo": "woodpecker-ci/woodpecker",

View File

@@ -49,8 +49,7 @@ func TestClient_QueueInfo(t *testing.T) {
expected: &Info{
Running: []Task{
{
ID: "4696",
Data: []byte{},
ID: "4696",
Labels: map[string]string{
"platform": "linux/amd64",
"repo": "woodpecker-ci/woodpecker",

View File

@@ -246,7 +246,6 @@ type (
// Task is the JSON data for a task.
Task struct {
ID string `json:"id"`
Data []byte `json:"data"`
Labels map[string]string `json:"labels"`
Dependencies []string `json:"dependencies"`
RunOn []string `json:"run_on"`