add tests
This commit is contained in:
17
xt/lib/App/NetdiscoX/Worker/Plugin/TestFive.pm
Normal file
17
xt/lib/App/NetdiscoX/Worker/Plugin/TestFive.pm
Normal file
@@ -0,0 +1,17 @@
|
||||
package App::NetdiscoX::Worker::Plugin::TestFive;
|
||||
|
||||
use Dancer ':syntax';
|
||||
use App::Netdisco::Worker::Plugin;
|
||||
use aliased 'App::Netdisco::Worker::Status';
|
||||
|
||||
# info 'test: add to an action';
|
||||
|
||||
register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
||||
return Status->error('NOT OK: additional worker at SNMP level.');
|
||||
});
|
||||
|
||||
register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
||||
return Status->done('OK: SNMP driver is successful.');
|
||||
});
|
||||
|
||||
true;
|
||||
Reference in New Issue
Block a user