foreman_webhooks 3.1.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_webhooks/locale/ca/foreman_webhooks.js +238 -0
  3. data/app/assets/javascripts/foreman_webhooks/locale/cs_CZ/foreman_webhooks.js +238 -0
  4. data/app/assets/javascripts/foreman_webhooks/locale/de/foreman_webhooks.js +238 -0
  5. data/app/assets/javascripts/foreman_webhooks/locale/en/foreman_webhooks.js +262 -0
  6. data/app/assets/javascripts/foreman_webhooks/locale/en_GB/foreman_webhooks.js +238 -0
  7. data/app/assets/javascripts/foreman_webhooks/locale/es/foreman_webhooks.js +238 -0
  8. data/app/assets/javascripts/foreman_webhooks/locale/fr/foreman_webhooks.js +238 -0
  9. data/app/assets/javascripts/foreman_webhooks/locale/it/foreman_webhooks.js +238 -0
  10. data/app/assets/javascripts/foreman_webhooks/locale/ja/foreman_webhooks.js +238 -0
  11. data/app/assets/javascripts/foreman_webhooks/locale/ka/foreman_webhooks.js +238 -0
  12. data/app/assets/javascripts/foreman_webhooks/locale/ko/foreman_webhooks.js +238 -0
  13. data/app/assets/javascripts/foreman_webhooks/locale/pl/foreman_webhooks.js +238 -0
  14. data/app/assets/javascripts/foreman_webhooks/locale/pt_BR/foreman_webhooks.js +238 -0
  15. data/app/assets/javascripts/foreman_webhooks/locale/ru/foreman_webhooks.js +238 -0
  16. data/app/assets/javascripts/foreman_webhooks/locale/zh_CN/foreman_webhooks.js +238 -0
  17. data/app/assets/javascripts/foreman_webhooks/locale/zh_TW/foreman_webhooks.js +238 -0
  18. data/app/controllers/api/v2/webhooks_controller.rb +24 -1
  19. data/app/graphql/foreman_webhooks/types/webhook.rb +25 -0
  20. data/app/graphql/foreman_webhooks/types/webhook_template.rb +25 -0
  21. data/app/models/webhook.rb +18 -0
  22. data/app/models/webhook_template.rb +2 -0
  23. data/app/services/foreman_webhooks/webhook_service.rb +1 -1
  24. data/app/views/foreman_webhooks/webhook_templates/katello_-_promote.erb +1 -0
  25. data/app/views/foreman_webhooks/webhook_templates/katello_-_publish.erb +1 -0
  26. data/app/views/foreman_webhooks/webhook_templates/katello_-_repo_sync.erb +1 -0
  27. data/app/views/foreman_webhooks/webhook_templates/remote_execution_-_host_job.erb +0 -1
  28. data/config/routes.rb +3 -0
  29. data/lib/foreman_webhooks/engine.rb +9 -2
  30. data/lib/foreman_webhooks/version.rb +1 -1
  31. data/locale/ca/LC_MESSAGES/foreman_webhooks.mo +0 -0
  32. data/locale/ca/foreman_webhooks.po +237 -0
  33. data/locale/cs_CZ/LC_MESSAGES/foreman_webhooks.mo +0 -0
  34. data/locale/cs_CZ/foreman_webhooks.po +240 -0
  35. data/locale/de/LC_MESSAGES/foreman_webhooks.mo +0 -0
  36. data/locale/de/foreman_webhooks.po +244 -0
  37. data/locale/en/LC_MESSAGES/foreman_webhooks.mo +0 -0
  38. data/locale/en/foreman_webhooks.po +258 -0
  39. data/locale/en_GB/LC_MESSAGES/foreman_webhooks.mo +0 -0
  40. data/locale/en_GB/foreman_webhooks.po +239 -0
  41. data/locale/es/LC_MESSAGES/foreman_webhooks.mo +0 -0
  42. data/locale/es/foreman_webhooks.po +241 -0
  43. data/locale/fr/LC_MESSAGES/foreman_webhooks.mo +0 -0
  44. data/locale/fr/foreman_webhooks.po +241 -0
  45. data/locale/it/LC_MESSAGES/foreman_webhooks.mo +0 -0
  46. data/locale/it/foreman_webhooks.po +240 -0
  47. data/locale/ja/LC_MESSAGES/foreman_webhooks.mo +0 -0
  48. data/locale/ja/foreman_webhooks.po +240 -0
  49. data/locale/ka/LC_MESSAGES/foreman_webhooks.mo +0 -0
  50. data/locale/ka/foreman_webhooks.po +237 -0
  51. data/locale/ko/LC_MESSAGES/foreman_webhooks.mo +0 -0
  52. data/locale/ko/foreman_webhooks.po +238 -0
  53. data/locale/pl/LC_MESSAGES/foreman_webhooks.mo +0 -0
  54. data/locale/pl/foreman_webhooks.po +240 -0
  55. data/locale/pt_BR/LC_MESSAGES/foreman_webhooks.mo +0 -0
  56. data/locale/pt_BR/foreman_webhooks.po +241 -0
  57. data/locale/ru/LC_MESSAGES/foreman_webhooks.mo +0 -0
  58. data/locale/ru/foreman_webhooks.po +241 -0
  59. data/locale/zh_CN/LC_MESSAGES/foreman_webhooks.mo +0 -0
  60. data/locale/zh_CN/foreman_webhooks.po +240 -0
  61. data/locale/zh_TW/LC_MESSAGES/foreman_webhooks.mo +0 -0
  62. data/locale/zh_TW/foreman_webhooks.po +239 -0
  63. data/package.json +0 -3
  64. data/test/factories/webhook_template.rb +10 -0
  65. data/test/graphql/foreman_webhooks/queries/webhook_query_test.rb +59 -0
  66. data/test/graphql/foreman_webhooks/queries/webhook_template_query_test.rb +64 -0
  67. data/test/graphql/foreman_webhooks/queries/webhook_templates_query_test.rb +47 -0
  68. data/test/graphql/foreman_webhooks/queries/webhooks_query_test.rb +47 -0
  69. data/webpack/ForemanWebhooks/Routes/Webhooks/Components/WebhookForm/Components/WebhookFormTabs.js +19 -4
  70. data/webpack/ForemanWebhooks/Routes/Webhooks/Components/WebhookForm/WebhookFormSelectors.js +4 -5
  71. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhookTestModal.js +100 -0
  72. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/Components/ActionButtons/ActionButton.js +40 -0
  73. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/Components/Formatters/actionCellFormatter.js +20 -0
  74. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/Components/Formatters/index.js +1 -0
  75. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/WebhooksTable.js +7 -3
  76. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/WebhooksTableSchema.js +3 -4
  77. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/__tests__/WebhooksTable.test.js +2 -0
  78. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/__tests__/__snapshots__/WebhooksTable.test.js.snap +32 -0
  79. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/index.js +23 -2
  80. data/webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/WebhooksIndexPage.js +3 -0
  81. data/webpack/ForemanWebhooks/Routes/Webhooks/constants.js +1 -0
  82. data/webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js +3 -0
  83. metadata +64 -4
  84. data/test/factories/webhook_target.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2e2cd8a525bdb2e31d34685a1344d68b0bbeed91b36e0482afdd74c875bb105
4
- data.tar.gz: 946774074684e529ae6aa79e0b808d63f1481d00fa0e6a670afeea84df292251
3
+ metadata.gz: 15d1cac404f1ebab4f288c3b5e59fa76ae093b45cb28450da0402ffbf17664b9
4
+ data.tar.gz: f9712a714395e9e4d4cad854eacf4fc28c2690411178d7af2465f140478facb3
5
5
  SHA512:
6
- metadata.gz: 67fca48ad2a53856abcce08f91845c5b5809730533c61f9bae0cd63ef382670d99a50032fc286f0ab59d1515968120cfe05f5ef491ae0ed9eb37cf0c20af05f2
7
- data.tar.gz: df37d884b225cd21e575cecf4cf86f09168614d6e4aa76e477d9e69253e6512a598019a3cdbbed2d14156dca7f4045adbe5b0bb213c29f8cdcd48def6febd9cd
6
+ metadata.gz: b35bc2e5483d29e9ddecaaba94b64c82472c767b0f52aefa0cd8a87e85c717248ce84828cd567d33292c47923f464a799f1aac009d67b63905d73ac815eb48b9
7
+ data.tar.gz: 12c8971769812a7adbb70863ac7fe2b2e47c129fd42efda9949c82d5e08aaad7cf3a00bcfa66776f93d1f653ddfffae038a878ea10a48e798b60c2cd4c884d8b
@@ -0,0 +1,238 @@
1
+ locales['foreman_webhooks'] = locales['foreman_webhooks'] || {}; locales['foreman_webhooks']['ca'] = {
2
+ "domain": "foreman_webhooks",
3
+ "locale_data": {
4
+ "foreman_webhooks": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_webhooks 3.2.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2023-06-05 12:44+0000",
9
+ "Last-Translator": "Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2023",
10
+ "Language-Team": "Catalan (https://app.transifex.com/foreman/teams/114/ca/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "ca",
15
+ "Plural-Forms": "nplurals=2; plural=(n != 1);",
16
+ "lang": "ca",
17
+ "domain": "foreman_webhooks",
18
+ "plural_forms": "nplurals=2; plural=(n != 1);"
19
+ },
20
+ "Actions": [
21
+ "Accions"
22
+ ],
23
+ "Additional": [
24
+ ""
25
+ ],
26
+ "Authentication credentials": [
27
+ ""
28
+ ],
29
+ "Authorize with Foreman client certificate and validate smart-proxy CA from Settings": [
30
+ ""
31
+ ],
32
+ "Change the password": [
33
+ ""
34
+ ],
35
+ "Clone a template": [
36
+ ""
37
+ ],
38
+ "Confirm Webhook Deletion": [
39
+ ""
40
+ ],
41
+ "Create Template": [
42
+ ""
43
+ ],
44
+ "Create Webhook": [
45
+ ""
46
+ ],
47
+ "Create a Webhook": [
48
+ ""
49
+ ],
50
+ "Create a webhook template": [
51
+ ""
52
+ ],
53
+ "Credentials": [
54
+ ""
55
+ ],
56
+ "Delete": [
57
+ "Suprimeix"
58
+ ],
59
+ "Delete a Webhook": [
60
+ ""
61
+ ],
62
+ "Delete a webhook template": [
63
+ ""
64
+ ],
65
+ "Deliver webhook": [
66
+ ""
67
+ ],
68
+ "Deliver webhook %s": [
69
+ ""
70
+ ],
71
+ "Edit": [
72
+ "Edita"
73
+ ],
74
+ "Edit %s": [
75
+ ""
76
+ ],
77
+ "Enabled": [
78
+ ""
79
+ ],
80
+ "Error": [
81
+ ""
82
+ ],
83
+ "Example: %s": [
84
+ ""
85
+ ],
86
+ "Export a webhook template to ERB": [
87
+ ""
88
+ ],
89
+ "General": [
90
+ "General"
91
+ ],
92
+ "HTTP Content Type": [
93
+ ""
94
+ ],
95
+ "HTTP Headers": [
96
+ ""
97
+ ],
98
+ "HTTP Method": [
99
+ ""
100
+ ],
101
+ "If unchecked, the webhook will be inactive": [
102
+ ""
103
+ ],
104
+ "Import a webhook template": [
105
+ ""
106
+ ],
107
+ "List Webhooks": [
108
+ ""
109
+ ],
110
+ "List available events for subscription": [
111
+ ""
112
+ ],
113
+ "List webhook templates": [
114
+ ""
115
+ ],
116
+ "Name": [
117
+ "Nom"
118
+ ],
119
+ "No Results": [
120
+ ""
121
+ ],
122
+ "Optional CAs in PEM format concatenated to verify the receiver's SSL certificate": [
123
+ ""
124
+ ],
125
+ "Optional. Must be a JSON object (ERB allowed)": [
126
+ ""
127
+ ],
128
+ "Password": [
129
+ ""
130
+ ],
131
+ "Proxy Authorization": [
132
+ ""
133
+ ],
134
+ "Show Webhook details": [
135
+ ""
136
+ ],
137
+ "Show webhook template details": [
138
+ ""
139
+ ],
140
+ "Snippet": [
141
+ ""
142
+ ],
143
+ "Start typing to search": [
144
+ ""
145
+ ],
146
+ "Subscribe to": [
147
+ ""
148
+ ],
149
+ "Target URL": [
150
+ ""
151
+ ],
152
+ "Target URL that should be called by Foreman (ERB allowed).": [
153
+ ""
154
+ ],
155
+ "Template": [
156
+ ""
157
+ ],
158
+ "Template contents including metadata": [
159
+ ""
160
+ ],
161
+ "Template name": [
162
+ ""
163
+ ],
164
+ "This template is locked for editing.": [
165
+ ""
166
+ ],
167
+ "Try to create a new webhook": [
168
+ ""
169
+ ],
170
+ "Type": [
171
+ "Tipus"
172
+ ],
173
+ "URL must be valid and schema must be one of: %s": [
174
+ ""
175
+ ],
176
+ "Uncheck this option to disable validation of the receiver's SSL certificate": [
177
+ ""
178
+ ],
179
+ "Update a Webhook": [
180
+ ""
181
+ ],
182
+ "Update a webhook template": [
183
+ ""
184
+ ],
185
+ "User": [
186
+ "Usuari"
187
+ ],
188
+ "Verify SSL": [
189
+ ""
190
+ ],
191
+ "Webhook": [
192
+ ""
193
+ ],
194
+ "Webhook %s was successfully deleted": [
195
+ ""
196
+ ],
197
+ "Webhook Templates": [
198
+ ""
199
+ ],
200
+ "Webhook was successfully created.": [
201
+ ""
202
+ ],
203
+ "Webhook was successfully updated.": [
204
+ ""
205
+ ],
206
+ "WebhookTemplate|Locked": [
207
+ ""
208
+ ],
209
+ "WebhookTemplate|Name": [
210
+ ""
211
+ ],
212
+ "WebhookTemplate|Snippet": [
213
+ ""
214
+ ],
215
+ "Webhooks": [
216
+ ""
217
+ ],
218
+ "Whether or not the template is added automatically to new organizations and locations": [
219
+ ""
220
+ ],
221
+ "Whether or not the template is locked for editing": [
222
+ ""
223
+ ],
224
+ "X509 Certification Authorities": [
225
+ ""
226
+ ],
227
+ "X509 Certification Authorities concatenated in PEM format": [
228
+ ""
229
+ ],
230
+ "You are about to delete %s. Are you sure?": [
231
+ ""
232
+ ],
233
+ "is required": [
234
+ ""
235
+ ]
236
+ }
237
+ }
238
+ };
@@ -0,0 +1,238 @@
1
+ locales['foreman_webhooks'] = locales['foreman_webhooks'] || {}; locales['foreman_webhooks']['cs_CZ'] = {
2
+ "domain": "foreman_webhooks",
3
+ "locale_data": {
4
+ "foreman_webhooks": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_webhooks 3.2.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2023-06-05 12:44+0000",
9
+ "Last-Translator": "Pavel Borecki <pavel.borecki@gmail.com>, 2023",
10
+ "Language-Team": "Czech (Czech Republic) (https://app.transifex.com/foreman/teams/114/cs_CZ/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "cs_CZ",
15
+ "Plural-Forms": "nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;",
16
+ "lang": "cs_CZ",
17
+ "domain": "foreman_webhooks",
18
+ "plural_forms": "nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;"
19
+ },
20
+ "Actions": [
21
+ "Akce"
22
+ ],
23
+ "Additional": [
24
+ ""
25
+ ],
26
+ "Authentication credentials": [
27
+ ""
28
+ ],
29
+ "Authorize with Foreman client certificate and validate smart-proxy CA from Settings": [
30
+ ""
31
+ ],
32
+ "Change the password": [
33
+ ""
34
+ ],
35
+ "Clone a template": [
36
+ ""
37
+ ],
38
+ "Confirm Webhook Deletion": [
39
+ ""
40
+ ],
41
+ "Create Template": [
42
+ ""
43
+ ],
44
+ "Create Webhook": [
45
+ ""
46
+ ],
47
+ "Create a Webhook": [
48
+ ""
49
+ ],
50
+ "Create a webhook template": [
51
+ ""
52
+ ],
53
+ "Credentials": [
54
+ "Přihlašovací údaje"
55
+ ],
56
+ "Delete": [
57
+ "Smazat"
58
+ ],
59
+ "Delete a Webhook": [
60
+ ""
61
+ ],
62
+ "Delete a webhook template": [
63
+ ""
64
+ ],
65
+ "Deliver webhook": [
66
+ ""
67
+ ],
68
+ "Deliver webhook %s": [
69
+ ""
70
+ ],
71
+ "Edit": [
72
+ "Upravit"
73
+ ],
74
+ "Edit %s": [
75
+ ""
76
+ ],
77
+ "Enabled": [
78
+ "Zapnuto"
79
+ ],
80
+ "Error": [
81
+ "Chyba"
82
+ ],
83
+ "Example: %s": [
84
+ ""
85
+ ],
86
+ "Export a webhook template to ERB": [
87
+ ""
88
+ ],
89
+ "General": [
90
+ "Obecné"
91
+ ],
92
+ "HTTP Content Type": [
93
+ ""
94
+ ],
95
+ "HTTP Headers": [
96
+ ""
97
+ ],
98
+ "HTTP Method": [
99
+ ""
100
+ ],
101
+ "If unchecked, the webhook will be inactive": [
102
+ ""
103
+ ],
104
+ "Import a webhook template": [
105
+ ""
106
+ ],
107
+ "List Webhooks": [
108
+ ""
109
+ ],
110
+ "List available events for subscription": [
111
+ ""
112
+ ],
113
+ "List webhook templates": [
114
+ ""
115
+ ],
116
+ "Name": [
117
+ "Název"
118
+ ],
119
+ "No Results": [
120
+ ""
121
+ ],
122
+ "Optional CAs in PEM format concatenated to verify the receiver's SSL certificate": [
123
+ ""
124
+ ],
125
+ "Optional. Must be a JSON object (ERB allowed)": [
126
+ ""
127
+ ],
128
+ "Password": [
129
+ ""
130
+ ],
131
+ "Proxy Authorization": [
132
+ ""
133
+ ],
134
+ "Show Webhook details": [
135
+ ""
136
+ ],
137
+ "Show webhook template details": [
138
+ ""
139
+ ],
140
+ "Snippet": [
141
+ ""
142
+ ],
143
+ "Start typing to search": [
144
+ ""
145
+ ],
146
+ "Subscribe to": [
147
+ ""
148
+ ],
149
+ "Target URL": [
150
+ ""
151
+ ],
152
+ "Target URL that should be called by Foreman (ERB allowed).": [
153
+ ""
154
+ ],
155
+ "Template": [
156
+ ""
157
+ ],
158
+ "Template contents including metadata": [
159
+ ""
160
+ ],
161
+ "Template name": [
162
+ ""
163
+ ],
164
+ "This template is locked for editing.": [
165
+ ""
166
+ ],
167
+ "Try to create a new webhook": [
168
+ ""
169
+ ],
170
+ "Type": [
171
+ "Typ"
172
+ ],
173
+ "URL must be valid and schema must be one of: %s": [
174
+ ""
175
+ ],
176
+ "Uncheck this option to disable validation of the receiver's SSL certificate": [
177
+ ""
178
+ ],
179
+ "Update a Webhook": [
180
+ ""
181
+ ],
182
+ "Update a webhook template": [
183
+ ""
184
+ ],
185
+ "User": [
186
+ "Uživatel"
187
+ ],
188
+ "Verify SSL": [
189
+ "Ověřit SSL"
190
+ ],
191
+ "Webhook": [
192
+ ""
193
+ ],
194
+ "Webhook %s was successfully deleted": [
195
+ ""
196
+ ],
197
+ "Webhook Templates": [
198
+ ""
199
+ ],
200
+ "Webhook was successfully created.": [
201
+ ""
202
+ ],
203
+ "Webhook was successfully updated.": [
204
+ ""
205
+ ],
206
+ "WebhookTemplate|Locked": [
207
+ ""
208
+ ],
209
+ "WebhookTemplate|Name": [
210
+ ""
211
+ ],
212
+ "WebhookTemplate|Snippet": [
213
+ ""
214
+ ],
215
+ "Webhooks": [
216
+ ""
217
+ ],
218
+ "Whether or not the template is added automatically to new organizations and locations": [
219
+ ""
220
+ ],
221
+ "Whether or not the template is locked for editing": [
222
+ ""
223
+ ],
224
+ "X509 Certification Authorities": [
225
+ "X509 certifikační autority"
226
+ ],
227
+ "X509 Certification Authorities concatenated in PEM format": [
228
+ ""
229
+ ],
230
+ "You are about to delete %s. Are you sure?": [
231
+ ""
232
+ ],
233
+ "is required": [
234
+ ""
235
+ ]
236
+ }
237
+ }
238
+ };