6 |
Webhooks
7 |
8 |
9 | - The Webhooks app is enabled
10 |
11 | - The secret used for signing POST requests is defined
12 |
13 | - The secret used for signing POST requests is not defined
14 |
15 |
16 | - The curl command appears to be working
17 |
18 | curl --help
when called via exec()
returns a non-0 exit code
19 |
20 |
21 |
Active Events with corresponding Webhook URLs:
22 |
23 | $eventUrl) : ?>
24 | - :
25 |
26 |
27 |
28 |
Inactive Events with corresponding config.php names:
29 |
30 | $configName) : ?>
31 | - :
32 |
33 |
34 |
You can enable the inactive events by providing their webhook URLs in config.php
35 |
36 |
--------------------------------------------------------------------------------
/tests/Integration/AppTest.php:
--------------------------------------------------------------------------------
1 | container = $app->getContainer();
22 | }
23 |
24 | public function testAppInstalled() {
25 | $appManager = $this->container->query('OCP\App\IAppManager');
26 | $this->assertTrue($appManager->isInstalled('webhooks'));
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/tests/bootstrap.php:
--------------------------------------------------------------------------------
1 | addValidRoot(OC::$SERVERROOT . '/tests');
11 |
12 | // Fix for "Autoload path not allowed: .../webhooks/tests/testcase.php"
13 | \OC_App::loadApp('webhooks');
14 |
15 | if(!class_exists('PHPUnit_Framework_TestCase')) {
16 | require_once('PHPUnit/Autoload.php');
17 | }
18 |
19 | OC_Hook::clear();
20 |
--------------------------------------------------------------------------------
/webpack.js:
--------------------------------------------------------------------------------
1 | const webpackConfig = require('@nextcloud/webpack-vue-config')
2 |
3 | module.exports = webpackConfig
--------------------------------------------------------------------------------