Skip to content

feat: Support configuring local IP address for N9 interface #949

feat: Support configuring local IP address for N9 interface

feat: Support configuring local IP address for N9 interface #949

Workflow file for this run

name: Test
on:
push:
branches:
- "main"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Raw UPF Presetup
uses: ./.github/actions/raw-upf-presetup
id: raw-upf-presetup
- name: Go mod tidy
run: go mod tidy
- name: Go vet main
run: go vet ./cmd/...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: ./cmd
- name: Run tests
run: sudo go test -v ./cmd/...
- name: Build
run: go build -v -o bin/eupf ./cmd
- name: Run eUPF and sleep
run: sudo ./bin/eupf &
- name: Install pytest and SCAPY
run: sudo pip install pytest scapy
- name: Run pytest
run: sudo pytest -v -k "not test_create_session_ueip" ./pytest/test_session.py
- name: Stop eUPF
run: sudo killall eupf
- name: Run eUPF with feature_ueip
run: sudo UPF_FEATURE_UEIP=true ./bin/eupf &
- name: Run pytest with feature_ueip
run: sudo pytest -v ./pytest/test_session.py::test_create_association
./pytest/test_session.py::test_create_session_ueip
- name: Stop eUPF
run: sudo killall eupf