[ 
https://issues.apache.org/jira/browse/ARTEMIS-2901?focusedWorklogId=484347&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-484347
 ]

ASF GitHub Bot logged work on ARTEMIS-2901:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Sep/20 07:39
            Start Date: 15/Sep/20 07:39
    Worklog Time Spent: 10m 
      Work Description: brusdev commented on a change in pull request #3260:
URL: https://github.com/apache/activemq-artemis/pull/3260#discussion_r488452859



##########
File path: 
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/TempQueueNamespaceTest.java
##########
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.artemis.tests.integration.server;
+
+import org.apache.activemq.artemis.api.core.QueueConfiguration;
+import org.apache.activemq.artemis.api.core.SimpleString;
+import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
+import org.apache.activemq.artemis.tests.util.SingleServerTestBase;
+import org.apache.activemq.artemis.utils.RandomUtil;
+import org.junit.Test;
+
+public class TempQueueNamespaceTest extends SingleServerTestBase {
+
+   @Test
+   public void testTempQueueNamespace() throws Exception {
+      final String TEMP_QUEUE_NAMESPACE = "temp";
+      
server.getConfiguration().setTemporaryQueueNamespace(TEMP_QUEUE_NAMESPACE);
+      server.getAddressSettingsRepository().addMatch(TEMP_QUEUE_NAMESPACE + 
".#", new AddressSettings().setDefaultRingSize(10));
+      SimpleString queue = RandomUtil.randomSimpleString();
+      SimpleString address = RandomUtil.randomSimpleString();
+
+      session.createQueue(new 
QueueConfiguration(queue).setAddress(address).setDurable(false).setTemporary(true));
+
+      assertEquals(10, (long) 
server.locateQueue(queue).getQueueConfiguration().getRingSize());
+
+      session.close();
+   }
+
+   @Test
+   public void testTempQueueNamespaceNegative() throws Exception {

Review comment:
       What is the purpose of this test?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 484347)
    Time Spent: 20m  (was: 10m)

> Support namespace for temporary queues
> --------------------------------------
>
>                 Key: ARTEMIS-2901
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2901
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> For some protocols & APIs in order to have address settings applied to 
> temporary queues only the default match everything filter {{#}} can be used. 
> We need a special name space for temporary queues that specific address 
> settings can be applied only to them and not any others.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to