You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ELAB-partsearch/deploy/Git-Auto-Deploy/test/samples/gitlab.secret-token.negativ...

108 lines
4.1 KiB

{
"config": {
"branch": "master",
"deploy": "echo test!",
"remote": "origin",
"url": "http://gitlab.local/oliver/poignant-se.git",
"secret-token": "wrong-token"
},
"expected": {
"status": 400
},
"headers": {
"connection": "close",
"content-length": "2384",
"content-type": "application/json",
"host": "local:8001",
"x-gitlab-event": "Push Hook",
"x-gitlab-token": "my-secret-token"
},
"payload": {
"after": "d8f7e6c7a7bcdac418fac7aebb9e5c38aefca14c",
"before": "4a2f7017bbba0719158102884b88d12d0f98359d",
"checkout_sha": "d8f7e6c7a7bcdac418fac7aebb9e5c38aefca14c",
"commits": [
{
"added": [
"asjhadsjdsasssaasdsd",
"npm-debug.log"
],
"author": {
"email": "oliver@poignant.se",
"name": "Oliver Poignant"
},
"id": "d8f7e6c7a7bcdac418fac7aebb9e5c38aefca14c",
"message": "fix\n",
"modified": [],
"removed": [],
"timestamp": "2016-09-03T13:21:18+02:00",
"url": "http://gitlab.local/oliver/poignant-se/commit/d8f7e6c7a7bcdac418fac7aebb9e5c38aefca14c"
},
{
"added": [
"asjhadsjdsasssaa"
],
"author": {
"email": "oliver@poignant.se",
"name": "Oliver Poignant"
},
"id": "7948359a6837d690cadb1d9cf10d503ba6e7d85f",
"message": "fix\n",
"modified": [],
"removed": [],
"timestamp": "2016-09-03T13:19:39+02:00",
"url": "http://gitlab.local/oliver/poignant-se/commit/7948359a6837d690cadb1d9cf10d503ba6e7d85f"
},
{
"added": [
"asjhadsjdsasss"
],
"author": {
"email": "oliver@poignant.se",
"name": "Oliver Poignant"
},
"id": "4a2f7017bbba0719158102884b88d12d0f98359d",
"message": "fix\n",
"modified": [],
"removed": [],
"timestamp": "2016-09-03T13:17:43+02:00",
"url": "http://gitlab.local/oliver/poignant-se/commit/4a2f7017bbba0719158102884b88d12d0f98359d"
}
],
"event_name": "push",
"message": null,
"object_kind": "push",
"project": {
"avatar_url": null,
"default_branch": "master",
"description": "",
"git_http_url": "http://gitlab.local/oliver/poignant-se.git",
"git_ssh_url": "ssh://git@local:8810/oliver/poignant-se.git",
"homepage": "http://gitlab.local/oliver/poignant-se",
"http_url": "http://gitlab.local/oliver/poignant-se.git",
"name": "poignant-se",
"namespace": "oliver",
"path_with_namespace": "oliver/poignant-se",
"ssh_url": "ssh://git@local:8810/oliver/poignant-se.git",
"url": "ssh://git@local:8810/oliver/poignant-se.git",
"visibility_level": 0,
"web_url": "http://gitlab.local/oliver/poignant-se"
},
"project_id": 28,
"ref": "refs/heads/master",
"repository": {
"description": "",
"git_http_url": "http://gitlab.local/oliver/poignant-se.git",
"git_ssh_url": "ssh://git@local:8810/oliver/poignant-se.git",
"homepage": "http://gitlab.local/oliver/poignant-se",
"name": "poignant-se",
"url": "ssh://git@local:8810/oliver/poignant-se.git",
"visibility_level": 0
},
"total_commits_count": 3,
"user_avatar": "http://www.gravatar.com/avatar/bdf723d6a6f847ec075a6809aa4808fb?s=80&d=identicon",
"user_email": "oliver@poignant.se",
"user_id": 7,
"user_name": "Oliver Poignant"
}
}