summaryrefslogtreecommitdiff
path: root/qpid/java/systests
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2013-03-10 22:33:43 +0000
committerRobert Gemmell <robbie@apache.org>2013-03-10 22:33:43 +0000
commit54bfebd60800c46458072769555d86402fd830db (patch)
tree10d1a78ff2fe712888d6b2eb8c786cbfe686a9a5 /qpid/java/systests
parent66992683e1310209c24435c8ff1d0ced0e94cd5a (diff)
downloadqpid-python-54bfebd60800c46458072769555d86402fd830db.tar.gz
QPID-4596: remove manipulation of store files, and vhost store type etc.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1454943 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/systests')
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java69
1 files changed, 0 insertions, 69 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java
index c5dfb84d40..c65f8bbd08 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java
@@ -206,75 +206,6 @@ public class VirtualHostRestTest extends QpidRestTestCase
assertEquals("Unexpected config path", configPath, hostDetails.get(VirtualHost.CONFIG_PATH));
}
- public void testUpdateInManagementMode() throws Exception
- {
- String hostToUpdate = TEST3_VIRTUALHOST;
- Map<String, Object> hostDetails = getRestTestHelper().getJsonAsSingletonList("/rest/virtualhost/" + hostToUpdate);
- Asserts.assertVirtualHost(hostToUpdate, hostDetails);
- String configPath = (String)hostDetails.get(VirtualHost.CONFIG_PATH);
- String storeType = (String)hostDetails.get(VirtualHost.STORE_TYPE);
- assertNotNull("Unexpected host configuration", configPath);
- assertNotNull("Unexpected store type", storeType);
-
- String queueName = getTestQueueName();
- if (isBrokerStorePersistent())
- {
- String storePath = (String)hostDetails.get(VirtualHost.STORE_PATH);
- assertNotNull("Unexpected store path", storePath);
-
- // add a durable queue to the host
- // in order to test whether host store is copied into a new location
- Map<String, Object> queueData = new HashMap<String, Object>();
- queueData.put(Queue.NAME, queueName);
- queueData.put(Queue.DURABLE, Boolean.TRUE);
- int response = getRestTestHelper().submitRequest("/rest/queue/" + hostToUpdate + "/" + queueName, "PUT", queueData);
- assertEquals("Unexpected response code for queue creation", 201, response);
- }
-
- // stop broker as it is running not in management mode
- stopBroker(0);
-
- // start broker in management mode
- startBroker(0, true);
-
- String newStoreType = getTestProfileMessageStoreType();
- String newStorePath = getStoreLocation(hostToUpdate);
- Map<String, Object> newAttributes = new HashMap<String, Object>();
- newAttributes.put(VirtualHost.NAME, hostToUpdate);
- newAttributes.put(VirtualHost.STORE_TYPE, newStoreType);
- newAttributes.put(VirtualHost.STORE_PATH, newStorePath);
- newAttributes.put(VirtualHost.CONFIG_PATH, null);
-
- try
- {
- int response = getRestTestHelper().submitRequest("/rest/virtualhost/" + hostToUpdate, "PUT", newAttributes);
- assertEquals("Unexpected response code for virtual host update", 200, response);
-
- restartBroker();
-
- hostDetails = getRestTestHelper().getJsonAsSingletonList("/rest/virtualhost/" + hostToUpdate);
- Asserts.assertVirtualHost(hostToUpdate, hostDetails);
- assertEquals("Unexpected config type", newStoreType, hostDetails.get(VirtualHost.STORE_TYPE));
-
- if (isBrokerStorePersistent())
- {
- assertEquals("Unexpected config path", newStorePath, hostDetails.get(VirtualHost.STORE_PATH));
-
- // the virtual host store should be copied into a new location
- // check existence of the queue
- List<Map<String, Object>> queues = getRestTestHelper().getJsonAsList("/rest/queue/" + hostToUpdate + "/" + queueName);
- assertEquals("Queue is not found. Looks like message store was not copied", 1, queues.size());
- }
- }
- finally
- {
- if (newStorePath != null)
- {
- FileUtils.delete(new File(newStorePath), true);
- }
- }
- }
-
public void testPutCreateQueue() throws Exception
{
String queueName = getTestQueueName();