Skip to content

Commit

Permalink
Merge branch 'main' into test-pr-tnf-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
shirmoran authored Oct 26, 2023
2 parents 408d141 + bc51f9d commit 53c6fac
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

- name: Install ginkgo
run: make install-tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/pre-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"
Expand Down Expand Up @@ -334,7 +334,8 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

# Prepare collector to be used when running smoke tests
- name: Check out `Collector`
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qe-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/qe-ocp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: QE OCP Testing

on:
# pull_request:
# branches: [ main ]
workflow_dispatch:
# Schedule a daily cron at midnight UTC
schedule:
- cron: '0 0 * * *'
env:
QE_REPO: test-network-function/cnfcert-tests-verification

jobs:
qe-ocp-testing:
runs-on: qe-ocp
strategy:
fail-fast: false
matrix:
suite: [accesscontrol, affiliatedcertification, manageability, networking, lifecycle, performance, platformalteration, observability, operator]
env:
SHELL: /bin/bash
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@v4
with:
ref: ${{ github.sha }}

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

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

- name: Show pods
run: oc get pods -A

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

- name: Preemptively potential QE namespaces
run: ./scripts/delete-namespaces.sh
working-directory: cnfcert-tests-verification

- name: Preemptively delete report and config folders
shell: bash
run: |
sudo rm -rf /tmp/tnf_config/
sudo rm -rf /tmp/tnf_report/
# Setup is complete. Time to run the QE tests.
- name: Run the tests
run: FEATURES=${{matrix.suite}} TNF_REPO_PATH=${GITHUB_WORKSPACE} TNF_IMAGE=${{env.TEST_TNF_IMAGE_NAME}} TNF_IMAGE_TAG=${{env.TEST_TNF_IMAGE_TAG}} DISABLE_INTRUSIVE_TESTS=true ENABLE_PARALLEL=true ENABLE_FLAKY_RETRY=true make test-features
working-directory: cnfcert-tests-verification
2 changes: 1 addition & 1 deletion .github/workflows/update-rhcos-mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.2
go-version: 1.21.3

# This prevents any failures due to the updated rhcos_versions_map file from
# making it into the PR phase.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN \
# Install Go binary and set the PATH
ENV \
GO_DL_URL=https://golang.org/dl \
GO_BIN_TAR=go1.21.2.linux-amd64.tar.gz \
GO_BIN_TAR=go1.21.3.linux-amd64.tar.gz \
GOPATH=/root/go
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/${GO_BIN_TAR}
RUN \
Expand Down
2 changes: 1 addition & 1 deletion cnf-certification-test/identifiers/identifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func InitCatalog() map[claim.Identifier]claim.TestCaseDescription {
DpdkCPUPinningExecProbeRemediation,
NoDocumentedProcess,
TestDpdkCPUPinningExecProbeDocLink,
false,
true,
map[string]string{
FarEdge: Mandatory,
Telco: Mandatory,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/test-network-function/cnf-certification-test

go 1.21.2
go 1.21.3

require (
github.com/Masterminds/semver/v3 v3.2.1
Expand Down

0 comments on commit 53c6fac

Please sign in to comment.