-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
238 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
name: Preflight | ||
'on': | ||
schedule: | ||
- cron: '0 0 * * *' | ||
# pull_request: | ||
# branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
preflight-unstable: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
SHELL: /bin/bash | ||
IMAGE_NAME: quay.io/testnetworkfunction/cnf-certification-test:unstable | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go 1.21 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21.3 | ||
|
||
- name: Disable default go problem matcher | ||
run: echo "::remove-matcher owner=go::" | ||
|
||
- name: Clone the preflight repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: redhat-openshift-ecosystem/openshift-preflight | ||
path: openshift-preflight | ||
|
||
- name: Run preflight | ||
working-directory: openshift-preflight | ||
run: | | ||
make build | ||
./preflight check container ${{ env.IMAGE_NAME }} --artifacts ${GITHUB_WORKSPACE}/openshift-preflight/artifacts | ||
ALLOWED_FAILURES=("HasLicense" "RunAsNonRoot") | ||
FAILURES=$(cat ${GITHUB_WORKSPACE}/openshift-preflight/artifacts/amd64/results.json | jq -r '.results.failed[].name') | ||
for FAILURE in $FAILURES; do | ||
FAILURE=$(echo $FAILURE | tr -d '"') | ||
if [[ ! "${ALLOWED_FAILURES[@]}" =~ "${FAILURE}" ]]; then | ||
echo >&2 "ERROR: $FAILURE is not an allowed failure" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: QE OCP Intrusive 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-intrusive-testing: | ||
runs-on: qe-ocp | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Add more suites if more intrusive tests are added to the QE repo | ||
suite: [lifecycle] | ||
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: Preemptively prune docker resources | ||
run: docker system prune -f --volumes | ||
|
||
- 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=false ENABLE_PARALLEL=false ENABLE_FLAKY_RETRY=true make test-features | ||
working-directory: cnfcert-tests-verification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[default.extend-words] | ||
iif = "iif" | ||
ono = "ono" | ||
|
||
[files] | ||
extend-exclude = ["go.mod", "results.html", "cmd/tnf/claim/compare/testdata", "docs/assets/images/*.svg"] | ||
extend-exclude = ["depends-on.json", "go.mod", "results.html", "cmd/tnf/claim/compare/testdata", "docs/assets/images/*.svg"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.