Skip to content
Open

test1 #114

Show file tree
Hide file tree
Changes from all commits
Commits
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
59 changes: 59 additions & 0 deletions .github/workflows/qe-openshift.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: QE Testing on Openshift

on:
pull_request:
branches: [ main ]
workflow_dispatch:
env:
QE_REPO: test-network-function/cnfcert-tests-verification



jobs:
qe-testing:
runs-on: osgh1
strategy:
fail-fast: false
env:
SHELL: /bin/bash
DEBUG_TNF: true # More verbose output from the TNF
KUBECONFIG: '/home/labuser/.kube/config'
PFLT_DOCKERCONFIG: '/home/labuser/.docker/config'
TEST_TNF_IMAGE_NAME: quay.io/testnetworkfunction/cnf-certification-test
TEST_TNF_IMAGE_TAG: localtest
DOCKER_CONFIG_DIR: '/home/labuser/.docker'

steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: ${{ github.sha }}

- name: Run initial setup
uses: ./.github/actions/setup

# - name: Build the test image
# run: make build-image-local-podman # quay.io/testnetworkfunction/cnf-certification-test:localtest

- name: Check out `cnf-certification-test-partner`
uses: actions/checkout@v3
with:
repository: test-network-function/cnf-certification-test-partner
path: cnf-certification-test-partner

# - name: Install partner resources
# run: make install
# working-directory: cnf-certification-test-partner

- name: Clone the QE repository
uses: actions/checkout@v3
with:
repository: ${{ env.QE_REPO }}
path: cnfcert-tests-verification

# Setup is complete. Time to run the QE tests.
- name: Run the tests
run: |
echo 'TNF_REPO_PATH=${GITHUB_WORKSPACE} TNF_IMAGE=${{env.TEST_TNF_IMAGE_NAME}} TNF_IMAGE_TAG=${{env.TEST_TNF_IMAGE_TAG}} make test-all'
TNF_REPO_PATH=${GITHUB_WORKSPACE} TNF_IMAGE=${{env.TEST_TNF_IMAGE_NAME}} TNF_IMAGE_TAG=${{env.TEST_TNF_IMAGE_TAG}} make test-all
working-directory: cnfcert-tests-verification
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ build-image-local:
-t ${REGISTRY}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \
-f Dockerfile .

build-image-local-podman:
podman build --no-cache \
-t ${REGISTRY_LOCAL}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \
-t ${REGISTRY}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \
-f Dockerfile .

build-image-tnf:
docker build --no-cache \
-t ${REGISTRY_LOCAL}/${TNF_IMAGE_NAME}:${IMAGE_TAG} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestRunTest(t *testing.T) {
},
Spec: corev1.PodSpec{},
}

// test1
ownerRef := ownerreference.NewOwnerReference(testPod)
assert.NotNil(t, ownerRef)
ownerRef.RunTest()
Expand Down