Skip to content

Commit

Permalink
fix(test): add old test events
Browse files Browse the repository at this point in the history
- to fix CI from failing

Signed-off-by: Suraj Banakar <[email protected]>
  • Loading branch information
vadasambar committed Aug 12, 2022
1 parent 1bd81df commit 299b2ff
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/events/deployment.triggered.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"type": "sh.keptn.event.deployment.triggered",
"specversion": "1.0",
"source": "test-events",
"id": "f2b878d3-03c0-4e8f-bc3f-454bc1b3d79a",
"time": "2019-06-07T07:02:15.64489Z",
"contenttype": "application/json",
"shkeptncontext": "08735340-6f9e-4b32-97ff-3b6c292bc50g",
"data": {
"project": "sockshop",
"stage": "dev",
"service": "carts",
"labels": {
"testId": "4711",
"buildId": "build-17",
"owner": "JohnDoe"
},
"status": "succeeded",
"result": "pass",

"configurationChange": {
"values": {
"image": "ghcr.io/keptnexamples/carts:0.11.2"
}
},
"deployment": {
"deploymentstrategy": "blue_green_service"
}
}
}
28 changes: 28 additions & 0 deletions test/events/evaluation.triggered.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"data": {
"deployment": {
"deploymentNames": null
},
"evaluation": {
"end": "2021-01-15T15:09:45.000Z",
"start": "2021-01-15T15:04:45.000Z"
},
"labels": null,
"message": "",
"project": "podtatohead",
"result": "",
"service": "helloservice",
"stage": "hardening",
"status": "",
"test": {
"end": "",
"start": ""
}
},
"id": "5afa758e-697c-4496-8deb-4d7cc1c93967",
"source": "test-events",
"specversion": "1.0",
"time": "2021-01-15T15:09:46.006Z",
"type": "sh.keptn.event.evaluation.triggered",
"shkeptncontext": "da7aec34-78c4-4182-a2c8-51eb88f5871d"
}
26 changes: 26 additions & 0 deletions test/events/get-sli.triggered.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"data": {
"get-sli": {
"customFilters": [],
"end": "2021-01-15T15:09:45.000Z",
"indicators": [
"system_load"
],
"sliProvider": "datadog",
"start": "2021-01-15T15:04:45.000Z"
},
"labels": null,
"message": "",
"project": "podtatohead",
"result": "",
"service": "helloservice",
"stage": "hardening",
"status": ""
},
"id": "409539ae-c0b9-436e-abc6-c257292e28ff",
"source": "test-events",
"specversion": "1.0",
"time": "2021-01-15T15:09:46.144Z",
"type": "sh.keptn.event.get-sli.triggered",
"shkeptncontext": "da7aec34-78c4-4182-a2c8-51eb88f5871d"
}
25 changes: 25 additions & 0 deletions test/events/release.triggered.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"type": "sh.keptn.event.release.triggered",
"specversion": "1.0",
"source": "test-events",
"id": "f2b878d3-03c0-4e8f-bc3f-454bc1b3d79b",
"time": "2019-06-07T07:02:15.64489Z",
"contenttype": "application/json",
"shkeptncontext": "08735340-6f9e-4b32-97ff-3b6c292bc50h",
"data": {
"project": "sockshop",
"stage": "dev",
"service": "carts",
"labels": {
"testId": "4711",
"buildId": "build-17",
"owner": "JohnDoe"
},
"status": "succeeded",
"result": "pass",

"deployment": {
"deploymentstrategy": "blue_green_service"
}
}
}
56 changes: 56 additions & 0 deletions test/events/send-test-events.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection) or
# paste cURL into the file and request will be converted to HTTP Request format.
#
# Following HTTP Request Live Templates are available:
# * 'gtrp' and 'gtr' create a GET request with or without query parameters;
# * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
# * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);

# send service.create.finished test-event
POST http://localhost:8080/
Accept: application/json
Cache-Control: no-cache
Content-Type: application/cloudevents+json

< ./service.create.finished.json
###

# send action.triggered test-event
POST http://localhost:8080/
Accept: application/json
Cache-Control: no-cache
Content-Type: application/cloudevents+json

< ./action.triggered.json

###

# send deployment.triggered test-event
POST http://localhost:8080/
Accept: application/json
Cache-Control: no-cache
Content-Type: application/cloudevents+json

< ./deployment.triggered.json

###

# send evaluation.triggered test-event
POST http://localhost:8080/
Accept: application/json
Cache-Control: no-cache
Content-Type: application/cloudevents+json

< ./evaluation.triggered.json

###

# send get-sli.triggered test-event
POST http://localhost:8080/
Accept: application/json
Cache-Control: no-cache
Content-Type: application/cloudevents+json

< ./get-sli.triggered.json

###
24 changes: 24 additions & 0 deletions test/events/service.create.finished.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "sh.keptn.event.service.create.finished",
"specversion": "1.0",
"source": "test-events",
"id": "f2b878d3-03c0-4e8f-bc3f-454bc1b3d79d",
"time": "2019-06-07T07:02:15.64489Z",
"contenttype": "application/json",
"shkeptncontext": "08735340-6f9e-4b32-97ff-3b6c292bc50f",
"data": {
"project": "sockshop",
"service": "carts",
"labels": {
"testId": "4711",
"buildId": "build-17",
"owner": "JohnDoe"
},
"status": "succeeded",
"result": "pass",

"helm": {
"chart": "H4sIFAAAAAAA/ykAK2FIUjBjSE02THk5NWIzVjBkUzVpWlM5Nk9WVjZNV2xqYW5keVRRbz1IZWxtAOxYS2/jNhDOWb9i4Mu2B8uUH7sLAXsIHHc33dgxHCdAURQGI41jNpTIkpSxRur/XlAvy5adFGgeCOq5OJoXOdTMx08JqDK61V9QZdwVjfjJCwghhHzsdtNfQsjuL/HaH0+8zieP9Hrtttc5IV67QzonQF5iM7uSaEPVCfnPa+0W906ESnaDSjMR+7D0nBB1oJg06fMpfEMeQWCbA+ZCgUa1ZAFC2jROTCP087+XRQ7iei5x3rqqo/xbyeZ/SXmC+qUA4Kn5b3vt3fnvdXrH+X8NYRG9Qx9CEdyjcplo3aM0Mf6gkeSoW2l7+MT1PNdzFErOAtoXSWx88Bwn9fUdAKnEnxgYH7QI7vVCSAdAmywzLu1DhhwFXACEKLlYRWgzhUxhYN76JP6fks2/wUhyalC3Nu/l+dDgifnv2mHfnv9et0OO8/8a0mw2wamSACqlbi09557FoQ9nZTs4ERoaUkPtvFevfi0xsLocHbQPDw/g3mQ3ShUyYL1OYUFRg3crGwKgBOcsvruWITWYqQAi+uM6pkvKOL3l6ANJ9WYl0YdJNSAFFo6BESqLjagJFhf0FrkuklEpN6hT9HnuXVQEuS/fityJLVXufXKLKkaD2gJmdhaVmlNUdAuulBZ9KJbF2tDY4mLjkQTNmm0zpbBeNx5ZIBCRFHGKslSyRxwlVaYp5vs2koP7EytFNKZ3GDZvVz58t3GP+JZs8eEBftKSMwMNv1Eum95JP7szD/6GEOc04QYaKTyZRnGeRddZCURsKItRla+uudWhxUbyu65aYaraqizVjBPOx4KzYOXD+XwkzFihtkNQeElh78XysVhvYYwslem1aEQguA/T/riiLzc8Fsr48Jl8JqUV42U979l01r++ml4OZ+PJZTVTStx8aOQn+sWWln3M5QMN6zUoXLLSOkGOVKM7yZWZQ6qza235jGhkDwfSPpjlffDlkQbJPfPWrXtuerrwtCRhj5/JXkvutWn3uuuBUShObnx5NhudDge7Z/aLEpFfUQLMGfJwgvNtba4fU7PwoVEghmuT1xc7G4wvLn8bDkbTl1gzQ6ffP2wq/vBHfQ/9y9H09Hw0mMzOh6dfa3t4qv2LNN8H4+nIdtuvg/70QJKs0fImOZTiarpnF89w+lrSYM8ryBcdTG7O+/uKTxGhHnY9uhicXn1LAweT2fXkYk+snW6/1UpiOx0LN/9thrhsUck2STlbYoxaj5W4xWpBNsFXNNs1yrS41gIpN4ttSx0dAFjMDKP8DDldXWEg4lD78LHqIVExEZY2r2ozLEKRmI2xVxoV0pC9x21rkagAdXV7nEXM6N1eCmRi8xIS7RgijIRa+dAm3c9DVjEq/CtBfSBT73Aij7S7Q/Ye/g2yy/9zhH7WfwU8+f3/aZf/dz+R4/f/q0iN/5fU/yrrBGeLJdeIv1VmzLzPE21QnVt6ktEja6sxowIdsocaQTJU3aHZ4kUlxc9oeoWUv/XhHeUoRznKO5Z/AgAA///9mYwrABwAAA=="
}
}
}

0 comments on commit 299b2ff

Please sign in to comment.