-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: RazenaSaleem <razenasaleem@gmail.com>
- Loading branch information
1 parent
2103569
commit 64704fa
Showing
5 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
type: Test | ||
spec: | ||
id: IHTebvYIR | ||
name: git-azure | ||
trigger: | ||
type: http | ||
httpRequest: | ||
method: POST | ||
url: http://gitbridge.aws.optimizor.app/azure | ||
body: "{\n \"id\": \"03c164c2-8912-4d5e-8009-3707d5f83734\",\n \"eventType\": \"git.push\",\n \"publisherId\": \"tfs\",\n \"scope\": \"all\",\n \"message\": {\n \"text\": \"Jamal Hartnett pushed updates to branch master of repository Fabrikam-Fiber-Git.\",\n \"html\": \"Jamal Hartnett pushed updates to branch master of repository Fabrikam-Fiber-Git.\",\n \"markdown\": \"Jamal Hartnett pushed updates to branch `master` of repository `Fabrikam-Fiber-Git`.\"\n },\n \"detailedMessage\": {\n \"text\": \"Jamal Hartnett pushed 1 commit to branch master of repository Fabrikam-Fiber-Git.\\n - Fixed bug in web.config file 33b55f7c\",\n \"html\": \"Jamal Hartnett pushed 1 commit to branch <a href=\\\"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git/#version=GBmaster\\\">master</a> of repository <a href=\\\"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git/\\\">Fabrikam-Fiber-Git</a>.\\n<ul>\\n<li>Fixed bug in web.config file <a href=\\\"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git/commit/33b55f7cb7e7e245323987634f960cf4a6e6bc74\\\">33b55f7c</a>\\n</ul>\",\n \"markdown\": \"Jamal Hartnett pushed 1 commit to branch [master](https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git/#version=GBmaster) of repository [Fabrikam-Fiber-Git](https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git/).\\n* Fixed bug in web.config file [33b55f7c](https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git/commit/33b55f7cb7e7e245323987634f960cf4a6e6bc74)\"\n },\n \"resource\": {\n \"commits\": [\n {\n \"commitId\": \"33b55f7cb7e7e245323987634f960cf4a6e6bc74\",\n \"author\": {\n \"name\": \"QT\",\n \"email\": \"fabrikamfiber4@hotmail.com\",\n \"date\": \"2015-02-25T19:01:00Z\"\n },\n \"committer\": {\n \"name\": \"Jamal Hartnett\",\n \"email\": \"fabrikamfiber4@hotmail.com\",\n \"date\": \"2015-02-25T19:01:00Z\"\n },\n \"comment\": \"Fixed bug in web.config file\",\n \"url\": \"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git/commit/33b55f7cb7e7e245323987634f960cf4a6e6bc74\"\n }\n ],\n \"refUpdates\": [\n {\n \"name\": \"refs/heads/main\",\n \"oldObjectId\": \"aad331d8d3b131fa9ae03cf5e53965b51942618a\",\n \"newObjectId\": \"33b55f7cb7e7e245323987634f960cf4a6e6bc74\"\n }\n ],\n \"repository\": {\n \"id\": \"278d5cd2-584d-4b63-824a-2ba458937249\",\n \"name\": \"Fabrikam-Fiber-Git\",\n \"url\": \"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_apis/repos/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249\",\n \"project\": {\n \"id\": \"6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c\",\n \"name\": \"Fabrikam-Fiber-Git\",\n \"url\": \"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_apis/projects/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c\",\n \"state\": \"wellFormed\"\n },\n \"defaultBranch\": \"refs/heads/main\",\n \"remoteUrl\": \"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_git/Fabrikam-Fiber-Git\"\n },\n \"pushedBy\": {\n \"id\": \"00067FFED5C7AF52@Live.com\",\n \"displayName\": \"QT\",\n \"uniqueName\": \"Windows Live ID\\\\fabrikamfiber4@hotmail.com\"\n },\n \"pushId\": 14,\n \"date\": \"2014-05-02T19:17:13.3309587Z\",\n \"url\": \"https://dev.azure.com/fabrikam-fiber-inc/DefaultCollection/_apis/repos/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/pushes/14\"\n },\n \"resourceVersion\": \"1.0\",\n \"resourceContainers\": {\n \"collection\": {\n \"id\": \"c12d0eb8-e382-443b-9f9c-c52cba5014c2\"\n },\n \"account\": {\n \"id\": \"f844ec47-a9db-4511-8281-8b63f4eaf94e\"\n },\n \"project\": {\n \"id\": \"be9b3917-87e6-42a4-a549-2bc06a7a878f\"\n }\n },\n \"createdDate\": \"2016-09-19T13:03:27.0379153Z\"\n }" | ||
headers: | ||
- key: Content-Type | ||
value: application/json | ||
specs: | ||
- selector: span[tracetest.span.type="general" name="Tracetest trigger"] | ||
assertions: | ||
- attr:name = "Tracetest trigger" | ||
- attr:tracetest.response.status = 200 | ||
- attr:tracetest.span.name = "Tracetest trigger" | ||
- attr:tracetest.span.type = "general" | ||
- selector: span[tracetest.span.type="http" name="/azure" http.method="POST"] | ||
assertions: | ||
- attr:http.method = "POST" | ||
- attr:http.route = "/azure" | ||
- attr:http.scheme = "http" | ||
- attr:net.host.name = "kubviz" | ||
- attr:tracetest.span.type = "http" | ||
- attr:name = "/azure" | ||
- attr:http.status_code = 200 | ||
- selector: span[tracetest.span.type="http" name="PostAzure" http.method="POST"] | ||
assertions: | ||
- attr:name = "PostAzure" | ||
- attr:http.method = "POST" | ||
- attr:tracetest.span.name = "PostAzure" | ||
- attr:tracetest.span.type = "http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
type: Test | ||
spec: | ||
id: EPVfwDYIg | ||
name: git-bitbucket | ||
trigger: | ||
type: http | ||
httpRequest: | ||
method: POST | ||
url: https://gitbridge.aws.optimizor.app/bitbucket | ||
body: "{\n \"actor\":{\n \"nickname\":\"emmap1\",\n \"account_id\":\"udfy9suggmzpswxc7n200y3c\",\n \"display_name\":\"QT\",\n \"uuid\":\"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}\",\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"html\":{\n \"href\":\"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"avatar\":{\n \"href\":\"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png\"\n }\n }\n },\n \"repository\":{\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket\"\n },\n \"html\":{\n \"href\":\"https://api.bitbucket.org/bitbucket/bitbucket\"\n },\n \"avatar\":{\n \"href\":\"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png\"\n }\n },\n \"uuid\":\"{673a6070-3421-46c9-9d48-90745f7bfe8e}\",\n \"full_name\":\"team_name/repo_name\",\n \"name\":\"repo_name\",\n \"scm\":\"git\",\n \"is_private\":true\n },\n \"push\":{\n \"changes\":[\n {\n \"new\":{\n \"type\":\"branch\",\n \"name\":\"name-of-branch\",\n \"target\":{\n \"type\":\"commit\",\n \"hash\":\"709d658dc5b6d6afcd46049c2f332ee3f515a67d\",\n \"author\":{\n \"nickname\":\"emmap1\",\n \"account_id\":\"udfy9suggmzpswxc7n200y3c\",\n \"display_name\":\"QT\",\n \"uuid\":\"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}\",\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"html\":{\n \"href\":\"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"avatar\":{\n \"href\":\"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png\"\n }\n }\n },\n \"message\":\"new commit message\\n\",\n \"date\":\"2015-06-09T03:34:49+00:00\",\n \"parents\":[\n {\n \"type\":\"commit\",\n \"hash\":\"1e65c05c1d5171631d92438a13901ca7dae9618c\",\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/8cbbd65829c7ad834a97841e0defc965718036a0\"\n },\n \"html\":{\n \"href\":\"https://bitbucket.org/user_name/repo_name/commits/8cbbd65829c7ad834a97841e0defc965718036a0\"\n }\n }\n }\n ],\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/c4b2b7914156a878aa7c9da452a09fb50c2091f2\"\n },\n \"html\":{\n \"href\":\"https://bitbucket.org/user_name/repo_name/commits/c4b2b7914156a878aa7c9da452a09fb50c2091f2\"\n }\n }\n },\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/refs/branches/master\"\n },\n \"commits\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commits/master\"\n },\n \"html\":{\n \"href\":\"https://bitbucket.org/user_name/repo_name/branch/master\"\n }\n }\n },\n \"old\":{\n \"type\":\"branch\",\n \"name\":\"name-of-branch\",\n \"target\":{\n \"type\":\"commit\",\n \"hash\":\"1e65c05c1d5171631d92438a13901ca7dae9618c\",\n \"author\":{\n \"nickname\":\"emmap1\",\n \"account_id\":\"udfy9suggmzpswxc7n200y3c\",\n \"display_name\":\"QT\",\n \"uuid\":\"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}\",\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"html\":{\n \"href\":\"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"avatar\":{\n \"href\":\"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png\"\n }\n }\n },\n \"message\":\"old commit message\\n\",\n \"date\":\"2015-06-08T21:34:56+00:00\",\n \"parents\":[\n {\n \"type\":\"commit\",\n \"hash\":\"e0d0c2041e09746be5ce4b55067d5a8e3098c843\",\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/9c4a3452da3bc4f37af5a6bb9c784246f44406f7\"\n },\n \"html\":{\n \"href\":\"https://bitbucket.org/user_name/repo_name/commits/9c4a3452da3bc4f37af5a6bb9c784246f44406f7\"\n }\n }\n }\n ],\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/b99ea6dad8f416e57c5ca78c1ccef590600d841b\"\n },\n \"html\":{\n \"href\":\"https://bitbucket.org/user_name/repo_name/commits/b99ea6dad8f416e57c5ca78c1ccef590600d841b\"\n }\n }\n },\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/refs/branches/master\"\n },\n \"commits\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commits/master\"\n },\n \"html\":{\n \"href\":\"https://bitbucket.org/user_name/repo_name/branch/master\"\n }\n }\n },\n \"links\":{\n \"html\":{\n \"href\":\"https://bitbucket.org/user_name/repo_name/branches/compare/c4b2b7914156a878aa7c9da452a09fb50c2091f2..b99ea6dad8f416e57c5ca78c1ccef590600d841b\"\n },\n \"diff\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/diff/c4b2b7914156a878aa7c9da452a09fb50c2091f2..b99ea6dad8f416e57c5ca78c1ccef590600d841b\"\n },\n \"commits\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commits?include=c4b2b7914156a878aa7c9da452a09fb50c2091f2&exclude=b99ea6dad8f416e57c5ca78c1ccef590600d841b\"\n }\n },\n \"created\":false,\n \"forced\":false,\n \"closed\":false,\n \"commits\":[\n {\n \"hash\":\"03f4a7270240708834de475bcf21532d6134777e\",\n \"type\":\"commit\",\n \"message\":\"commit message\\n\",\n \"author\":{\n \"nickname\":\"emmap1\",\n \"account_id\":\"udfy9suggmzpswxc7n200y3c\",\n \"display_name\":\"QT\",\n \"uuid\":\"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}\",\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"html\":{\n \"href\":\"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D\"\n },\n \"avatar\":{\n \"href\":\"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png\"\n }\n }\n },\n \"links\":{\n \"self\":{\n \"href\":\"https://api.bitbucket.org/2.0/repositories/user/repo/commit/03f4a7270240708834de475bcf21532d6134777e\"\n },\n \"html\":{\n \"href\":\"https://bitbucket.org/user/repo/commits/03f4a7270240708834de475bcf21532d6134777e\"\n }\n }\n }\n ],\n \"truncated\":false\n }\n ]\n }\n}" | ||
headers: | ||
- key: Content-Type | ||
value: application/json | ||
- key: X-Event-Key | ||
value: repo:push | ||
specs: | ||
- selector: span[tracetest.span.type="general" name="Tracetest trigger"] | ||
assertions: | ||
- attr:name = "Tracetest trigger" | ||
- attr:tracetest.response.status = 200 | ||
- attr:tracetest.span.type = "general" | ||
- selector: span[tracetest.span.type="http" name="/bitbucket" http.method="POST"] | ||
assertions: | ||
- attr:http.method = "POST" | ||
- attr:http.route = "/bitbucket" | ||
- attr:http.scheme = "http" | ||
- attr:http.status_code = 200 | ||
- attr:name = "/bitbucket" | ||
- attr:net.host.name = "kubviz" | ||
- attr:tracetest.span.type = "http" | ||
- selector: span[tracetest.span.type="http" name="PostBitbucket" http.method="POST"] | ||
assertions: | ||
- attr:http.method = "POST" | ||
- attr:tracetest.span.name = "PostBitbucket" | ||
- attr:tracetest.span.type = "http" |
Oops, something went wrong.