| | 586 | |
|---|
| | 587 | diag("Driving HoneyClient::Agent::Driver::Browser::IE with no parameters and artificial changes..."); |
|---|
| | 588 | |
|---|
| | 589 | # Drive the Agent using IE. |
|---|
| | 590 | $som = $stub->drive(driver_name => "HoneyClient::Agent::Driver::Browser::IE"); |
|---|
| | 591 | |
|---|
| | 592 | # Verify changes. |
|---|
| | 593 | $changes = $som->result(); |
|---|
| | 594 | |
|---|
| | 595 | # XXX: Remove this. |
|---|
| | 596 | use Data::Dumper; |
|---|
| | 597 | diag(Dumper($changes)); |
|---|
| | 598 | |
|---|
| | 599 | # Check to see if the drive operation completed properly. |
|---|
| | 600 | ok($changes, "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); |
|---|
| | 601 | ok(exists($changes->{'status'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); |
|---|
| | 602 | ok(exists($changes->{'driven_at'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); |
|---|
| | 603 | ok(exists($changes->{'fingerprint'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); |
|---|
| | 604 | |
|---|
| | 605 | # Check that os_processes is empty. |
|---|
| | 606 | ok(scalar(@{$changes->{'fingerprint'}->{os_processes}}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); |
|---|