github.com/argoproj/argo-cd/v3@v3.2.1/test/remote/run-e2e-remote.sh (about)

     1  #!/bin/sh
     2  
     3  # Should point to the Argo CD API endpoint on the cluster
     4  if test "${ARGOCD_SERVER}" = ""; then
     5  	echo "Please set ARGOCD_SERVER to the remote Argo CD API endpoint to test." >&2
     6  	exit 1
     7  fi
     8  
     9  # ARGOCD_E2E_REMOTE must be set to 'true' in order for remote tests to work
    10  export ARGOCD_E2E_REMOTE=true
    11  
    12  # The timeout for running the test suite (duration)
    13  export ARGOCD_E2E_TEST_TIMEOUT=2h
    14  
    15  # The default timeout for certain operations (such as sync)
    16  export ARGOCD_E2E_DEFAULT_TIMEOUT=30
    17  
    18  # Set ARGOCD_E2E_NAMESPACE to the namespace the Argo CD we're testing against is
    19  # running in. Defaults to "argocd-e2e"
    20  export ARGOCD_E2E_NAMESPACE="${ARGOCD_E2E_NAMESPACE:-argocd-e2e}"
    21  
    22  # Name prefix the operator sets on resources created for Argo CD instance. This
    23  # is usually also the name of the instance itself.
    24  export ARGOCD_E2E_NAME_PREFIX="${ARGOCD_E2E_NAME_PREFIX:-}"
    25  
    26  # This is to skip some (deprecated) tests
    27  export ARGOCD_E2E_K3S=true
    28  
    29  # Configuration for skipping certain classes of tests
    30  
    31  # GnuPG features not yet available with GitOps Operator
    32  export ARGOCD_E2E_SKIP_GPG="${ARGOCD_E2E_SKIP_GPG:-false}"
    33  # Some tests do not work OOTB with OpenShift
    34  export ARGOCD_E2E_SKIP_OPENSHIFT="${ARGOCD_E2E_SKIP_OPENSHIFT:-false}"
    35  # Skip Helm tests
    36  export ARGOCD_E2E_SKIP_HELM="${ARGOCD_E2E_SKIP_HELM:-false}"
    37  # Skip Ksonnet tests
    38  export ARGOCD_E2E_SKIP_KSONNET="${ARGOCD_E2E_SKIP_KSONNET:-false}"
    39  
    40  ## ====================================================
    41  # no changes below this line required
    42  ## ====================================================
    43  
    44  # Unauthenticated URLs for pushing from CI
    45  #
    46  # Use `kubectl port-forward service/argocd-e2e-server 9081:9081` to set up the
    47  # listener required for this.
    48  export ARGOCD_E2E_GIT_SERVICE="http://127.0.0.1:9081/argo-e2e/testdata.git"
    49  export ARGOCD_E2E_HELM_SERVICE="http://127.0.0.1:9081/helm-repo"
    50  export ARGOCD_E2E_GIT_SERVICE_SUBMODULE="http://127.0.0.1:9081/argo-e2e/submodule.git"
    51  export ARGOCD_E2E_GIT_SERVICE_SUBMODULE_PARENT="http://127.0.0.1:9081/argo-e2e/submoduleParent.git"
    52  
    53  # URLs used during testing - usually no need to change those
    54  export ARGOCD_E2E_REPO_SSH="ssh://root@argocd-e2e-server:2222/tmp/argo-e2e/testdata.git"
    55  export ARGOCD_E2E_REPO_SSH_SUBMODULE="ssh://root@argocd-e2e-server:2222/tmp/argo-e2e/submodule.git"
    56  export ARGOCD_E2E_REPO_SSH_SUBMODULE_PARENT="ssh://root@argocd-e2e-server:2222/tmp/argo-e2e/submoduleParent.git"
    57  export ARGOCD_E2E_REPO_HTTPS="https://argocd-e2e-server:9443/argo-e2e/testdata.git"
    58  export ARGOCD_E2E_REPO_HTTPS_CLIENT_CERT="https://argocd-e2e-server:9444/argo-e2e/testdata.git"
    59  export ARGOCD_E2E_REPO_HTTPS_SUBMODULE="https://argocd-e2e-server:9443/argo-e2e/submodule.git"
    60  export ARGOCD_E2E_REPO_HTTPS_SUBMODULE_PARENT="https://argocd-e2e-server:9443/argo-e2e/submoduleParent.git"
    61  export ARGOCD_E2E_REPO_HELM="https://argocd-e2e-server:9444/helm-repo"
    62  export ARGOCD_E2E_REPO_DEFAULT="http://argocd-e2e-server:9081/argo-e2e/testdata.git"
    63  
    64  "$@"