leonjza / PHPNessusNG

PHP wrapper functions for interfacing with the Nessus V6.x API
MIT License
15 stars 9 forks source link

templateList() test failure #5

Closed leonjza closed 10 years ago

leonjza commented 10 years ago

As per the email that I have received:

While adding a test for the proposed reportHosts method I noticed some templates do not contain the rrules field.

[ERROR] 2014-10-03 11:27:51 - templateList() test failed. Error: Undefined property: stdClass::$rrules in PHPNessusNG/src/Nessus/NessusInterface.php line: 382

stdClass Object
(
    [policy_name] => Network Devices Policy
    [type] => local
    [rrules] => FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=01
    [starttime] => 20130801T100000
    [name] => Network Devices Template
    [uuid] => template-a6cd277a-b10b-a4ee-ce49-1c95ee61cfa12afff52e8861de99
    [owner] => admin
    [shared] => 0
    [user_permissions] => 128
    [timestamp] => 1412121635
    [last_modification_date] => 1412121635
    [creation_date] => 1408081809
    [owner_id] => 1
    [id] => 16
)
stdClass Object
(
    [policy_name] => Test Credentialled Scan
    [type] => local
    [name] => Test Windows Credentialled Scan
    [uuid] => template-3bf50cb3-a5bc-58d4-cb06-0d9a75daba7a2e3957c351c0a913
    [owner] => admin
    [shared] => 0
    [user_permissions] => 128
    [timestamp] => 1408081809
    [last_modification_date] => 1408081809
    [creation_date] => 1408081809
    [owner_id] => 1
    [id] => 17
)