Skip to content

Commit 321e444

Browse files
committed
ARTEMIS-5835: update to artemis-console 1.5.0
Updates naming details relevant to ARTEMIS-5816 also.
1 parent 2df59c5 commit 321e444

File tree

8 files changed

+24
-21
lines changed

8 files changed

+24
-21
lines changed

artemis-console/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</dependency>
4040

4141
<dependency>
42-
<groupId>org.apache.activemq</groupId>
42+
<groupId>org.apache.artemis</groupId>
4343
<artifactId>artemis-console-war</artifactId>
4444
<type>war</type>
4545
</dependency>
@@ -86,7 +86,7 @@
8686
</webResources>
8787
<overlays>
8888
<overlay>
89-
<groupId>org.apache.activemq</groupId>
89+
<groupId>org.apache.artemis</groupId>
9090
<artifactId>artemis-console-war</artifactId>
9191
<excludes>
9292
<exclude>WEB-INF/lib/guava*.jar</exclude>

artemis-console/src/main/webapp/hawtconfig.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
"branding": {
33
"appName": "Artemis Console",
44
"showAppName": false,
5-
"appLogoUrl": "img/activemq.png",
6-
"companyLogoUrl": "img/activemq.png",
7-
"css": "css/activemq.css",
5+
"appLogoUrl": "img/artemis.png",
6+
"companyLogoUrl": "img/artemis.png",
7+
"css": "css/artemis.css",
88
"favicon": "img/favicon.png"
99
},
1010
"login": {
11-
"description": "Login page for ActiveMQ Artemis Console.",
11+
"description": "Login page for Apache Artemis Console.",
1212
"links": [
13-
{ "url": "https://activemq.apache.org/components/artemis/documentation/", "text": "Documentation" },
14-
{ "url": "https://activemq.apache.org/", "text": "Website" }
13+
{ "url": "https://artemis.apache.org/components/artemis/documentation/", "text": "Documentation" },
14+
{ "url": "https://artemis.apache.org/", "text": "Website" }
1515
]
1616
},
1717
"about": {
18-
"title": "ActiveMQ Artemis Management Console",
19-
"productInfo": [{"name": "ActiveMQ Artemis", "value": "${project.version}"}],
18+
"title": "Apache Artemis Management Console",
19+
"productInfo": [{"name": "Apache Artemis", "value": "${project.version}"}],
2020
"additionalInfo": "",
2121
"copyright": " ",
22-
"imgSrc": "img/activemq.png"
22+
"imgSrc": "img/artemis.png"
2323
},
2424
"disabledRoutes": []
25-
}
25+
}

artemis-distribution/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
<configuration>
157157
<artifactItems>
158158
<artifactItem>
159-
<groupId>org.apache.activemq</groupId>
159+
<groupId>org.apache.artemis</groupId>
160160
<artifactId>apache-artemis-console</artifactId>
161161
<type>zip</type>
162162
<classifier>bin</classifier>

artemis-pom/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,14 @@
232232
<!-- License: Apache 2.0 -->
233233
</dependency>
234234
<dependency>
235-
<groupId>org.apache.activemq</groupId>
235+
<groupId>org.apache.artemis</groupId>
236236
<artifactId>artemis-console-war</artifactId>
237237
<type>war</type>
238238
<version>${artemis-console-version}</version>
239239
</dependency>
240240
<!-- License: Apache 2.0 -->
241241
<dependency>
242-
<groupId>org.apache.activemq</groupId>
242+
<groupId>org.apache.artemis</groupId>
243243
<artifactId>apache-artemis-console</artifactId>
244244
<version>${artemis-console-version}</version>
245245
<type>zip</type>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<modular.jdk.surefire.arg>--add-modules java.sql,jdk.unsupported </modular.jdk.surefire.arg>
8989

9090
<activemq-artemis-native-version>2.0.0</activemq-artemis-native-version>
91-
<artemis-console-version>1.3.0</artemis-console-version>
91+
<artemis-console-version>1.5.0</artemis-console-version>
9292
<karaf.version>4.4.9</karaf.version>
9393
<pax.exam.version>4.14.0</pax.exam.version>
9494
<commons.config.version>2.13.0</commons.config.version>

tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/PageConstants.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public class PageConstants {
4747

4848
public static final String COLUMN_ORIGINAL_QUEUE = "Original Queue";
4949

50-
// Node prrefixes
51-
public static final String BROKER_NODE = "org.apache.activemq.artemis-folder-0.0.0.0";
50+
// Node prefixes
51+
public static final String BROKER_NODE = "Broker0.0.0.0";
5252

5353
public static final String ADDRESS_NODE_SUFFIX = "folder-addresses-folder-";
5454

@@ -73,7 +73,7 @@ public class PageConstants {
7373
public static final By BUTTON_LOCATOR = By.tagName(BUTTON);
7474

7575
//Branding and Image locations
76-
public static final String DEFAULT_CONSOLE_LOGIN_BRAND_IMAGE = "/img/activemq.png";
76+
public static final String DEFAULT_CONSOLE_LOGIN_BRAND_IMAGE = "/img/artemis.png";
7777

7878
public static final String DEFAULT_CONSOLE_NAME = "Artemis";
7979

@@ -137,4 +137,5 @@ public class PageConstants {
137137

138138
public static final By BROKER_NODE_LOCATOR = By.id(BROKER_NODE);
139139

140+
public static final By BROKER_BUTTON_LOCATOR = By.xpath("//button[contains(text(), 'Broker 0.0.0.0')]");
140141
}

tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/pages/jmx/ArtemisTreePage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.openqa.selenium.interactions.Actions;
2323

2424
import static org.apache.activemq.artemis.tests.smoke.console.PageConstants.BROKER_NODE_LOCATOR;
25-
import static org.apache.activemq.artemis.tests.smoke.console.PageConstants.BUTTON_LOCATOR;
25+
import static org.apache.activemq.artemis.tests.smoke.console.PageConstants.BROKER_BUTTON_LOCATOR;
2626
import static org.apache.activemq.artemis.tests.smoke.console.PageConstants.COLLAPSE_BUTTON;
2727
import static org.apache.activemq.artemis.tests.smoke.console.PageConstants.EXPAND_BUTTON;
2828
import static org.apache.activemq.artemis.tests.smoke.console.PageConstants.NODE_TITLE_LOCATOR;
@@ -56,7 +56,7 @@ public String getNodeTitle() {
5656
}
5757

5858
public AttributesPage selectBrokerNode() {
59-
WebElement element = driver.findElement(BROKER_NODE_LOCATOR).findElement(BUTTON_LOCATOR);
59+
WebElement element = driver.findElement(BROKER_NODE_LOCATOR).findElement(BROKER_BUTTON_LOCATOR);
6060
Actions actions = new Actions(driver);
6161
actions.moveToElement(element).click().perform();
6262
return new AttributesPage(driver);

tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/pages/jmx/AttributesPage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package org.apache.activemq.artemis.tests.smoke.console.pages.jmx;
1818

19+
import org.openqa.selenium.JavascriptExecutor;
1920
import org.openqa.selenium.WebDriver;
2021
import org.openqa.selenium.WebElement;
2122
import org.openqa.selenium.interactions.Actions;
@@ -40,6 +41,7 @@ public void selectAttribute(String name) {
4041
WebElement row = iterator.next();
4142
List<WebElement> cols = row.findElements(TD_TAG_LOCATOR);
4243
if (cols.size() == 2 && name.equals(cols.get(0).getText())) {
44+
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();", cols.get(0));
4345
Actions actions = new Actions(driver);
4446
actions.moveToElement(cols.get(0)).click().perform();
4547
break;

0 commit comments

Comments
 (0)