Skip to content
Snippets Groups Projects
Commit c0114f84 authored by browniecab's avatar browniecab Committed by Maxim Khlobystov
Browse files

Update tests

(cherry picked from commit 817957b784061fb9519eac84a719556748c6e3e6)
parent daaee3ba
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ env:
- BBB_SERVER_URL=http://localhost/bigbluebutton/api
script:
- echo $BBB_SERVER_URL
- echo $BBB_SHARED_SECRET
- node test-html5-check.js
- node test-chat.js
- node test-draw.js
......
......@@ -3,7 +3,6 @@ MAINTAINER ffdixon@bigbluebutton.org
ENV DEBIAN_FRONTEND noninteractive
# RUN echo 'Acquire::http::Proxy "http://192.168.0.130:3142 ";' > /etc/apt/apt.conf.d/01proxy
RUN apt-get update && apt-get install -y wget software-properties-common
RUN echo "deb http://ubuntu.bigbluebutton.org/xenial-200-dev bigbluebutton-xenial main " | tee /etc/apt/sources.list.d/bigbluebutton.list
......
......@@ -4,7 +4,7 @@ echo "Working directory: $PWD"
# Build and run Docker image
docker build -t b2 .
docker=$(docker run -d -p 80:80/tcp -p 443:443/tcp -p 1935:1935 -p 5066:5066 -p 3478:3478 -p 3478:3478/udp b2 -h 10.130.218.149)
docker=$(docker run -d -p 80:80/tcp -p 443:443/tcp -p 1935:1935 -p 5066:5066 -p 3478:3478 -p 3478:3478/udp b2 -h localhost)
echo $docker
# Check if HTML5 client is ready
......@@ -13,6 +13,11 @@ node test-html5-check.js
status=$?
echo $status
conf=$(docker exec $(docker ps -q) bbb-conf --secret | grep "Secret:")
secret=$(echo $conf | cut -d' ' -f2)
export BBB_SHARED_SECRET=$secret
echo $BBB_SHARED_SECRET
# Run tests
if [ $status -eq 0 ]; then
node test-chat.js
......
......@@ -7,6 +7,7 @@ const helper = require('./helper');
{
var bbb = url.parse(process.env.BBB_SERVER_URL)
var check = bbb.protocol + "//" + bbb.hostname + "/html5client/check";
console.log("HTML5 check URL: " + check);
const maxRetries = 20;
const delay = 10000;
var retryCount = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment