Files
deploy/test/remote/run-e2e-remote.sh
zeekayandHanzo Dev dead2da249 cd: the configuration speaks CD_ and KV_
The fork was already ours everywhere that matters — our image, our IAM (dex
is not deployed), hanzo kv behind what the env still called REDIS. Only the
vocabulary was upstream's: ARGOCD_* across the Go, the manifests, the docs
and the plugin contract, and mkdocs still titled 'Argo CD' pointing at
argoproj/argo-cd.

ARGOCD_ -> CD_ and REDIS_ -> KV_ across 345 files, plus the 8 e2e/cmp
fixtures that assert the plugin env contract — those had to move with the
binary, which now emits CD_APP_NAME where they expected ARGOCD_APP_NAME.

Left alone deliberately, because renaming them would be wrong:
- util/helm/testdata/redis/ and gitops-engine/.../statefulset*.yaml are
  fixtures for a THIRD-PARTY chart named redis, not our config
- util/kustomize/testdata/ likewise
- generated.proto regenerates from types.go, which is already clean

go build ./... exit 0.

LOCKSTEP: the live StatefulSet sets 47 ARGOCD_* names the binary no longer
reads. universe 4a5375735 carries the matching manifest change; they deploy
together or the controller falls back to defaults.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 15:55:46 -07:00

65 lines
2.7 KiB
Bash
Executable File

#!/bin/sh
# Should point to the Argo CD API endpoint on the cluster
if test "${CD_SERVER}" = ""; then
echo "Please set CD_SERVER to the remote Argo CD API endpoint to test." >&2
exit 1
fi
# CD_E2E_REMOTE must be set to 'true' in order for remote tests to work
export CD_E2E_REMOTE=true
# The timeout for running the test suite (duration)
export CD_E2E_TEST_TIMEOUT=2h
# The default timeout for certain operations (such as sync)
export CD_E2E_DEFAULT_TIMEOUT=30
# Set CD_E2E_NAMESPACE to the namespace the Argo CD we're testing against is
# running in. Defaults to "argocd-e2e"
export CD_E2E_NAMESPACE="${CD_E2E_NAMESPACE:-argocd-e2e}"
# Name prefix the operator sets on resources created for Argo CD instance. This
# is usually also the name of the instance itself.
export CD_E2E_NAME_PREFIX="${CD_E2E_NAME_PREFIX:-}"
# This is to skip some (deprecated) tests
export CD_E2E_K3S=true
# Configuration for skipping certain classes of tests
# GnuPG features not yet available with GitOps Operator
export CD_E2E_SKIP_GPG="${CD_E2E_SKIP_GPG:-false}"
# Some tests do not work OOTB with OpenShift
export CD_E2E_SKIP_OPENSHIFT="${CD_E2E_SKIP_OPENSHIFT:-false}"
# Skip Helm tests
export CD_E2E_SKIP_HELM="${CD_E2E_SKIP_HELM:-false}"
# Skip Ksonnet tests
export CD_E2E_SKIP_KSONNET="${CD_E2E_SKIP_KSONNET:-false}"
## ====================================================
# no changes below this line required
## ====================================================
# Unauthenticated URLs for pushing from CI
#
# Use `kubectl port-forward service/argocd-e2e-server 9081:9081` to set up the
# listener required for this.
export CD_E2E_GIT_SERVICE="http://127.0.0.1:9081/argo-e2e/testdata.git"
export CD_E2E_HELM_SERVICE="http://127.0.0.1:9081/helm-repo"
export CD_E2E_GIT_SERVICE_SUBMODULE="http://127.0.0.1:9081/argo-e2e/submodule.git"
export CD_E2E_GIT_SERVICE_SUBMODULE_PARENT="http://127.0.0.1:9081/argo-e2e/submoduleParent.git"
# URLs used during testing - usually no need to change those
export CD_E2E_REPO_SSH="ssh://root@argocd-e2e-server:2222/tmp/argo-e2e/testdata.git"
export CD_E2E_REPO_SSH_SUBMODULE="ssh://root@argocd-e2e-server:2222/tmp/argo-e2e/submodule.git"
export CD_E2E_REPO_SSH_SUBMODULE_PARENT="ssh://root@argocd-e2e-server:2222/tmp/argo-e2e/submoduleParent.git"
export CD_E2E_REPO_HTTPS="https://argocd-e2e-server:9443/argo-e2e/testdata.git"
export CD_E2E_REPO_HTTPS_CLIENT_CERT="https://argocd-e2e-server:9444/argo-e2e/testdata.git"
export CD_E2E_REPO_HTTPS_SUBMODULE="https://argocd-e2e-server:9443/argo-e2e/submodule.git"
export CD_E2E_REPO_HTTPS_SUBMODULE_PARENT="https://argocd-e2e-server:9443/argo-e2e/submoduleParent.git"
export CD_E2E_REPO_HELM="https://argocd-e2e-server:9444/helm-repo"
export CD_E2E_REPO_DEFAULT="http://argocd-e2e-server:9081/argo-e2e/testdata.git"
"$@"