You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PollingTimeout is how long (in seconds) to wait for an object to be created before failing the test.
TEST_HARNESSES:
TestHarnesses is a space separated list of container images with test harnesses to run.
TEST_USER
TestUser is the OpenShift user that the tests will run as. If "%s" is detected in the TestUser string, it will evaluate that as the project namespace. Ex. "system:serviceaccount:%s:dedicated-admin" . Evaluated : "system:serviceaccount:osde2e-abc123:dedicated-admin"
GINKGO_SKIP
GinkgoSkip is a regex passed to Ginkgo that skips any test suites matching the regex. ex. "Operator"
GINKGO_FOCUS
GinkgoFocus is a regex passed to Ginkgo that focus on any test suites matching the regex. ex. "Operator"
GINKGO_LOG_LEVEL
GinkgoLogLevel allows controlling the Ginkgo reporter output
TESTS_TO_RUN
TestsToRun is a list of files which should be executed as part of a test suite
SUPPRESS_SKIP_NOTIFICATIONS
SuppressSkipNotifications suppresses the notifications of skipped tests
CLEAN_RUNS
CleanRuns is the number of times the test-version is run before skipping.
OPERATOR_SKIP
OperatorSkip is a comma-delimited list of operator names to ignore health checks from. ex. "insights,telemetry"
SKIP_CLUSTER_HEALTH_CHECKS
SkipClusterHealthChecks skips the cluster health checks. Useful when developing against a running cluster.
METRICS_BUCKET
MetricsBucket is the bucket that metrics data will be uploaded to.
SERVICE_ACCOUNT
ServiceAccount defines what user the tests should run as. By default, osde2e uses system:admin
Addon test related:-
Environment variable
Usage
ADDON_IDS_AT_CREATION
Comma separated list of IDs to create at cluster creation time
ADDONS_IDS
Comma separated list of IDs to install after a cluster is created.
ADDON_RUN_CLEANUP
RunCleanup is a boolean to specify whether the testHarnesses should have a separate cleanup phase. This phase would run at the end of all e2e testing
ADDON_CLEANUP_HARNESSES
CleanupHarnesses is a comma separated list of container images that will clean up any artifacts created after test harnesses have run
Prometheus related:-
Environment variable
Usage
PROMETHEUS_ADDRESS
Address of the Prometheus instance to connect to.
PROMETHEUS_BEARER_TOKEN
Token needed for communicating with Prometheus.
Proxy related:-
Environment variable
Usage
TEST_HTTP_PROXY
Address of the HTTP Proxy to be added to a cluster.
TEST_HTTPS_PROXY
Address of the HTTPS Proxy to be added to a cluster.
USER_CA_BUNDLE
A file contains a PEM-encoded X.509 certificate bundle that will be added to the nodes' trusted certificate store.
Command Line Flags for osde2e
CLI flags that are commonly used include:
For the test sub-command:
--cluster-id: Existing OCM cluster ID to run tests against.
--configs: A comma separated list of built in configs to use. (stage, prod, e2e-suite, etc.)
--custom-config: Custom config file for osde2e.
--environment: Cluster provider environment to use. (ocm, rosa, etc.).
--kube-config: Path to local Kube config for running tests against.
--skip-destroy-cluster: Skip cluster deletion after test completion.
--skip-health-check: Skip cluster health checks.
--skip-tests: Skip any Ginkgo tests whose names match the regular expression.
For the query sub-command:
--output-format: Output format for query results (json|prom). Defaults to json. (default "-")
Common config flag values
The following are the values that can be plugged in for the --configs flag when running osde2e. The values correspond to existing YAML files in the /configs folder:-
OSD environment values:
Config Value
Usage
int
To run osde2e in the integration environment.
stage
To run osde2e on stage.
prod
To run osde2e in the production environment. (This is the default value if nothing is specified.)
scale
To set scale testing configurations for a cluster.
Cloud Provider values:
Config Value
Usage
aws
To specify aws as the cloud provider.
gcp
To specify gcp as the cloud provider.
AWS specific values:
Environment variable
Usage
AWS_ACCOUNT_ID
AWS account id to use for testing.
AWS_ACCESS_KEY
AWSAccessKeyID for provisioning clusters.
AWS_SECRET_ACCESS_KEY
AWSSecretAccessKey for provisioning clusters.
AWS_REGION
AWSRegion for provisioning clusters.
AWS_VPC_SUBNET_IDS
AWSVPCSubnetIDs for provisioning clusters for BYO-VPC clusters.
AWS_PROFILE
AWSProfile defines which profile in the aws credentials to use (ROSA provider only).
Cluster Provider values:
Config Value
Usage
ocm
To specify ocm as the cluster provider.
rosa
To specify rosa as the cluster provider.
Test suite values:
Config Value
Usage
e2e-suite
To test osde2e using the e2e tets suite (Includes operates, service-definition and app-builds suites).
informing-suite
To run informing tests on osde2e clusters.
openshift-suite
To run the openshift test suite on osde2e clusters.
test-harness
To include test harness based testing for osde2e clusters.
conformance-suite
To run conformance tests on osde2e clusters.
scale-mastervertical-suite
To run the scale:master vertical suite on osde2e clusters.
scale-nodes-and-pods-suite
To run the scale:nodes and pods suite on osde2e clusters.
scale-performance-suite
To run the scale:performance suite on osde2e clusters.
Other test flags:
Config Value
Usage
dry-run
To run osde2e all the way up to the e2e tests then skips them.
skip-health-checks
To run osde2e while skipping all the preliminary cluster health checks.
skip-must-gather
To run osde2e while skipping must-gather collection after test.
skip-destroy-cluster
Not to delete test cluster after test.
long-timeout
To extend cluster expiry to about 8 hours.
log-metrics
To set log metric configs for a couple of errors that pop up while running osde2e.
region-random
To set a random region for a cluster being created by the cloud provider.
Install/Upgrade flags:
Config Value
Usage
use-middle-version
To use the middle version for cluster install.
use-oldest-version
To use the oldest version for cluster install.
one-release-from-prod-default
To select the cluster image set that the given number of releases away from the the production default (1 in this case).
two-releases-from-prod-default
To select the cluster image set that the given number of releases away from the the production default (2 in this case).
nightly-release-for-prod-default
To select the cluster image set that the given number of releases away from the the production default (0 in this case).
upgrade-to-latest
To select the newest valid version to upgrade to
upgrade-to-latest-z
To select the newest valid patch version to upgrade to
upgrade-to-next-y
To select the newest valid minor release to upgrade to