Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop2 #8

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
8d18027
PLATFORM-LAUNCHER: added email e2e testing
jelyoussefi Jun 19, 2018
9a6d936
PLATFORM-LAUNCHER: modify the email recipient
jelyoussefi Jun 19, 2018
0814a2b
PLATFORM-LAUNCHER: update email e2e testing
jelyoussefi Jun 19, 2018
6e5f141
PLATFORM-LAUNCHER: fixed print -e issue
jelyoussefi Jun 19, 2018
2ae9207
PLATFORM-LAUNCHER: fixed synchronizationStatus issue
jelyoussefi Jun 20, 2018
3032276
PLATFORM-LAUNCHER: update email e2e testing
jelyoussefi Jun 20, 2018
aaa294a
PLATFORM-LAUNCHER: updated top level Makefiles to improve the e2e tes…
jelyoussefi Jun 22, 2018
76efe63
Docker-compose wait for kafka in gearpump.
arkocal Jun 20, 2018
86c25ac
Implement E2E test for admin role
chuan9 Jun 26, 2018
02a5da0
fixed the email e2e testing issue
jelyoussefi Jul 5, 2018
3f48908
Automatically remove default config after make update
arkocal Jul 6, 2018
db455c7
Updated toplevel Makefile for e2e testing
jelyoussefi Jul 6, 2018
d9a646f
MAKEFILE: Force distclean before update
arkocal Jul 10, 2018
d18e88b
Changes to postgres container.
arkocal Aug 1, 2018
4b23235
Remove .prepare from Makefile
arkocal Aug 2, 2018
e50ccd4
Remove volume mount for frontend
arkocal Aug 2, 2018
d25f63f
Remove /app mount from nginx
arkocal Aug 3, 2018
89ca136
Remove volume mount from websocket-server
arkocal Aug 2, 2018
22a9958
New testDB setup. The test DB is now defined in setup-environment.sh.…
wagmarcel Aug 14, 2018
cf692cd
E2E-Test fix: Too many fails due to Email test timeouts, emails not r…
wagmarcel Aug 14, 2018
151b04a
E2E-tests: Added statistics rule tests
wagmarcel Sep 2, 2018
e9464ea
Major changes to docker-compose and makefile
arkocal Sep 7, 2018
fca79c8
Add invitation test: Do not accept a non existing invitation
oguzcankirmemis Sep 7, 2018
27e92b1
E2E test: Added Kafka readiness tests. In some cases the E2E was not …
wagmarcel Sep 7, 2018
fe1121b
Add .init to make start
oguzcankirmemis Sep 19, 2018
c28e8a9
E2E Tests: Added Time-based rule tests
wagmarcel Sep 9, 2018
379ff8a
Add component test: Do not create a component with a name that alread…
oguzcankirmemis Sep 12, 2018
f269fb6
Moved from ifconfig to ip in Makefile
arkocal Sep 27, 2018
d6e978c
Created a new container for debugging
arkocal Sep 19, 2018
8e5f9b6
Made debugger container optional
arkocal Sep 25, 2018
e1638c8
Minor updates to debugger container
arkocal Sep 27, 2018
a095f6e
E2E test: fix for timebased rule test sometimes reporting errors
wagmarcel Sep 28, 2018
383149f
Adapted tests for k8s
arkocal Oct 1, 2018
4ab5769
Updated debugger container image
arkocal Oct 9, 2018
a3a1576
Updated Kafka version to 1.0.0
wagmarcel Oct 28, 2018
08dc9e6
Added standalone Zookeeper, HDFS, Hbase-regionserver
wagmarcel Oct 28, 2018
9de42dd
Add option DISABLE_RATE_LIMITS to Makefile for frontend
oguzcankirmemis Nov 6, 2018
f21cca6
New OISP-Configuration independent of VCAP
wagmarcel Nov 11, 2018
9c0376e
Created Data Sending subtests and necessary API in helper library
wagmarcel Nov 25, 2018
4999b7d
Added send-data subtest for
wagmarcel Dec 3, 2018
22c1419
Added vegeta to debugger container
arkocal Dec 11, 2018
f1ea3f7
OISP-Frontend configuration independent of VCAP
oguzcankirmemis Nov 21, 2018
ac20e53
OISP-Websocket-Server configuration independent of VCAP
oguzcankirmemis Nov 22, 2018
3376f6c
Added jaeger
arkocal Dec 11, 2018
ec0195e
tests/Makefile: Adapt k8s tests
arkocal Dec 17, 2018
4b9ea97
Added openTSDB container with automated creation of needed HBase tables
wagmarcel Dec 8, 2018
43234ea
E2E-test/data-sending-subtests
wagmarcel Dec 11, 2018
9b7ed4f
docker-compose.yml: Added OISP_TSDB_PROPERTIES environment variable f…
wagmarcel Dec 19, 2018
e6d5582
E2E-tests/data-sending-tests: Added more subtests for the new data su…
wagmarcel Dec 31, 2018
83c7819
E2E-tests/data-sending-tests: Update user creation for k8s
arkocal Jan 8, 2019
7ada8ac
docker-compose.yml: Move Gearpump to new config system
arkocal Jan 8, 2019
3234732
Add jaegerTracing environment variable to OISP_FRONTEND_CONFIG variab…
oguzcankirmemis Jan 24, 2019
0e3e238
MQTT integration:
wagmarcel Jan 22, 2019
37e23e0
Added backend config for jaeger
wagmarcel Jan 28, 2019
75c8f45
docker-compose.yml: Added OISP_BACKEND_JAEGER_CONFIG variable for bac…
wagmarcel Feb 3, 2019
3df85d1
setup-environment.example.sh: Remove unnecessary exports
arkocal Feb 6, 2019
1b499b1
debugger: Include apache2-utils and ipython
arkocal Feb 18, 2019
ff514f2
debugger: Add load test creator util.
arkocal Feb 21, 2019
16db8d6
Modified the oisp testing framework to support the binary components …
jelyoussefi Mar 5, 2019
0f5417b
Added imagemagick install to platform-setup
wagmarcel Mar 16, 2019
377fe61
Removed tests/test-config.json
wagmarcel Mar 16, 2019
d70d373
CircleCI integration:
wagmarcel Apr 1, 2019
f1aad93
docker.sh: Removed redsocks and added explicit exit 1 to make sure ma…
wagmarcel Apr 1, 2019
a1f1099
Updated Kafka to default bitnami container
wagmarcel Mar 30, 2019
f3f144c
tests/Makefile: Removed -i switch from docker
wagmarcel Apr 6, 2019
2c3a47f
Build and E2E Test implemented for CircleCi environment
wagmarcel Apr 6, 2019
9f73d42
Test for docker compose41
wagmarcel Apr 6, 2019
52a7c7b
Test for docker compose57
wagmarcel Apr 6, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 172 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
executors:
my-executor:
machine:
enabled: true
image: ubuntu-1604:201903-01
working_directory: ~/repo
environment:
shell: /bin/bash
TERM: xterm
TZ: "Europe/Berlin"
commands:
setup-build-environment:
description: "Setup build Environment"
steps:
- run:
shell: /bin/bash
name: Setup build environment
command: |
cd platform-setup
sudo ./setup-ubuntu16.04.sh
setup-branch:
description: "Setup branch"
steps:
- run:
shell: /bin/bash
name: Setup branch
command: |
sudo apt install jq
# First find out PR number (CircleCI is not that sophisticated about it)

if [ ! -z "${CIRCLE_PULL_REQUEST}" ]; then
#echo Pull request active ${CIRCLE_PULL_REQUEST}
PR=${CIRCLE_PR_NUMBER}
PR_REPO=${CIRCLE_PR_REPONAME}
PR_USERNAME=${CIRCLE_PR_USERNAME}
if [ -z "${PR}"]; then
#no forked PR
PR=$(basename ${CIRCLE_PULL_REQUEST})
PR_REPO=${CIRCLE_PROJECT_REPONAME}
PR_USERNAME=${CIRCLE_PROJECT_USERNAME}
fi
#echo Marcel922 ${PR_REPO} + ${PR}
#echo Marcel352 ${PR_USERNAME}
url="https://api.github.com/repos/${PR_USERNAME}/${PR_REPO}/pulls/${PR}"
BASE_BRANCH=$(curl "$url" | jq '.base.ref' | tr -d '"')
#echo Marcel643 $url
#echo $(curl "$url")
echo Marcel822 ${BASE_BRANCH}
fi
if [ ! "$CIRCLE_BRANCH" = "master" ]; then
git branch --set-upstream-to=origin/${CIRCLE_BRANCH} ${CIRCLE_BRANCH}
git submodule init
git submodule update
fi
if [ "$CIRCLE_BRANCH" = "develop" ] || [ "${BASE_BRANCH}" = "develop" ]; then
make update
fi
build-branch:
description: "Build branch"
steps:
- run:
shell: /bin/bash
name: Build branch
command: |
yes| make build
e2e-test:
description: "E2E test"
steps:
- run:
shell: /bin/bash
name: E2e Test
command: |
yes| make test
push-images:
description: "Push images"
parameters:
tag:
type: string
default: "latest"
steps:
- run:
shell: /bin/bash
name: Push images to docker hub
command: |
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
DOCKER_TAG="latest"
if [ "<< parameters.tag >>" = "date" ]; then
DOCKER_TAG=`date -I`
fi
if [ "<< parameters.tag >>" = "tag" ]; then
DOCKER_TAG=`git describe --tag` || exit 1
fi
echo Now trying to push with Tag ${DOCKER_TAG}
make push
check-signed:
description: "Check whether latest commit is signed"
steps:
- run:
name: Check whether most recent commit is signed
shell: /bin/bash
command: |
MESSAGE=`git log -1 --pretty=%B`
echo "Checking whether signed"
if [[ "${MESSAGE}" == *Signed-off-by:*@* ]]; then
echo "Commit is signedoff"
else
echo "Commit is not signedoff"
exit 1
fi
jobs:
build:
executor: my-executor
steps:
- checkout
- check-signed
- setup-build-environment
- setup-branch
- build-branch
- e2e-test
build-master:
executor: my-executor
steps:
- checkout
- setup-build-environment
- setup-branch
- build-branch
- e2e-test
- push-images:
tag: "tag"
build-nightly:
executor: my-executor
steps:
- checkout
- setup-build-environment
- setup-branch
- build-branch
- e2e-test
- push-images:
tag: "date"
workflows:
version: 2.1
workflow:
jobs:
- build:
filters:
branches:
ignore:
- master
- build-master:
filters:
branches:
only:
- master
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- develop
jobs:
- build-nightly:
filters:
branches:
only:
- develop
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
setup-environment.sh
.init
.prepare
data
data
config-backup/
.firstRun
tests/.env
tests/package-lock.json
tests/test-config.json
data-backup/
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
url = https://github.com/Open-IoT-Service-Platform/oisp-gearpump-rule-engine.git
[submodule "oisp-websocket-server"]
path = oisp-websocket-server
url = https://github.com/Open-IoT-Service-Platform/oisp-websocket-server.git
url = https://github.com/Open-IoT-Service-Platform/oisp-websocket-server.git
[submodule "oisp-mqtt-gw"]
path = oisp-mqtt-gw
url = https://github.com/Open-IoT-Service-Platform/oisp-mqtt-gw.git
Loading