Bug 851650 - Create unit tests for inventory sync
Summary: Create unit tests for inventory sync
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server, Plugin Container
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 851634
TreeView+ depends on / blocked
 
Reported: 2012-08-24 15:25 UTC by John Sanda
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Sanda 2012-08-24 15:25:02 UTC
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:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


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