Skip to content

Commit 7597b0f

Browse files
committed
initial
1 parent b265986 commit 7597b0f

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: QE Testing on Openshift
2+
3+
on:
4+
workflow_dispatch:
5+
env:
6+
QE_REPO: test-network-function/cnfcert-tests-verification
7+
8+
9+
10+
jobs:
11+
qe-testing:
12+
runs-on: osgh1
13+
strategy:
14+
fail-fast: false
15+
env:
16+
SHELL: /bin/bash
17+
DEBUG_TNF: true # More verbose output from the TNF
18+
KUBECONFIG: '/home/labuser/.kube/config'
19+
PFLT_DOCKERCONFIG: '/home/labuser/.docker/config'
20+
TEST_TNF_IMAGE_NAME: quay.io/testnetworkfunction/cnf-certification-test
21+
TEST_TNF_IMAGE_TAG: localtest
22+
DOCKER_CONFIG_DIR: '/home/labuser/.docker'
23+
24+
steps:
25+
- name: Check out code
26+
uses: actions/checkout@v3
27+
with:
28+
ref: ${{ github.sha }}
29+
30+
- name: Run initial setup
31+
uses: ./.github/actions/setup
32+
33+
# - name: Build the test image
34+
# run: make build-image-local-podman # quay.io/testnetworkfunction/cnf-certification-test:localtest
35+
36+
- name: Check out `cnf-certification-test-partner`
37+
uses: actions/checkout@v3
38+
with:
39+
repository: test-network-function/cnf-certification-test-partner
40+
path: cnf-certification-test-partner
41+
42+
# - name: Install partner resources
43+
# run: make install
44+
# working-directory: cnf-certification-test-partner
45+
46+
- name: Clone the QE repository
47+
uses: actions/checkout@v3
48+
with:
49+
repository: ${{ env.QE_REPO }}
50+
path: cnfcert-tests-verification
51+
52+
# Setup is complete. Time to run the QE tests.
53+
- name: Run the tests
54+
run: |
55+
echo 'TNF_REPO_PATH=${GITHUB_WORKSPACE} TNF_IMAGE=${{env.TEST_TNF_IMAGE_NAME}} TNF_IMAGE_TAG=${{env.TEST_TNF_IMAGE_TAG}} make test-all'
56+
TNF_REPO_PATH=${GITHUB_WORKSPACE} TNF_IMAGE=${{env.TEST_TNF_IMAGE_NAME}} TNF_IMAGE_TAG=${{env.TEST_TNF_IMAGE_TAG}} make test-all
57+
working-directory: cnfcert-tests-verification

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ build-image-local:
159159
-t ${REGISTRY}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \
160160
-f Dockerfile .
161161

162+
build-image-local-podman:
163+
podman build --no-cache \
164+
-t ${REGISTRY_LOCAL}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \
165+
-t ${REGISTRY}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \
166+
-f Dockerfile .
167+
162168
build-image-tnf:
163169
docker build --no-cache \
164170
-t ${REGISTRY_LOCAL}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \

0 commit comments

Comments
 (0)