Skip to content

Commit

Permalink
Merge branch 'main' into NoSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
jonreding2010 authored Oct 31, 2023
2 parents dcbf86d + 4880515 commit 695e8c0
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ updates:
directory: "/"
schedule:
interval: monthly
labels:
- github_actions
33 changes: 26 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
default: '0.0.0'

jobs:

waitOld:
name: Wait For Older Runs To Complete
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,10 +53,30 @@ jobs:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5.23.0
- uses: release-drafter/release-drafter@v5.24.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

dependency-tree:
name: Maven Dependency Tree
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: zulu
java-version: 11
cache: maven
- name: Restore Local Maven Cache
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{runner.os}}-m2
- name: Submit Dependency Snapshot
uses: advanced-security/maven-dependency-submission-action@v3

getVersion:
name: Get package version
runs-on: ubuntu-latest
Expand Down Expand Up @@ -135,7 +154,7 @@ jobs:
- name: Test Reporting
if: always() && github.actor != 'dependabot[bot]'
id: test-report
uses: phoenix-actions/test-reporting@v10
uses: phoenix-actions/test-reporting@v12
with:
name: ${{matrix.module-name}} Test Results
path: '**/junitreports/TEST-**.xml'
Expand Down Expand Up @@ -256,18 +275,18 @@ jobs:
[ "ossrh", "release", "gpg" ]
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5.2.0
uses: crazy-max/ghaction-import-gpg@v5.3.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Deploy Release v${{ needs.getVersion.outputs.buildNumber }} to OSSRH
run: mvn -Drevision=${{ needs.getVersion.outputs.buildNumber }} deploy
run: mvn -B -e -Drevision=${{ needs.getVersion.outputs.buildNumber }} deploy
- name: Publish GitHub release v${{ needs.getVersion.outputs.buildNumber }}
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const result = await github.repos.listReleases({
const result = await github.rest.repos.listReleases({
owner: context.repo.owner,
repo: context.repo.repo
})
Expand All @@ -276,7 +295,7 @@ jobs:
for(var key in data){
if(data[key].tag_name == "v${{ needs.getVersion.outputs.buildNumber }}" && data[key].draft == true)
{
github.repos.updateRelease({
github.rest.repos.updateRelease({
release_id: data[key].id,
"draft": false,
owner: context.repo.owner,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
key: ${{runner.os}}-m2
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5.2.0
uses: crazy-max/ghaction-import-gpg@v5.3.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Draft Release Notes
id: release-drafter
uses: release-drafter/release-drafter@v5.23.0
uses: release-drafter/release-drafter@v5.24.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: bash_v
Expand Down
17 changes: 9 additions & 8 deletions openmaqs-appium/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<appiumjavaclient.version>8.3.0</appiumjavaclient.version>
<appiumjavaclient.version>8.6.0</appiumjavaclient.version>
<appium.selenium.version>4.13.0</appium.selenium.version>
</properties>

<dependencies>
Expand All @@ -29,12 +30,17 @@
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>${selenium.version}</version>
<version>${appium.selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>${selenium.version}</version>
<version>${appium.selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${appium.selenium.version}</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
Expand All @@ -60,10 +66,5 @@
<version>1.7.32</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ public void testGetDeviceName() {
/**
* Test get mobile hub url string.
*/
// FIXME: Oct 31
@Ignore
@Test(groups = TestCategories.APPIUM)
public void testGetMobileHubUrlString() {
String mobileHubUrl = AppiumConfig.getMobileHubUrlString();
Assert.assertTrue(mobileHubUrl.contains("https://")
&& mobileHubUrl.contains("ondemand.us-west-1.saucelabs.com:443/wd/hub"));
Assert.assertEquals(mobileHubUrl, "http://ondemand.saucelabs.com:80/wd/hub");
}

/**
Expand Down
3 changes: 1 addition & 2 deletions openmaqs-cucumber/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<commonsio.version>2.6</commonsio.version>
<cucumber.version>7.2.1</cucumber.version>
<cucumber.version>7.14.0</cucumber.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion openmaqs-database/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<properties>
<hibernate-core.version>5.6.3.Final</hibernate-core.version>
<sqlite-jdbc.version>3.36.0.3</sqlite-jdbc.version>
<sqlite-jdbc.version>3.41.2.2</sqlite-jdbc.version>
<mssql-jdbc.version>8.2.2.jre8</mssql-jdbc.version>
<javax.persistence.version>2.2.1</javax.persistence.version>
<commons-io.version>2.11.0</commons-io.version>
Expand Down
2 changes: 1 addition & 1 deletion openmaqs-playwright/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<version>${revision}</version>

<properties>
<playwright.version>1.29.0</playwright.version>
<playwright.version>1.39.0</playwright.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public void textContentTest() {
*/
@Test(groups = TestCategories.PLAYWRIGHT)
public void titleTest() {
Assert.assertEquals(this.getPageDriver().title(), "Automation - Magenic Automation Test Site");
Assert.assertEquals(this.getPageDriver().title(), "Automation - MAQS Test Site");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public void getHeadlessChromeDriverTest() {
/**
* Tests getting the Fire Fox driver.
*/
// FIXME: 31-Oct-23
@Ignore
@Test(groups = TestCategories.SELENIUM)
public void getFirefoxDriverTest() {
Expand All @@ -146,6 +147,8 @@ public void getFirefoxDriverTest() {
/**
* Tests getting the Edge driver.
*/
// FIXME: 31-Oct-23
@Ignore
@Test(groups = TestCategories.SELENIUM)
public void getEdgeDriverTest() {
EdgeDriver driver = null;
Expand Down Expand Up @@ -179,9 +182,10 @@ public void getInternetExplorerDriverTest() {
/**
* Tests getting the Headless driver.
*/
@Test(groups = TestCategories.SELENIUM)
@Ignore
// FIXME: 31-Oct-23
// TODO: Remote driver not being instantiated.
@Ignore
@Test(groups = TestCategories.SELENIUM)
public void getRemoteDriverTest() {
RemoteWebDriver driver = null;
try {
Expand Down
4 changes: 2 additions & 2 deletions openmaqs-utilities/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<version>${revision}</version>

<properties>
<commons-io.version>2.11.0</commons-io.version>
<commons.io.version>2.11.0</commons.io.version>
<commons.configuration2.version>2.8.0</commons.configuration2.version>
<commons.bean-utils.version>1.9.4</commons.bean-utils.version>
<apache.commons-text.version>1.10.0</apache.commons-text.version>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version} </version>
<version>${commons.io.version} </version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
11 changes: 4 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,9 @@
<surefire.plugin.version>3.0.0-M6</surefire.plugin.version>

<jacoco.version>0.8.7</jacoco.version>
<testng.version>7.5</testng.version>
<selenium.version>4.8.0</selenium.version>

<chromedriver.version>108.0.5359.71</chromedriver.version>
<geckodriver.version>0.28.0</geckodriver.version>
<edgedriver.version>5.16299</edgedriver.version>
<testng.version>7.8.0</testng.version>
<selenium.version>4.14.1</selenium.version>
<webdrivermanager.version>5.6.0</webdrivermanager.version>

<release.plugin.profiles>release</release.plugin.profiles>
<release.plugin.goals>deploy</release.plugin.goals>
Expand All @@ -264,7 +261,7 @@
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.1.0</version>
<version>${webdrivermanager.version}</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
Expand Down

0 comments on commit 695e8c0

Please sign in to comment.