From 524bf793535abb454ee7351c542d394b4503c253 Mon Sep 17 00:00:00 2001 From: Jerboa-app Date: Fri, 19 Jan 2024 08:32:12 +0000 Subject: [PATCH] do not ignore event config json in tests --- .gitignore | 3 ++- tests/event_config.json | 56 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 tests/event_config.json diff --git a/.gitignore b/.gitignore index 088c6d5..f402284 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ target/ *.stats* .vscode config.json -event_config.json \ No newline at end of file +event_config.json +!tests/event_config.json \ No newline at end of file diff --git a/tests/event_config.json b/tests/event_config.json new file mode 100644 index 0000000..2b687d1 --- /dev/null +++ b/tests/event_config.json @@ -0,0 +1,56 @@ +{ + "github_released": + { + "hmac": "this_is_secret_number_one", + "templates": + [ + { + "check_value_path": "", + "check_value": "", + "body": "New release!" + } + ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + }, + "github_starred": + { + "hmac": "this_is_secret_number_one", + "templates": + [ + { + "check_value_path": "action", + "check_value": "created", + "body": " just got a new star! That makes " + }, + { + "check_value_path": "action", + "check_value": "deleted", + "body": " just lost a star :cry: That makes " + } + ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + }, + "github_pushed": + { + "hmac": "this_is_secret_number_one", + "templates": [ ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + }, + "github_ping": + { + "hmac": "this_is_secret_number_one", + "templates": + [ + { + "check_value_path": "", + "check_value": "", + "body": "Ping!" + } + ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + } +} \ No newline at end of file