Bug 851650 - Create unit tests for inventory sync
Create unit tests for inventory sync
Status: NEW
Product: RHQ Project
Classification: Other
Component: Core Server, Plugin Container (Show other bugs)
Unspecified Unspecified
unspecified Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
Depends On:
Blocks: 851634
  Show dependency treegraph
Reported: 2012-08-24 11:25 EDT by John Sanda
Modified: 2012-08-24 11:25 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Sanda 2012-08-24 11:25:02 EDT
Description of problem:
These tests will involve a combination of state and behavioral verification. The state verification should be pretty similar to the verification done in the integration tests created for bug 851640 - making sure the local inventory matches expected values. The behavioral verification will cover server-side calls. For example, when the agent is merging a unknown resource into its inventory (as would be the case when starting with --purgedata), we want to verify that a call is made to MeasurementServerService to obtain the metric collection schedules for that resource.

On the agent side, we want to add tests for InventoryManager.synchronizeInventory and methods called from there within. Tests should also include coverage for DriftSyncManager, and the relevant parts of MeasurementManager and DriftManager. It may make sense to create separate bugs for some of these different parts as they cover a good bit of code.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Note You need to log in before you can comment on or make changes to this bug.