Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
approvers:
- andfasano
- bfournie
- pamoedom
- pawanpinjarkar
- rwsu
- zaneb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"path": "agent/e2e/generic/conformance/iso-no-registry/agent-e2e-generic-conformance-iso-no-registry-workflow.yaml",
"owners": {
"approvers": [
"andfasano",
"bfournie",
"pamoedom",
"pawanpinjarkar",
"rwsu",
"zaneb"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
workflow:
as: agent-e2e-generic-conformance-iso-no-registry
steps:
allow_best_effort_post_steps: true
allow_skip_on_success: true
env:
DEVSCRIPTS_TARGET: agent
pre:
- chain: agent-pre
test:
- chain: agent-test-conformance-iso-no-registry
post:
- chain: agent-post
documentation: |-
This workflow is a generic conformance one to deploy a no registry cluster provisioned by running agent installer, and it
will require to set the env variable DEVSCRIPTS_CONFIG to work properly.
7 changes: 7 additions & 0 deletions ci-operator/step-registry/agent/e2e/test/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
approvers:
- andfasano
- bfournie
- pamoedom
- pawanpinjarkar
- rwsu
- zaneb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
approvers:
- andfasano
- bfournie
- pamoedom
- pawanpinjarkar
- rwsu
- zaneb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -o nounset
set -o errexit
set -o pipefail

export KUBECONFIG=${SHARED_DIR}/kubeconfig

echo "$(date +%s)" > "${SHARED_DIR}/TEST_TIME_TEST_START"
trap 'echo "$(date +%s)" > "${SHARED_DIR}/TEST_TIME_TEST_END"' EXIT

TEST_ARGS=""

if [[ -n "${TEST_SKIPS:-}" ]]; then
TESTS="$(openshift-tests run all --dry-run)"
echo "${TESTS}" | grep -v "${TEST_SKIPS}" >/tmp/tests
echo "Skipping tests:"
echo "${TESTS}" | grep "${TEST_SKIPS}" || true
TEST_ARGS="--file /tmp/tests"
fi

openshift-tests run all --run ".*NoRegistryClusterInstall.*" ${TEST_ARGS} \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this cmd locally and it worked fine:

openshift-tests run all --provider '{"type":"baremetal"}' --dry-run | grep -E 'NoRegistryClusterInstall' | openshift-tests run --monitor "watch-namespaces" --max-parallel-tests 1 -f -

Not sure if in the CI env will still required OPENSHIFT_SKIP_EXTERNAL_TESTS=true (as I did locally)

-o "${ARTIFACT_DIR}/e2e.log" \
--junit-dir "${ARTIFACT_DIR}/junit"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"path": "agent/e2e/test/iso-no-registry/agent-e2e-test-iso-no-registry-ref.yaml",
"owners": {
"approvers": [
"andfasano",
"bfournie",
"pamoedom",
"pawanpinjarkar",
"rwsu",
"zaneb"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ref:
as: agent-e2e-test-iso-no-registry
from: tests
grace_period: 10m
commands: agent-e2e-test-iso-no-registry-commands.sh
timeout: 5h0m0s
resources:
requests:
cpu: "3"
memory: 600Mi
limits:
memory: 12Gi
env:
- name: TEST_SKIPS
default: ""
documentation: |-
Regular expression (POSIX basic regular expression) of tests to skip.
If unset, all NoRegistryClusterInstall origin tests are run.
documentation: |-
Runs the NoRegistryClusterInstall origin tests for the agent installer ISO NO REGISTRY
scenario. Exports the kubeconfig and runs openshift-tests without image mirroring,
optionally filtering out tests matching TEST_SKIPS.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
approvers:
- andfasano
- bfournie
- pamoedom
- pawanpinjarkar
- rwsu
- zaneb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"path": "agent/test/conformance/iso-no-registry/agent-test-conformance-iso-no-registry-chain.yaml",
"owners": {
"approvers": [
"andfasano",
"bfournie",
"pamoedom",
"pawanpinjarkar",
"rwsu",
"zaneb"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
chain:
as: agent-test-conformance-iso-no-registry
steps:
- ref: agent-e2e-test-iso-no-registry
documentation: |-
This chain encapsulates the e2e tests for the agent installer ISO No registry