foreman_webhooks 3.2.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_webhooks/locale/ca/foreman_webhooks.js +39 -0
  3. data/app/assets/javascripts/foreman_webhooks/locale/cs_CZ/foreman_webhooks.js +39 -0
  4. data/app/assets/javascripts/foreman_webhooks/locale/de/foreman_webhooks.js +39 -0
  5. data/app/assets/javascripts/foreman_webhooks/locale/en/foreman_webhooks.js +15 -0
  6. data/app/assets/javascripts/foreman_webhooks/locale/en_GB/foreman_webhooks.js +39 -0
  7. data/app/assets/javascripts/foreman_webhooks/locale/es/foreman_webhooks.js +39 -0
  8. data/app/assets/javascripts/foreman_webhooks/locale/fr/foreman_webhooks.js +39 -0
  9. data/app/assets/javascripts/foreman_webhooks/locale/it/foreman_webhooks.js +39 -0
  10. data/app/assets/javascripts/foreman_webhooks/locale/ja/foreman_webhooks.js +39 -0
  11. data/app/assets/javascripts/foreman_webhooks/locale/ka/foreman_webhooks.js +39 -0
  12. data/app/assets/javascripts/foreman_webhooks/locale/ko/foreman_webhooks.js +39 -0
  13. data/app/assets/javascripts/foreman_webhooks/locale/pl/foreman_webhooks.js +39 -0
  14. data/app/assets/javascripts/foreman_webhooks/locale/pt_BR/foreman_webhooks.js +39 -0
  15. data/app/assets/javascripts/foreman_webhooks/locale/ru/foreman_webhooks.js +39 -0
  16. data/app/assets/javascripts/foreman_webhooks/locale/zh_CN/foreman_webhooks.js +39 -0
  17. data/app/assets/javascripts/foreman_webhooks/locale/zh_TW/foreman_webhooks.js +39 -0
  18. data/app/models/webhook.rb +1 -0
  19. data/app/subscribers/foreman_webhooks/event_subscriber.rb +2 -0
  20. data/db/migrate/20201014115147_rename_ca_file_column.rb +1 -1
  21. data/lib/foreman_webhooks/engine.rb +62 -62
  22. data/lib/foreman_webhooks/version.rb +1 -1
  23. data/locale/ca/foreman_webhooks.po +39 -1
  24. data/locale/cs_CZ/foreman_webhooks.po +39 -1
  25. data/locale/de/foreman_webhooks.po +39 -1
  26. data/locale/en/foreman_webhooks.po +15 -0
  27. data/locale/en_GB/foreman_webhooks.po +39 -1
  28. data/locale/es/foreman_webhooks.po +39 -1
  29. data/locale/fr/foreman_webhooks.po +39 -1
  30. data/locale/it/foreman_webhooks.po +39 -1
  31. data/locale/ja/foreman_webhooks.po +39 -1
  32. data/locale/ka/foreman_webhooks.po +39 -1
  33. data/locale/ko/foreman_webhooks.po +39 -1
  34. data/locale/pl/foreman_webhooks.po +39 -1
  35. data/locale/pt_BR/foreman_webhooks.po +39 -1
  36. data/locale/ru/foreman_webhooks.po +39 -1
  37. data/locale/zh_CN/foreman_webhooks.po +39 -1
  38. data/locale/zh_TW/foreman_webhooks.po +39 -1
  39. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 457b89d953e3410524cd3ad5aee4d63ca47192037523ee2c606e69d291e0e8e2
4
- data.tar.gz: 9e43a93a35c44a7e8d0d3fdcecef2f4196120645ffe9b0517fba5a3ded221620
3
+ metadata.gz: d31a44c5d43532cf2bd91a43983a68270b13cac700c09bb6083bef70abf82786
4
+ data.tar.gz: 5da2feca3700415bf34b4f805f90435446e075a20f129910c8dc9a7d47870fab
5
5
  SHA512:
6
- metadata.gz: 7dca14e67eb8d98c5677ecdbb0e11a1a580fa9d6499f4c164aa263668a7709cee10441cd552fb4f0d2b9a74965520d0e4f29f7c311020817e70d4de3af96ca71
7
- data.tar.gz: 939a492793d040c4555e73eedf6dc8a66cc4c72121addfdc3ac659ba5642599ad6960c1a3182299e0e98321d7dec52e524b52450d11d0eb5766e546e612a387c
6
+ metadata.gz: 79a11aef6cc04c587094291e6f5023552ada7ad42bd9588132dc5627ffe5e0010b894525aff2365c95fbc89b582a71df048d4889b351a9f21d9efa1fc82b87a9
7
+ data.tar.gz: 7ada02543ac32bc498e722ece8a8e04cca4eed29f04d78459217c42eab7c6e72f0a95c29940cd6ca38c26c8067e05e4415b63449cca1d678c84cf97928f51a88
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -128,6 +131,12 @@
128
131
  "Password": [
129
132
  ""
130
133
  ],
134
+ "Payload": [
135
+ ""
136
+ ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
131
140
  "Proxy Authorization": [
132
141
  ""
133
142
  ],
@@ -161,6 +170,18 @@
161
170
  "Template name": [
162
171
  ""
163
172
  ],
173
+ "Test": [
174
+ ""
175
+ ],
176
+ "Test a Webhook": [
177
+ ""
178
+ ],
179
+ "Test payload will be sent as is. Cant be a JSON object": [
180
+ ""
181
+ ],
182
+ "Test webhook": [
183
+ ""
184
+ ],
164
185
  "This template is locked for editing.": [
165
186
  ""
166
187
  ],
@@ -191,12 +212,21 @@
191
212
  "Webhook": [
192
213
  ""
193
214
  ],
215
+ "Webhook %s test was successful": [
216
+ ""
217
+ ],
194
218
  "Webhook %s was successfully deleted": [
195
219
  ""
196
220
  ],
197
221
  "Webhook Templates": [
198
222
  ""
199
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
227
+ "Webhook test failed: %s": [
228
+ ""
229
+ ],
200
230
  "Webhook was successfully created.": [
201
231
  ""
202
232
  ],
@@ -221,6 +251,9 @@
221
251
  "Whether or not the template is locked for editing": [
222
252
  ""
223
253
  ],
254
+ "Will be sent as is": [
255
+ ""
256
+ ],
224
257
  "X509 Certification Authorities": [
225
258
  ""
226
259
  ],
@@ -230,6 +263,12 @@
230
263
  "You are about to delete %s. Are you sure?": [
231
264
  ""
232
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
233
272
  "is required": [
234
273
  ""
235
274
  ]
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -128,6 +131,12 @@
128
131
  "Password": [
129
132
  ""
130
133
  ],
134
+ "Payload": [
135
+ ""
136
+ ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
131
140
  "Proxy Authorization": [
132
141
  ""
133
142
  ],
@@ -161,6 +170,18 @@
161
170
  "Template name": [
162
171
  ""
163
172
  ],
173
+ "Test": [
174
+ ""
175
+ ],
176
+ "Test a Webhook": [
177
+ ""
178
+ ],
179
+ "Test payload will be sent as is. Cant be a JSON object": [
180
+ ""
181
+ ],
182
+ "Test webhook": [
183
+ ""
184
+ ],
164
185
  "This template is locked for editing.": [
165
186
  ""
166
187
  ],
@@ -191,12 +212,21 @@
191
212
  "Webhook": [
192
213
  ""
193
214
  ],
215
+ "Webhook %s test was successful": [
216
+ ""
217
+ ],
194
218
  "Webhook %s was successfully deleted": [
195
219
  ""
196
220
  ],
197
221
  "Webhook Templates": [
198
222
  ""
199
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
227
+ "Webhook test failed: %s": [
228
+ ""
229
+ ],
200
230
  "Webhook was successfully created.": [
201
231
  ""
202
232
  ],
@@ -221,6 +251,9 @@
221
251
  "Whether or not the template is locked for editing": [
222
252
  ""
223
253
  ],
254
+ "Will be sent as is": [
255
+ ""
256
+ ],
224
257
  "X509 Certification Authorities": [
225
258
  "X509 certifikační autority"
226
259
  ],
@@ -230,6 +263,12 @@
230
263
  "You are about to delete %s. Are you sure?": [
231
264
  ""
232
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
233
272
  "is required": [
234
273
  ""
235
274
  ]
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -128,6 +131,12 @@
128
131
  "Password": [
129
132
  ""
130
133
  ],
134
+ "Payload": [
135
+ ""
136
+ ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
131
140
  "Proxy Authorization": [
132
141
  ""
133
142
  ],
@@ -161,6 +170,18 @@
161
170
  "Template name": [
162
171
  ""
163
172
  ],
173
+ "Test": [
174
+ ""
175
+ ],
176
+ "Test a Webhook": [
177
+ ""
178
+ ],
179
+ "Test payload will be sent as is. Cant be a JSON object": [
180
+ ""
181
+ ],
182
+ "Test webhook": [
183
+ ""
184
+ ],
164
185
  "This template is locked for editing.": [
165
186
  ""
166
187
  ],
@@ -191,12 +212,21 @@
191
212
  "Webhook": [
192
213
  ""
193
214
  ],
215
+ "Webhook %s test was successful": [
216
+ ""
217
+ ],
194
218
  "Webhook %s was successfully deleted": [
195
219
  ""
196
220
  ],
197
221
  "Webhook Templates": [
198
222
  ""
199
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
227
+ "Webhook test failed: %s": [
228
+ ""
229
+ ],
200
230
  "Webhook was successfully created.": [
201
231
  ""
202
232
  ],
@@ -221,6 +251,9 @@
221
251
  "Whether or not the template is locked for editing": [
222
252
  ""
223
253
  ],
254
+ "Will be sent as is": [
255
+ ""
256
+ ],
224
257
  "X509 Certification Authorities": [
225
258
  "X509-Zertifizierungsstellen (CA)"
226
259
  ],
@@ -230,6 +263,12 @@
230
263
  "You are about to delete %s. Are you sure?": [
231
264
  ""
232
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
233
272
  "is required": [
234
273
  ""
235
274
  ]
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -131,6 +134,9 @@
131
134
  "Payload": [
132
135
  ""
133
136
  ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
134
140
  "Proxy Authorization": [
135
141
  ""
136
142
  ],
@@ -215,6 +221,9 @@
215
221
  "Webhook Templates": [
216
222
  ""
217
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
218
227
  "Webhook test failed: %s": [
219
228
  ""
220
229
  ],
@@ -254,6 +263,12 @@
254
263
  "You are about to delete %s. Are you sure?": [
255
264
  ""
256
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
257
272
  "is required": [
258
273
  ""
259
274
  ]
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -128,6 +131,12 @@
128
131
  "Password": [
129
132
  ""
130
133
  ],
134
+ "Payload": [
135
+ ""
136
+ ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
131
140
  "Proxy Authorization": [
132
141
  ""
133
142
  ],
@@ -161,6 +170,18 @@
161
170
  "Template name": [
162
171
  ""
163
172
  ],
173
+ "Test": [
174
+ ""
175
+ ],
176
+ "Test a Webhook": [
177
+ ""
178
+ ],
179
+ "Test payload will be sent as is. Cant be a JSON object": [
180
+ ""
181
+ ],
182
+ "Test webhook": [
183
+ ""
184
+ ],
164
185
  "This template is locked for editing.": [
165
186
  ""
166
187
  ],
@@ -191,12 +212,21 @@
191
212
  "Webhook": [
192
213
  ""
193
214
  ],
215
+ "Webhook %s test was successful": [
216
+ ""
217
+ ],
194
218
  "Webhook %s was successfully deleted": [
195
219
  ""
196
220
  ],
197
221
  "Webhook Templates": [
198
222
  ""
199
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
227
+ "Webhook test failed: %s": [
228
+ ""
229
+ ],
200
230
  "Webhook was successfully created.": [
201
231
  ""
202
232
  ],
@@ -221,6 +251,9 @@
221
251
  "Whether or not the template is locked for editing": [
222
252
  ""
223
253
  ],
254
+ "Will be sent as is": [
255
+ ""
256
+ ],
224
257
  "X509 Certification Authorities": [
225
258
  "X509 Certification Authorities"
226
259
  ],
@@ -230,6 +263,12 @@
230
263
  "You are about to delete %s. Are you sure?": [
231
264
  ""
232
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
233
272
  "is required": [
234
273
  ""
235
274
  ]
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -128,6 +131,12 @@
128
131
  "Password": [
129
132
  ""
130
133
  ],
134
+ "Payload": [
135
+ ""
136
+ ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
131
140
  "Proxy Authorization": [
132
141
  ""
133
142
  ],
@@ -161,6 +170,18 @@
161
170
  "Template name": [
162
171
  ""
163
172
  ],
173
+ "Test": [
174
+ ""
175
+ ],
176
+ "Test a Webhook": [
177
+ ""
178
+ ],
179
+ "Test payload will be sent as is. Cant be a JSON object": [
180
+ ""
181
+ ],
182
+ "Test webhook": [
183
+ ""
184
+ ],
164
185
  "This template is locked for editing.": [
165
186
  ""
166
187
  ],
@@ -191,12 +212,21 @@
191
212
  "Webhook": [
192
213
  ""
193
214
  ],
215
+ "Webhook %s test was successful": [
216
+ ""
217
+ ],
194
218
  "Webhook %s was successfully deleted": [
195
219
  ""
196
220
  ],
197
221
  "Webhook Templates": [
198
222
  ""
199
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
227
+ "Webhook test failed: %s": [
228
+ ""
229
+ ],
200
230
  "Webhook was successfully created.": [
201
231
  ""
202
232
  ],
@@ -221,6 +251,9 @@
221
251
  "Whether or not the template is locked for editing": [
222
252
  ""
223
253
  ],
254
+ "Will be sent as is": [
255
+ ""
256
+ ],
224
257
  "X509 Certification Authorities": [
225
258
  ""
226
259
  ],
@@ -230,6 +263,12 @@
230
263
  "You are about to delete %s. Are you sure?": [
231
264
  ""
232
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
233
272
  "is required": [
234
273
  "es necesario"
235
274
  ]
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -128,6 +131,12 @@
128
131
  "Password": [
129
132
  ""
130
133
  ],
134
+ "Payload": [
135
+ ""
136
+ ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
131
140
  "Proxy Authorization": [
132
141
  ""
133
142
  ],
@@ -161,6 +170,18 @@
161
170
  "Template name": [
162
171
  ""
163
172
  ],
173
+ "Test": [
174
+ ""
175
+ ],
176
+ "Test a Webhook": [
177
+ ""
178
+ ],
179
+ "Test payload will be sent as is. Cant be a JSON object": [
180
+ ""
181
+ ],
182
+ "Test webhook": [
183
+ ""
184
+ ],
164
185
  "This template is locked for editing.": [
165
186
  ""
166
187
  ],
@@ -191,12 +212,21 @@
191
212
  "Webhook": [
192
213
  ""
193
214
  ],
215
+ "Webhook %s test was successful": [
216
+ ""
217
+ ],
194
218
  "Webhook %s was successfully deleted": [
195
219
  ""
196
220
  ],
197
221
  "Webhook Templates": [
198
222
  ""
199
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
227
+ "Webhook test failed: %s": [
228
+ ""
229
+ ],
200
230
  "Webhook was successfully created.": [
201
231
  ""
202
232
  ],
@@ -221,6 +251,9 @@
221
251
  "Whether or not the template is locked for editing": [
222
252
  ""
223
253
  ],
254
+ "Will be sent as is": [
255
+ ""
256
+ ],
224
257
  "X509 Certification Authorities": [
225
258
  ""
226
259
  ],
@@ -230,6 +263,12 @@
230
263
  "You are about to delete %s. Are you sure?": [
231
264
  ""
232
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
233
272
  "is required": [
234
273
  "est requis"
235
274
  ]
@@ -104,6 +104,9 @@
104
104
  "Import a webhook template": [
105
105
  ""
106
106
  ],
107
+ "In case you are using dynamic URL (ERB template), this will not be rendered correctly due to the absence of a real object.": [
108
+ ""
109
+ ],
107
110
  "List Webhooks": [
108
111
  ""
109
112
  ],
@@ -128,6 +131,12 @@
128
131
  "Password": [
129
132
  ""
130
133
  ],
134
+ "Payload": [
135
+ ""
136
+ ],
137
+ "Please, note that this will not contain actual information or render the attached template.": [
138
+ ""
139
+ ],
131
140
  "Proxy Authorization": [
132
141
  ""
133
142
  ],
@@ -161,6 +170,18 @@
161
170
  "Template name": [
162
171
  ""
163
172
  ],
173
+ "Test": [
174
+ ""
175
+ ],
176
+ "Test a Webhook": [
177
+ ""
178
+ ],
179
+ "Test payload will be sent as is. Cant be a JSON object": [
180
+ ""
181
+ ],
182
+ "Test webhook": [
183
+ ""
184
+ ],
164
185
  "This template is locked for editing.": [
165
186
  ""
166
187
  ],
@@ -191,12 +212,21 @@
191
212
  "Webhook": [
192
213
  ""
193
214
  ],
215
+ "Webhook %s test was successful": [
216
+ ""
217
+ ],
194
218
  "Webhook %s was successfully deleted": [
195
219
  ""
196
220
  ],
197
221
  "Webhook Templates": [
198
222
  ""
199
223
  ],
224
+ "Webhook template not found while firing webhook '%s'. Possible organization/location mismatch in the webhook template?": [
225
+ ""
226
+ ],
227
+ "Webhook test failed: %s": [
228
+ ""
229
+ ],
200
230
  "Webhook was successfully created.": [
201
231
  ""
202
232
  ],
@@ -221,6 +251,9 @@
221
251
  "Whether or not the template is locked for editing": [
222
252
  ""
223
253
  ],
254
+ "Will be sent as is": [
255
+ ""
256
+ ],
224
257
  "X509 Certification Authorities": [
225
258
  ""
226
259
  ],
@@ -230,6 +263,12 @@
230
263
  "You are about to delete %s. Are you sure?": [
231
264
  ""
232
265
  ],
266
+ "You are about to test %s webhook.": [
267
+ ""
268
+ ],
269
+ "You can specify below a custom payload to test the webhook with.": [
270
+ ""
271
+ ],
233
272
  "is required": [
234
273
  ""
235
274
  ]