Skip to content

Commit

Permalink
Merge branch 'mr/kanya/update' into 'master'
Browse files Browse the repository at this point in the history
Update event test data to be more generic

See merge request it/e3-aws!25
  • Loading branch information
RomaricKanyamibwa committed Dec 6, 2024
2 parents df7def8 + 6e64811 commit 64f381b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"accept-encoding": "gzip, deflate, br",
"accept-language": "en-US,en;q=0.9",
"content-length": "0",
"host": "abcd12345.execute-api.us-east-2.amazonaws.com",
"host": "abcdefg123456.example.com",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "cross-site",
Expand All @@ -27,7 +27,7 @@
"requestContext": {
"accountId": "123456789012",
"apiId": "abcd12345",
"domainName": "abcd12345.execute-api.us-east-2.amazonaws.com",
"domainName": "abcdefg123456.example.com",
"domainPrefix": "abcd12345",
"http": {
"method": "GET",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"accept-encoding": "gzip, deflate, br",
"accept-language": "en-US,en;q=0.9",
"content-length": "0",
"host": "abcd12345.execute-api.us-east-2.amazonaws.com",
"host": "abcdefg123456.example.com",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "cross-site",
Expand All @@ -27,7 +27,7 @@
"requestContext": {
"accountId": "123456789012",
"apiId": "abcd12345",
"domainName": "abcd12345.execute-api.us-east-2.amazonaws.com",
"domainName": "abcdefg123456.example.com",
"domainPrefix": "abcd12345",
"http": {
"method": "GET",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"accept-encoding": "gzip, deflate, br",
"accept-language": "en-US,en;q=0.9",
"content-length": "0",
"host": "abcd12345.execute-api.us-east-2.amazonaws.com",
"host": "abcdefg123456.example.com",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "cross-site",
Expand All @@ -27,7 +27,7 @@
"requestContext": {
"accountId": "123456789012",
"apiId": "abcd12345",
"domainName": "abcd12345.execute-api.us-east-2.amazonaws.com",
"domainName": "abcdefg123456.example.com",
"domainPrefix": "abcd12345",
"http": {
"method": "GET",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"accept-encoding": "gzip, deflate, br",
"accept-language": "en-US,en;q=0.9",
"cookie": "s_fid=7AAB6XMPLAFD9BBF-0643XMPL09956DE2; regStatus=pre-register",
"Host": "abcd12345.execute-api.us-east-2.amazonaws.com",
"Host": "abcdefg123456.example.com",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
Expand All @@ -32,7 +32,7 @@
"s_fid=7AABXMPL1AFD9BBF-0643XMPL09956DE2; regStatus=pre-register;"
],
"Host": [
"abcd12345.execute-api.ca-central-1.amazonaws.com"
"abcd12345.example.com"
],
"sec-fetch-dest": [
"document"
Expand Down Expand Up @@ -104,9 +104,9 @@
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36",
"user": null
},
"domainName": "abcd12345.execute-api.us-east-2.amazonaws.com",
"domainName": "abcdefg123456.example.com",
"apiId": "abcd12345"
},
"body": "{\n \"object_kind\": \"push\",\n \"event_name\": \"push\",\n \"before\": \"02f17b42dc36589eb7007e34e6d5a84273f5021e\",\n \"after\": \"424ec9d4b14a8be1391a4824f4f7f54ebf6802ac\",\n \"ref\": \"refs/heads/tests-webhook/rena\",\n \"checkout_sha\": \"424ec9d4b14a8be1391a4824f4f7f54ebf6802ac\",\n \"message\": null,\n \"user_id\": 30,\n \"user_name\": \"Romaric Kanyamibwa\",\n \"user_username\": \"kanya\",\n \"user_email\": \"\",\n \"user_avatar\": \"https://secure.gravatar.com/avatar/86600f9a5b506eed2ecb6a0badb1ef4d?s=80&d=identicon\",\n \"project_id\": 102,\n \"project\": {\n \"id\": 102,\n \"name\": \"Typhon To Gitlab Test Repo\",\n \"description\": null,\n \"web_url\": \"https://gitlab.adacore-it.com/kanya/typhon-to-gitlab-test-repo\",\n \"avatar_url\": null,\n \"git_ssh_url\": \"[email protected]:kanya/typhon-to-gitlab-test-repo.git\",\n \"git_http_url\": \"https://gitlab.adacore-it.com/kanya/typhon-to-gitlab-test-repo.git\",\n \"namespace\": \"Romaric Kanyamibwa\",\n \"visibility_level\": 10,\n \"path_with_namespace\": \"kanya/typhon-to-gitlab-test-repo\",\n \"default_branch\": \"main\",\n \"ci_config_path\": \"\",\n \"homepage\": \"https://gitlab.adacore-it.com/kanya/typhon-to-gitlab-test-repo\",\n \"url\": \"[email protected]:kanya/typhon-to-gitlab-test-repo.git\",\n \"ssh_url\": \"[email protected]:kanya/typhon-to-gitlab-test-repo.git\",\n \"http_url\": \"https://gitlab.adacore-it.com/kanya/typhon-to-gitlab-test-repo.git\"\n },\n \"commits\": [\n {\n \"id\": \"424ec9d4b14a8be1391a4824f4f7f54ebf6802ac\",\n \"message\": \"Update CHANGELOG\\r\\n\\r\\nref kanya/typhon-to-gitlab-test-repo#6\",\n \"title\": \"Update CHANGELOG\",\n \"timestamp\": \"2023-03-15T16:55:33+00:00\",\n \"url\": \"https://gitlab.adacore-it.com/kanya/typhon-to-gitlab-test-repo/-/commit/424ec9d4b14a8be1391a4824f4f7f54ebf6802ac\",\n \"author\": {\n \"name\": \"Romaric Kanyamibwa\",\n \"email\": \"[email protected]\"\n },\n \"added\": [],\n \"modified\": [\n \"CHANGELOG\"\n ],\n \"removed\": []\n }\n ],\n \"total_commits_count\": 1,\n \"push_options\": {},\n \"repository\": {\n \"name\": \"Typhon To Gitlab Test Repo\",\n \"url\": \"[email protected]:kanya/typhon-to-gitlab-test-repo.git\",\n \"description\": null,\n \"homepage\": \"https://gitlab.adacore-it.com/kanya/typhon-to-gitlab-test-repo\",\n \"git_http_url\": \"https://gitlab.adacore-it.com/kanya/typhon-to-gitlab-test-repo.git\",\n \"git_ssh_url\": \"[email protected]:kanya/typhon-to-gitlab-test-repo.git\",\n \"visibility_level\": 10\n }\n}",
"body": "{\n \"object_kind\": \"push\",\n \"event_name\": \"push\",\n \"before\": \"02f17b42dc36589eb7007e34e6d5a84273f5021e\",\n \"after\": \"abcd12546\",\n \"ref\": \"refs/heads/tests-webhook/rena\",\n \"checkout_sha\": \"abcd12546\",\n \"message\": null,\n \"user_id\": 30,\n \"user_name\": \"User A\",\n \"user_username\": \"user_a\",\n \"user_email\": \"\",\n \"user_avatar\": \"https://secure.gravatar.com/avatar/86600f9a5b506eed2ecb6a0badb1ef4d?s=80&d=identicon\",\n \"project_id\": 102,\n \"project\": {\n \"id\": 102,\n \"name\": \"Typhon To Gitlab Test Repo\",\n \"description\": null,\n \"web_url\": \"https://gitlab.com/user_a/repo\",\n \"avatar_url\": null,\n \"git_ssh_url\": \"[email protected]:user_a/repo.git\",\n \"git_http_url\": \"https://gitlab.com/user_a/repo.git\",\n \"namespace\": \"User A\",\n \"visibility_level\": 10,\n \"path_with_namespace\": \"user_a/repo\",\n \"default_branch\": \"main\",\n \"ci_config_path\": \"\",\n \"homepage\": \"https://gitlab.com/user_a/repo\",\n \"url\": \"[email protected]:user_a/repo.git\",\n \"ssh_url\": \"[email protected]:user_a/repo.git\",\n \"http_url\": \"https://gitlab.com/user_a/repo.git\"\n },\n \"commits\": [\n {\n \"id\": \"abcd12546\",\n \"message\": \"Update CHANGELOG\\r\\n\\r\\nref user_a/repo#6\",\n \"title\": \"Update CHANGELOG\",\n \"timestamp\": \"2023-03-15T16:55:33+00:00\",\n \"url\": \"https://gitlab.com/user_a/repo/-/commit/abcd12546\",\n \"author\": {\n \"name\": \"User A\",\n \"email\": \"[email protected]\"\n },\n \"added\": [],\n \"modified\": [\n \"CHANGELOG\"\n ],\n \"removed\": []\n }\n ],\n \"total_commits_count\": 1,\n \"push_options\": {},\n \"repository\": {\n \"name\": \"Typhon To Gitlab Test Repo\",\n \"url\": \"[email protected]:user_a/repo.git\",\n \"description\": null,\n \"homepage\": \"https://gitlab.com/user_a/repo\",\n \"git_http_url\": \"https://gitlab.com/user_a/repo.git\",\n \"git_ssh_url\": \"[email protected]:user_a/repo.git\",\n \"visibility_level\": 10\n }\n}",
"isBase64Encoded": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"REMOTE_ADDR": "1.2.3.4",
"REQUEST_METHOD": "GET",
"SCRIPT_NAME": "",
"HTTP_HOST": "abcd12345.execute-api.us-east-2.amazonaws.com",
"SERVER_NAME": "abcd12345.execute-api.us-east-2.amazonaws.com",
"HTTP_HOST": "abcdefg123456.example.com",
"SERVER_NAME": "abcdefg123456.example.com",
"SERVER_PORT": "443",
"SERVER_PROTOCOL": "HTTP/1.1",
"wsgi.version": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"REMOTE_ADDR": "1.2.3.4",
"REQUEST_METHOD": "GET",
"SCRIPT_NAME": "/Prod",
"HTTP_HOST": "abcd12345.execute-api.us-east-2.amazonaws.com",
"SERVER_NAME": "abcd12345.execute-api.us-east-2.amazonaws.com",
"HTTP_HOST": "abcdefg123456.example.com",
"SERVER_NAME": "abcdefg123456.example.com",
"SERVER_PORT": "443",
"SERVER_PROTOCOL": "HTTP/1.1",
"wsgi.version": [
Expand Down

0 comments on commit 64f381b

Please sign in to comment.