Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Added UI test to CI/CD pipeline

Michal Rutka5bb1297f19f0
diff --git a/.github/workflows/manager.yml b/.github/workflows/manager.yml
index f8e8e6c35..fe814dfa1 100644
--- a/.github/workflows/manager.yml
+++ b/.github/workflows/manager.yml
@@ -14,6 +14,27 @@ env:
PLATFORM: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
jobs:
+ test_ui:
+ runs-on: ubuntu-latest
+ needs: [image_manager]
+ steps:
+ - uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ - name: install openremote-cli
+ run: |
+ pip3 install openremote-cli
+ openremote-cli -V -t
+ - name: deploy openremote stack on localhost and run UI test
+ run: |
+ wget -nc https://raw.githubusercontent.com/openremote/openremote/master/docker-compose.yml
+ docker-compose up -d
+ sleep 60
+ docker ps
+ # Login to manager and add weather agent asset
+ or-test-http-rest --dnsname localhost --password secret -vv
+ timeout-minutes: 30
+
image_manager:
runs-on: ubuntu-latest
needs: [build]
diff --git a/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy
index 183e15f4a..b58c2d926 100644
--- a/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy
@@ -105,7 +105,7 @@ class UdpClientTest extends Specification implements ManagerContainerTrait {
}
when: "the server sends a broadcast message"
- echoServer.sendMessage("Hello world", SocketUtils.socketAddress("127.0.0.1", clientPort))
+ echoServer.sendMessage("Hello world", SocketUtils.socketAddress("224.0.0.1", clientPort))
then: "we should receive the message"
conditions.eventually {