public class ActionChainHandlerTest extends BaseHandlerTestCase
admin, adminKey, regular, regularKey, satAdmin, satAdminKey
Constructor and Description |
---|
ActionChainHandlerTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Called once per test method.
|
protected void |
tearDown()
Tears down the fixture, and closes the HibernateSession.
|
void |
testAcAddErrataUpdate()
Test Errata update command schedule.
|
void |
testAcAddSystemReboot()
Test system reboot command schedule.
|
void |
testAcChainActionsContent()
Test chain actions content.
|
void |
testAcCreateActionChain()
Test action chain create.
|
void |
testAcCreateActionChainFailureOnEmptyName()
Test creating an action chain failure on an empty chain name.
|
void |
testAcDeployConfiguration()
Deploy configuration.
|
void |
testAcDeployConfigurationFailureNoChain()
Deploy configuration should fail if no chain label has been passed.
|
void |
testAcListChains()
Test list chains.
|
void |
testAcPackageInstallation()
Test package installation schedule.
|
void |
testAcPackageInstallationFailed()
Test package installation schedule.
|
void |
testAcPackageRemoval()
Test package removal.
|
void |
testAcPackageRemovalFailureOnEmpty()
Test package removal failure when empty list of packages is passed.
|
void |
testAcPackageRemovalFailureOnUnknownPackages()
Test package removal failure when list of unknown packages is passed.
|
void |
testAcPackageUpgrade()
Test package upgrade.
|
void |
testAcPackageUpgradeOnEmpty()
Test package upgrade with an empty list.
|
void |
testAcPackageUpgradeOnUnknown()
Test package upgrade with an empty list.
|
void |
testAcPackageVerify()
Test package verification.
|
void |
testAcPackageVerifyFailureOnEmpty()
Test package verification failure when empty list is passed.
|
void |
testAcPackageVerifyFailureOnUnknown()
Test package verification failure when unknown package is verified.
|
void |
testAcRemoteCommand()
Test schedule remote command.
|
void |
testAcRemoveActions()
Test actions removal.
|
void |
testAcRemoveActionsEmpty()
Test empty list does not remove any actions, schedule does not happening.
|
void |
testAcRemoveActionsUnknownChain()
Test removal of the actions on the unknown chain.
|
void |
testAcRemoveActionsUnknownChainActions()
Test unknown list of actions on certain chain does not remove anything
and schedule should not happen.
|
void |
testAcRemoveChain()
Test chains removal.
|
void |
testAcRemoveChainsFailureOnEmpty()
Test chains removal failure when empty chain is passed.
|
void |
testAcRemoveChainsFailureOnUnknown()
Test chains removal failure when unknown chain is passed.
|
void |
testAcRenameActionChain()
Rename an action chain.
|
void |
testAcRenameActionChainFailureOnEmptyNewLabel()
Rename an action chain should fail when new label is missing.
|
void |
testAcRenameActionChainFailureOnEmptyPreviousLabel()
Rename an action chain should fail when previous label is missing.
|
void |
testAcRenameActionChainFailureOnSameLabel()
Rename an action chain should fail when renaming to the same label.
|
void |
testAcScheduleOnTime()
Test schedule on precise time.
|
void |
testAcScheduleOnTimeFailureNoChain()
Test schedule on precise time.
|
addRole
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public void setUp() throws java.lang.Exception
setUp
in class BaseHandlerTestCase
java.lang.Exception
- if an error occurs during setup.protected void tearDown() throws java.lang.Exception
tearDown
in class RhnBaseTestCase
java.lang.Exception
TestCase.tearDown()
,
HibernateFactory.closeSession()
public void testAcCreateActionChain() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcCreateActionChainFailureOnEmptyName() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcAddSystemReboot() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcAddErrataUpdate() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcPackageInstallation() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcPackageInstallationFailed() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcPackageRemoval() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcPackageRemovalFailureOnEmpty() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcPackageRemovalFailureOnUnknownPackages() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcListChains()
public void testAcChainActionsContent()
public void testAcRemoveChain()
public void testAcRemoveChainsFailureOnEmpty()
public void testAcRemoveChainsFailureOnUnknown()
public void testAcRemoveActions()
public void testAcRemoveActionsEmpty()
public void testAcRemoveActionsUnknownChain()
public void testAcRemoveActionsUnknownChainActions()
public void testAcPackageUpgrade() throws java.lang.Exception
java.lang.Exception
- if something bad happenspublic void testAcPackageUpgradeOnEmpty()
public void testAcPackageUpgradeOnUnknown()
public void testAcPackageVerify()
public void testAcPackageVerifyFailureOnEmpty()
public void testAcPackageVerifyFailureOnUnknown()
public void testAcRemoteCommand()
public void testAcScheduleOnTime()
public void testAcScheduleOnTimeFailureNoChain()
public void testAcDeployConfiguration()
public void testAcDeployConfigurationFailureNoChain()
public void testAcRenameActionChain()
public void testAcRenameActionChainFailureOnSameLabel()
public void testAcRenameActionChainFailureOnEmptyPreviousLabel()
public void testAcRenameActionChainFailureOnEmptyNewLabel()