1
1
name : Integration testing
2
2
env :
3
3
PROJECT_ROOT : /root/go/src/github.com/infrawatch/sg-core
4
- OPSTOOLS_REPO : https://trunk.rdoproject.org/centos9-caracal/delorean-deps.repo
4
+ OPENSTACK_REPO : https://trunk.rdoproject.org/centos9-caracal/delorean-deps.repo
5
5
6
6
QDR_IMAGE : quay.io/interconnectedcloud/qdrouterd:1.17.0
7
7
QDR_VOLUME : " --volume=${{ github.workspace }}/ci/service_configs/qdr:/etc/qpid-dispatch:ro"
74
74
if : steps.bridge_branch.outcome == 'success'
75
75
run : |
76
76
docker run --name=sgbridge --network host $BRIDGE_VOLUME -d -uroot \
77
- -e GITHUB_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPSTOOLS_REPO \
77
+ -e GITHUB_HEAD_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPENSTACK_REPO \
78
78
--workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
79
79
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/run_bridge.sh
80
80
- name : Install collectd
86
86
sudo collectd -C ci/integration/metrics/collectd/collectd.conf
87
87
- name : Run sg-core to process metrics
88
88
run : |
89
- docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPSTOOLS_REPO \
89
+ docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPENSTACK_REPO \
90
90
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
91
91
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/collectd/run_sg.sh
92
92
- name : Run Prometheus to store metrics
@@ -170,7 +170,7 @@ jobs:
170
170
if : steps.bridge_branch.outcome == 'success'
171
171
run : |
172
172
docker run --name=sgbridge --network host $BRIDGE_VOLUME -d -uroot \
173
- -e GITHUB_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPSTOOLS_REPO \
173
+ -e GITHUB_HEAD_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPENSTACK_REPO \
174
174
--workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
175
175
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/run_bridge.sh
176
176
- name : Set Ceilometer pipelines to QDR output and restart notification agent
@@ -186,7 +186,7 @@ jobs:
186
186
sudo systemctl restart [email protected]
187
187
- name : Run sg-core to process metrics
188
188
run : |
189
- docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPSTOOLS_REPO \
189
+ docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPENSTACK_REPO \
190
190
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
191
191
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/ceilometer/bridge/run_sg.sh
192
192
- name : Run Prometheus to store metrics
@@ -263,7 +263,7 @@ jobs:
263
263
sudo systemctl restart [email protected]
264
264
- name : Run sg-core to process metrics
265
265
run : |
266
- docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPSTOOLS_REPO \
266
+ docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPENSTACK_REPO \
267
267
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
268
268
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/ceilometer/tcp/run_sg.sh
269
269
- name : Run Prometheus to store metrics
@@ -333,8 +333,8 @@ jobs:
333
333
- name : Start sg-bridge with same branch
334
334
if : steps.bridge_branch.outcome == 'success'
335
335
run : |
336
- docker run --name=sgbridge $BRIDGE_VOLUME -d -uroot --network host -e OPSTOOLS_REPO \
337
- -e GITHUB_REF -e BRIDGE_SOCKET --workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
336
+ docker run --name=sgbridge $BRIDGE_VOLUME -d -uroot --network host -e OPENSTACK_REPO \
337
+ -e GITHUB_HEAD_REF -e BRIDGE_SOCKET --workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
338
338
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/logging/run_bridge.sh
339
339
- name : Run rsyslog to produce log messages
340
340
run : |
@@ -395,7 +395,7 @@ jobs:
395
395
# run integration tests
396
396
- name : Run sg-core to process log messages
397
397
run : |
398
- docker run --name=sgcore -d -uroot --network host $TEST_PORT $BRIDGE_VOLUME -e OPSTOOLS_REPO \
398
+ docker run --name=sgcore -d -uroot --network host $TEST_PORT $BRIDGE_VOLUME -e OPENSTACK_REPO \
399
399
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
400
400
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/logging/run_sg.sh
401
401
- name : sg-core debug output
0 commit comments