Bug 785270

Summary: test some bundle use-cases that aren't currently covered
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: ProvisioningAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:25:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Mazzitelli 2012-01-27 20:17:45 UTC
I think these use-cases currently work as advertised, but we don't have unit tests for these. I want to write unit tests to confirm this works and to have the tests for future.

TEST 1

1) deploy a bundle
2) in the destination directory, add a new file not part of the bundle (call it foo.txt)
3) deploy the same bundle from before - DO NOT make it a clean deployment

TEST 2

Same as TEST 1, only in step 3, DO make it a clean deployment (check the "clean" checkbox in the bundle deploy wizard)

The results should be the same. The foo.txt should be removed from the destination directory - it should not be left after the second deployment completes.

Comment 1 John Mazzitelli 2012-01-27 21:09:27 UTC
git commit to master: 2dc60e4

org.rhq.core.util.updater.SimpleDeployerTest

testNoOriginalWithCurrentNoNew
testNoOriginalWithCurrentNoNew_Clean()
testNoOriginalWithCurrentNoNew_DryRun
testNoOriginalWithCurrentNoNew_DryRun_Clean

this is just code changes to unit tests. However, if QA wants to test this, try the test cases given in the description.

Comment 2 Mike Foley 2012-01-31 18:29:00 UTC
regression tested Bundles: https://tcms.engineering.redhat.com/run/33098/   ---COMPLETE

Comment 3 Mike Foley 2012-02-07 19:25:44 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE