You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux2/cmd/flux
Allen Porter d45501a129 Use shared envTest for unit tests
Speed up unit tests by using a shared envTest. This requires each
test to use its own namespace to avoid clobbering objects for
other tests. Tests previously took around 8 seconds each, and now
the initial test takes 2 seconds with follow up tests taking less
than a second each.

Also update existing tests that use a fixed namespace to use a
generated namespace.

Share gold file template function with yaml files.

Remove the testClusterMode, and instead rely on MainTest to do
the appropriate test setup and rootArgs flag setup. Move the
rootArg flag setup out of NewTestEnvKubeManager to avoid
side effects.

A follow up change can be to push the individual setups
from NewTestEnvKubeManager() into their respective TestMain since
the harness share little code.

Signed-off-by: Allen Porter <allen@thebends.org>
3 years ago
..
testdata Use shared envTest for unit tests 3 years ago
alert.go Request reconcile using patch instead of update 3 years ago
alert_provider.go Request reconcile using patch instead of update 3 years ago
bootstrap.go chore: remove deprecated io/ioutil 4 years ago
bootstrap_git.go chore: remove deprecated io/ioutil 4 years ago
bootstrap_github.go chore: remove deprecated io/ioutil 4 years ago
bootstrap_gitlab.go chore: remove deprecated io/ioutil 4 years ago
check.go Tidy up command descriptions 4 years ago
check_test.go Use shared envTest for unit tests 3 years ago
completion.go Rename `gotk` binary to `flux` 4 years ago
completion_bash.go Tidy up command descriptions 4 years ago
completion_fish.go Tidy up command descriptions 4 years ago
completion_powershell.go Tidy up command descriptions 4 years ago
completion_zsh.go Tidy up command descriptions 4 years ago
create.go Refactor cmd global variables into structs 4 years ago
create_alert.go Switch StringArrayVar flags to use StringSliceVar 4 years ago
create_alertprovider.go Tidy up command descriptions 4 years ago
create_helmrelease.go chore: remove deprecated io/ioutil 4 years ago
create_image.go Tidy up command descriptions 4 years ago
create_image_policy.go Use image API v1beta1 4 years ago
create_image_repository.go Use image API v1beta1 4 years ago
create_image_update.go Use image API v1beta1 4 years ago
create_kustomization.go Switch StringArrayVar flags to use StringSliceVar 4 years ago
create_receiver.go Switch StringArrayVar flags to use StringSliceVar 4 years ago
create_secret.go Add `sourcesecret` and `kustomization` manifestgen 4 years ago
create_secret_git.go feat: display success message while create secrets via `flux` cli. 3 years ago
create_secret_helm.go feat: display success message while create secrets via `flux` cli. 3 years ago
create_secret_tls.go feat: display success message while create secrets via `flux` cli. 3 years ago
create_source.go Rename `gotk` binary to `flux` 4 years ago
create_source_bucket.go chore: remove deprecated io/ioutil 4 years ago
create_source_git.go chore: remove deprecated io/ioutil 4 years ago
create_source_helm.go chore: remove deprecated io/ioutil 4 years ago
create_tenant.go Adds a watch flag to the get command 3 years ago
delete.go Refactor cmd global variables into structs 4 years ago
delete_alert.go Format go imports 4 years ago
delete_alertprovider.go Format go imports 4 years ago
delete_helmrelease.go Format go imports 4 years ago
delete_image.go Rename flux delete auto to flux delete image 4 years ago
delete_image_policy.go Use image API v1beta1 4 years ago
delete_image_repository.go Use image API v1beta1 4 years ago
delete_image_update.go Use image API v1beta1 4 years ago
delete_kustomization.go Format go imports 4 years ago
delete_receiver.go Format go imports 4 years ago
delete_source.go Rename `gotk` binary to `flux` 4 years ago
delete_source_bucket.go Format go imports 4 years ago
delete_source_git.go Format go imports 4 years ago
delete_source_helm.go Format go imports 4 years ago
docgen.go Remove ' command' from Flux CLI docs title 4 years ago
export.go Refactor all remaining create, delete, export, get command to use adapter 4 years ago
export_alert.go Format go imports 4 years ago
export_alertprovider.go Format go imports 4 years ago
export_helmrelease.go Format go imports 4 years ago
export_image.go Rename "auto" subcommands to "image" 4 years ago
export_image_policy.go Use image API v1beta1 4 years ago
export_image_repository.go Use image API v1beta1 4 years ago
export_image_update.go Use image API v1beta1 4 years ago
export_kustomization.go Format go imports 4 years ago
export_receiver.go Format go imports 4 years ago
export_secret.go Format go imports 4 years ago
export_source.go Rename `gotk` binary to `flux` 4 years ago
export_source_bucket.go Format go imports 4 years ago
export_source_git.go Format go imports 4 years ago
export_source_helm.go Format go imports 4 years ago
get.go Refactor e2e tests 3 years ago
get_alert.go Adds a watch flag to the get command 3 years ago
get_alertprovider.go Adds a watch flag to the get command 3 years ago
get_all.go Adds a watch flag to the get command 3 years ago
get_helmrelease.go Adds a watch flag to the get command 3 years ago
get_image.go Adds a watch flag to the get command 3 years ago
get_image_all.go Adds a watch flag to the get command 3 years ago
get_image_policy.go Adds a watch flag to the get command 3 years ago
get_image_repository.go Adds a watch flag to the get command 3 years ago
get_image_update.go Adds a watch flag to the get command 3 years ago
get_kustomization.go Adds a watch flag to the get command 3 years ago
get_receiver.go Adds a watch flag to the get command 3 years ago
get_source.go Adds a watch flag to the get command 3 years ago
get_source_all.go Adds a watch flag to the get command 3 years ago
get_source_bucket.go Adds a watch flag to the get command 3 years ago
get_source_chart.go Adds a watch flag to the get command 3 years ago
get_source_git.go Adds a watch flag to the get command 3 years ago
get_source_helm.go Adds a watch flag to the get command 3 years ago
helmrelease.go Request reconcile using patch instead of update 3 years ago
helmrelease_test.go Use shared envTest for unit tests 3 years ago
image.go Request reconcile using patch instead of update 3 years ago
image_test.go Use shared envTest for unit tests 3 years ago
install.go chore: remove deprecated io/ioutil 4 years ago
kustomization.go Request reconcile using patch instead of update 3 years ago
kustomization_test.go Use shared envTest for unit tests 3 years ago
log.go Add Warningf to logger interface amd impl 4 years ago
logs.go Update flux logs examples 4 years ago
main.go Remove fakeclient and use testenv for flux cmd tests 3 years ago
main_e2e_test.go Use shared envTest for unit tests 3 years ago
main_test.go Use shared envTest for unit tests 3 years ago
main_unit_test.go Use shared envTest for unit tests 3 years ago
manifests.embed.go Improve build process embedded manifests 4 years ago
object.go Request reconcile using patch instead of update 3 years ago
receiver.go Request reconcile using patch instead of update 3 years ago
reconcile.go Request reconcile using patch instead of update 3 years ago
reconcile_alert.go Format go imports 4 years ago
reconcile_alertprovider.go Format go imports 4 years ago
reconcile_helmrelease.go Fix reconcile with source in a different namespace 4 years ago
reconcile_image.go Rename "auto" subcommands to "image" 4 years ago
reconcile_image_repository.go Use image API v1beta1 4 years ago
reconcile_image_updateauto.go Use image API v1beta1 4 years ago
reconcile_kustomization.go Fix reconcile with source in a different namespace 4 years ago
reconcile_receiver.go Format go imports 4 years ago
reconcile_source.go Rename `gotk` binary to `flux` 4 years ago
reconcile_source_bucket.go Format go imports 4 years ago
reconcile_source_git.go Format go imports 4 years ago
reconcile_source_helm.go Format go imports 4 years ago
reconcile_with_source.go Fix reconcile with source in a different namespace 4 years ago
resume.go Adds suspend and resume all cmd 4 years ago
resume_alert.go Adds suspend and resume all cmd 4 years ago
resume_helmrelease.go Adds suspend and resume all cmd 4 years ago
resume_image.go Rename "auto" subcommands to "image" 4 years ago
resume_image_repository.go Use image API v1beta1 4 years ago
resume_image_updateauto.go Use image API v1beta1 4 years ago
resume_kustomization.go Adds suspend and resume all cmd 4 years ago
resume_receiver.go Adds suspend and resume all cmd 4 years ago
resume_source.go Add resume source commands 4 years ago
resume_source_bucket.go Adds suspend and resume all cmd 4 years ago
resume_source_chart.go Adds suspend and resume all cmd 4 years ago
resume_source_git.go Adds suspend and resume all cmd 4 years ago
resume_source_helm.go Adds suspend and resume all cmd 4 years ago
source.go Request reconcile using patch instead of update 3 years ago
status.go Move `StatusChecker` to separate and generic pkg 4 years ago
suspend.go Adds suspend and resume all cmd 4 years ago
suspend_alert.go Adds suspend and resume all cmd 4 years ago
suspend_helmrelease.go Adds suspend and resume all cmd 4 years ago
suspend_image.go Rename "auto" subcommands to "image" 4 years ago
suspend_image_repository.go Use image API v1beta1 4 years ago
suspend_image_updateauto.go Use image API v1beta1 4 years ago
suspend_kustomization.go Adds suspend and resume all cmd 4 years ago
suspend_receiver.go Adds suspend and resume all cmd 4 years ago
suspend_source.go Add suspend source commands 4 years ago
suspend_source_bucket.go Adds suspend and resume all cmd 4 years ago
suspend_source_chart.go Adds suspend and resume all cmd 4 years ago
suspend_source_git.go Adds suspend and resume all cmd 4 years ago
suspend_source_helm.go Adds suspend and resume all cmd 4 years ago
trace.go Remove fakeclient and use testenv for flux cmd tests 3 years ago
trace_test.go Use shared envTest for unit tests 3 years ago
uninstall.go Tidy up command descriptions 4 years ago
version.go Embed the install manifests in flux binary 4 years ago
version_test.go Use shared envTest for unit tests 3 years ago