Introduce ttcn3-epdg-test
Change-Id: I77a4d66c1bd0236dee8fc54e03a9d6bf8d63f204
This commit is contained in:
parent
1b03229848
commit
2a5ce78348
|
@ -0,0 +1,14 @@
|
|||
ARG REGISTRY
|
||||
ARG USER
|
||||
FROM $REGISTRY/$USER/debian-bookworm-titan
|
||||
|
||||
ARG OSMO_TTCN3_BRANCH="master"
|
||||
|
||||
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BRANCH?format=TEXT /tmp/commit
|
||||
RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" epdg
|
||||
|
||||
VOLUME /data
|
||||
|
||||
COPY EPDG_Tests.cfg /data/EPDG_Tests.cfg
|
||||
|
||||
CMD ttcn3-docker-run epdg EPDG_Tests
|
|
@ -0,0 +1,21 @@
|
|||
[ORDERED_INCLUDE]
|
||||
"/osmo-ttcn3-hacks/Common.cfg"
|
||||
"/osmo-ttcn3-hacks/epdg/EPDG_Tests.default"
|
||||
|
||||
[LOGGING]
|
||||
|
||||
[TESTPORT_PARAMETERS]
|
||||
|
||||
[MODULE_PARAMETERS]
|
||||
EPDG_Tests.mp_gsup_local_ip := "172.18.10.103"
|
||||
EPDG_Tests.mp_swx_local_ip := "172.18.10.103"
|
||||
EPDG_Tests.mp_s6b_local_ip := "172.18.10.103"
|
||||
EPDG_Tests.mp_s2b_local_ip := "172.18.10.103"
|
||||
|
||||
EPDG_Tests.mp_gsup_remote_ip := "172.18.10.20"
|
||||
EPDG_Tests.mp_s2b_remote_ip := "172.18.10.20"
|
||||
|
||||
[MAIN_CONTROLLER]
|
||||
|
||||
[EXECUTE]
|
||||
EPDG_Tests.control
|
|
@ -0,0 +1 @@
|
|||
include ../make/Makefile
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ../jenkins-common.sh
|
||||
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
|
||||
docker_images_require \
|
||||
"osmo-epdg-$IMAGE_SUFFIX" \
|
||||
"ttcn3-epdg-test"
|
||||
|
||||
set_clean_up_trap
|
||||
set -e
|
||||
|
||||
mkdir $VOL_BASE_DIR/epdg-tester
|
||||
cp EPDG_Tests.cfg $VOL_BASE_DIR/epdg-tester/
|
||||
write_mp_osmo_repo "$VOL_BASE_DIR/epdg-tester/EPDG_Tests.cfg"
|
||||
|
||||
mkdir $VOL_BASE_DIR/epdg
|
||||
cp osmo-epdg.config $VOL_BASE_DIR/epdg/
|
||||
|
||||
network_create
|
||||
network_replace_subnet_in_configs
|
||||
|
||||
echo Starting container with osmo-epdg
|
||||
docker run --rm \
|
||||
$(docker_network_params $SUBNET 20) \
|
||||
--ulimit core=-1 \
|
||||
-v $VOL_BASE_DIR/epdg:/data \
|
||||
--name ${BUILD_TAG}-epdg -d \
|
||||
$DOCKER_ARGS \
|
||||
$REPO_USER/osmo-epdg-$IMAGE_SUFFIX
|
||||
|
||||
echo Starting container with EPDG testsuite
|
||||
docker run --rm \
|
||||
$(docker_network_params $SUBNET 103) \
|
||||
--ulimit core=-1 \
|
||||
-e "TTCN3_PCAP_PATH=/data" \
|
||||
-v $VOL_BASE_DIR/epdg-tester:/data \
|
||||
--name ${BUILD_TAG}-ttcn3-epdg-test \
|
||||
$DOCKER_ARGS \
|
||||
$REPO_USER/ttcn3-epdg-test
|
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
%% ===========================================
|
||||
%% Application config
|
||||
%% ===========================================
|
||||
{osmo_epdg,
|
||||
[% GSUP Server connection parameters
|
||||
{gsup_local_ip, "172.18.10.20"},
|
||||
{gsup_local_port, 4222},
|
||||
% Diameter Connection parameters
|
||||
{diameter_remote_ip, "172.18.10.103"},
|
||||
{diameter_remote_port, 3868},
|
||||
{diameter_proto, sctp},
|
||||
% Diameter Server parameters
|
||||
{vendor_id, 0},
|
||||
{origin_host, "epdg.localdomain"},
|
||||
{origin_realm, "localdomain"},
|
||||
{context_id, "epdg@localdomain"}]}
|
||||
].
|
Loading…
Reference in New Issue