public class SsmOperationManagerTest extends RhnBaseTestCase
Constructor and Description |
---|
SsmOperationManagerTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp()
Called once per test method.
|
void |
testAssociateServersWithFailedOperation()
Tests a failed server-operation association.
|
void |
testAssociateServersWithOperation() |
void |
testAssociateServersWithOperationDuplicateServer()
This test should ensure that only one association is created a single set references
the same server more than once (this could occur if the second element in the set
differs).
|
void |
testAssociateServersWithOperationMultipleSets()
This test should ensure that if the associate method is called with two sets
that may both contain one or more of the same server, only one entry is made
for the server.
|
void |
testCreateAndAllOperations() |
void |
testCreateAndAllOperations2() |
void |
testCreateAndFindOperation() |
void |
testCreateCompleteAndInProgressOperations() |
void |
testFindNonExistentOperation() |
void |
testFindServerDataForOperation() |
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload, tearDown
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
protected void setUp() throws java.lang.Exception
RhnBaseTestCase
setUp
in class RhnBaseTestCase
java.lang.Exception
- if an error occurs during setup.public void testCreateAndAllOperations() throws java.lang.Exception
java.lang.Exception
public void testCreateAndAllOperations2() throws java.lang.Exception
java.lang.Exception
public void testCreateCompleteAndInProgressOperations() throws java.lang.Exception
java.lang.Exception
public void testCreateAndFindOperation() throws java.lang.Exception
java.lang.Exception
public void testFindNonExistentOperation()
public void testFindServerDataForOperation() throws java.lang.Exception
java.lang.Exception
public void testAssociateServersWithOperation() throws java.lang.Exception
java.lang.Exception
public void testAssociateServersWithOperationMultipleSets() throws java.lang.Exception
The driving use case behind this is the scenario where a server is subscribed to one channel and unsubscribed from another in the same SSM batch task.
java.lang.Exception
- if there is an error running the testpublic void testAssociateServersWithOperationDuplicateServer() throws java.lang.Exception
The driving use case behind this is the scenario where a server is subscribed to two different channels in the same SSM batch task.
java.lang.Exception
- if there is an error running the testpublic void testAssociateServersWithFailedOperation() throws java.lang.Exception
java.lang.Exception
- when things go wrong