e2e_test/

directory
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: Apache-2.0

README

E2E test for argocd-commenter

Test environment

Here is a diagram of the test environment.

graph LR
  subgraph Local Cluster
    app1[Application app1]
    app2[Application app2]
    appN[Application appN]
    argo[Argo CD]
  end
  subgraph GitHub Repository<br>int128/argocd-commenter-e2e-test
    ref[Branch e2e-test/GITHUB_RUN_NUMBER/main]
  end
  app1 -.source.-> ref
  app2 -.source.-> ref
  appN -.source.-> ref
  kubectl --create--> argo
  kubectl --create--> app1
  kubectl --create--> app2
  kubectl --create--> appN

Local development

Prerequisites
  • docker
  • kind
  • kustomize
  • kubectl
  • make
  • git
  • gh
How to run

Set up a branch to deploy.

gh repo clone int128/argocd-commenter-e2e-test argocd-commenter-e2e-test-repository
make setup-fixture-branch

Set up a cluster and Argo CD.

make cluster
make deploy-argocd
make wait-for-apps

You can access the cluster.

% export KUBECONFIG=output/kubeconfig.yaml
% k -n argocd get apps
NAME   SYNC STATUS   HEALTH STATUS
app1   Synced        Progressing
app2   Synced        Progressing
app3   Synced        Healthy

You can run the controller locally.

make -C .. run
Clean up
make delete-cluster

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL