Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions scm/driver/harness/testdata/webhooks/branch_create.json.golden
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"Ref": "refs/heads/new2",
"Before": "0000000000000000000000000000000000000000",
"After": "aeafa0e2e4ec6909ad75cb8fad57c0b1eb5986e6",
"Ref": {
"Name": "refs/heads/new2",
"Sha": "aeafa0e2e4ec6909ad75cb8fad57c0b1eb5986e6"
},
"Action": "created",
"Repo": {
"ID": "13",
"Namespace": "",
Expand All @@ -15,25 +17,6 @@
"Created": "0001-01-01T00:00:00Z",
"Updated": "0001-01-01T00:00:00Z"
},
"Commit": {
"Sha": "aeafa0e2e4ec6909ad75cb8fad57c0b1eb5986e6",
"Message": "version 4",
"Author": {
"Name": "Admin",
"Email": "[email protected]",
"Date": "0001-01-01T00:00:00Z",
"Login": "",
"Avatar": ""
},
"Committer": {
"Name": "Admin",
"Email": "[email protected]",
"Date": "0001-01-01T00:00:00Z",
"Login": "",
"Avatar": ""
},
"Link": ""
},
"Sender": {
"ID": "0osgWsTZRsSZ8RWfjLRkEg",
"Login": "0osgWsTZRsSZ8RWfjLRkEg",
Expand Down
34 changes: 34 additions & 0 deletions scm/driver/harness/testdata/webhooks/branch_delete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"trigger": "branch_deleted",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
},
"principal": {
"id": 2,
"uid": "lv0euRhKRCyiXWzS7pOg6g",
"display_name": "Admin",
"email": "[email protected]",
"type": "user",
"created": 1701091219051,
"updated": 1701091219051
},
"ref": {
"name": "refs/heads/das",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
}
},
"sha": "0000000000000000000000000000000000000000",
"old_sha": "0f1835abe08473e07863540712d8389984b72dad",
"forced": false
}
29 changes: 29 additions & 0 deletions scm/driver/harness/testdata/webhooks/branch_delete.json.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Ref": {
"Name": "refs/heads/das",
"Sha": "0000000000000000000000000000000000000000"
},
"Action": "deleted",
"Repo": {
"ID": "16",
"Namespace": "",
"Name": "harness-core",
"Perm": null,
"Branch": "develop",
"Private": false,
"Clone": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"CloneSSH": "",
"Link": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"Created": "0001-01-01T00:00:00Z",
"Updated": "0001-01-01T00:00:00Z"
},
"Sender": {
"ID": "lv0euRhKRCyiXWzS7pOg6g",
"Login": "lv0euRhKRCyiXWzS7pOg6g",
"Name": "Admin",
"Email": "[email protected]",
"Avatar": "",
"Created": "2023-11-27T05:20:19.051-08:00",
"Updated": "2023-11-27T05:20:19.051-08:00"
}
}
76 changes: 76 additions & 0 deletions scm/driver/harness/testdata/webhooks/tag_create.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"trigger": "tag_created",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
},
"principal": {
"id": 2,
"uid": "lv0euRhKRCyiXWzS7pOg6g",
"display_name": "Admin",
"email": "[email protected]",
"type": "user",
"created": 1701091219051,
"updated": 1701091219051
},
"ref": {
"name": "refs/tags/asd",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
}
},
"sha": "3e4da2d65c3631c3e84b52fabe714c978aff540b",
"head_commit": {
"sha": "0f1835abe08473e07863540712d8389984b72dad",
"message": "",
"author": {
"identity": {
"name": "admin",
"email": "[email protected]"
},
"when": "2024-03-01T07:54:35-08:00"
},
"committer": {
"identity": {
"name": "GitHub",
"email": "[email protected]"
},
"when": "2024-03-01T07:54:35-08:00"
},
"added": [],
"removed": [],
"modified": []
},
"commit": {
"sha": "0f1835abe08473e07863540712d8389984b72dad",
"message": "",
"author": {
"identity": {
"name": "Jenny James",
"email": "[email protected]"
},
"when": "2024-03-01T07:54:35-08:00"
},
"committer": {
"identity": {
"name": "GitHub",
"email": "[email protected]"
},
"when": "2024-03-01T07:54:35-08:00"
},
"added": [],
"removed": [],
"modified": []
},
"old_sha": "0000000000000000000000000000000000000000",
"forced": false
}
29 changes: 29 additions & 0 deletions scm/driver/harness/testdata/webhooks/tag_create.json.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Ref": {
"Name": "refs/tags/asd",
"Sha": "3e4da2d65c3631c3e84b52fabe714c978aff540b"
},
"Action": "created",
"Repo": {
"ID": "16",
"Namespace": "",
"Name": "harness-core",
"Perm": null,
"Branch": "develop",
"Private": false,
"Clone": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"CloneSSH": "",
"Link": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"Created": "0001-01-01T00:00:00Z",
"Updated": "0001-01-01T00:00:00Z"
},
"Sender": {
"ID": "lv0euRhKRCyiXWzS7pOg6g",
"Login": "lv0euRhKRCyiXWzS7pOg6g",
"Name": "Admin",
"Email": "[email protected]",
"Avatar": "",
"Created": "2023-11-27T05:20:19.051-08:00",
"Updated": "2023-11-27T05:20:19.051-08:00"
}
}
34 changes: 34 additions & 0 deletions scm/driver/harness/testdata/webhooks/tag_delete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"trigger": "tag_deleted",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
},
"principal": {
"id": 2,
"uid": "lv0euRhKRCyiXWzS7pOg6g",
"display_name": "Admin",
"email": "[email protected]",
"type": "user",
"created": 1701091219051,
"updated": 1701091219051
},
"ref": {
"name": "refs/tags/asd",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
}
},
"sha": "0000000000000000000000000000000000000000",
"old_sha": "3e4da2d65c3631c3e84b52fabe714c978aff540b",
"forced": false
}
29 changes: 29 additions & 0 deletions scm/driver/harness/testdata/webhooks/tag_delete.json.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Ref": {
"Name": "refs/tags/asd",
"Sha": "0000000000000000000000000000000000000000"
},
"Action": "deleted",
"Repo": {
"ID": "16",
"Namespace": "",
"Name": "harness-core",
"Perm": null,
"Branch": "develop",
"Private": false,
"Clone": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"CloneSSH": "",
"Link": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"Created": "0001-01-01T00:00:00Z",
"Updated": "0001-01-01T00:00:00Z"
},
"Sender": {
"ID": "lv0euRhKRCyiXWzS7pOg6g",
"Login": "lv0euRhKRCyiXWzS7pOg6g",
"Name": "Admin",
"Email": "[email protected]",
"Avatar": "",
"Created": "2023-11-27T05:20:19.051-08:00",
"Updated": "2023-11-27T05:20:19.051-08:00"
}
}
100 changes: 100 additions & 0 deletions scm/driver/harness/testdata/webhooks/tag_update.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"trigger": "tag_updated",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
},
"principal": {
"id": 2,
"uid": "lv0euRhKRCyiXWzS7pOg6g",
"display_name": "Admin",
"email": "[email protected]",
"type": "user",
"created": 1701091219051,
"updated": 1701091219051
},
"ref": {
"name": "refs/tags/ddxas",
"repo": {
"id": 16,
"path": "kmpySmUISimoRrJL6NL73w/harness-core",
"identifier": "harness-core",
"default_branch": "develop",
"git_url": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/harness-core.git",
"uid": "harness-core"
}
},
"sha": "700b3dab8e7a5cebf5e1ce54e7dd5bde60099912",
"head_commit": {
"sha": "700b3dab8e7a5cebf5e1ce54e7dd5bde60099912",
"message": "Asd",
"author": {
"identity": {
"name": "Abhinav Singh",
"email": "[email protected]"
},
"when": "2024-03-07T03:18:51-08:00"
},
"committer": {
"identity": {
"name": "Abhinav Singh",
"email": "[email protected]"
},
"when": "2024-03-07T03:18:51-08:00"
},
"added": [],
"removed": [],
"modified": []
},
"commits": [
{
"sha": "700b3dab8e7a5cebf5e1ce54e7dd5bde60099912",
"message": "Asd",
"author": {
"identity": {
"name": "Abhinav Singh",
"email": "[email protected]"
},
"when": "2024-03-07T03:18:51-08:00"
},
"committer": {
"identity": {
"name": "Abhinav Singh",
"email": "[email protected]"
},
"when": "2024-03-07T03:18:51-08:00"
},
"added": [],
"removed": [],
"modified": []
}
],
"total_commits_count": 1,
"commit": {
"sha": "700b3dab8e7a5cebf5e1ce54e7dd5bde60099912",
"message": "Asd",
"author": {
"identity": {
"name": "Abhinav Singh",
"email": "[email protected]"
},
"when": "2024-03-07T03:18:51-08:00"
},
"committer": {
"identity": {
"name": "Abhinav Singh",
"email": "[email protected]"
},
"when": "2024-03-07T03:18:51-08:00"
},
"added": [],
"removed": [],
"modified": []
},
"old_sha": "0f1835abe08473e07863540712d8389984b72dad",
"forced": true
}
Loading