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

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

                Author: ASF GitHub Bot
            Created on: 03/Nov/22 17:26
            Start Date: 03/Nov/22 17:26
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #4246:
URL: https://github.com/apache/activemq-artemis/pull/4246#discussion_r1013209994


##########
tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/upgradeTest/UpgradeTest.java:
##########
@@ -0,0 +1,72 @@
+/*
+ * 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
+ * <br>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <br>
+ * 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.smoke.upgradeTest;
+
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.MessageConsumer;
+import javax.jms.MessageProducer;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import java.io.File;
+
+import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
+import org.apache.activemq.artemis.tests.util.CFUtil;
+import org.apache.activemq.artemis.util.ServerUtil;
+import org.apache.activemq.artemis.utils.RandomUtil;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+/** This test is making sure the upgrade command would be able to upgrade a 
test I created with artemis 2.25.0 */
+public class UpgradeTest extends SmokeTestBase {

Review Comment:
   I have added a test where I compare the output, and an actual upgrade 
running. doing that for both linux, and windows (although for windows I just 
compare the output of course).





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

    Worklog Id:     (was: 823152)
    Time Spent: 1h  (was: 50m)

> Upgrade command
> ---------------
>
>                 Key: ARTEMIS-4081
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4081
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.27.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> We should add a command to upgrade an instance from an older broker.
> ./artemis upgrade <old-instance> should update the required scripts and files 
> to reflect a new broker home.
> The touched files should be backed up for easy recovering in case of failure 
> and also for the user to compare eventual configuration they might have done 
> on scripts.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to