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 351d287d88 Add tests for flux trace command
Add tests for flux trace command that fake out the kubernetes client,
load objects from a yaml file and create them in the client, and
assert on the output of the trace command to an expected golden file.

This is a follow up from the suggestions in PR https://github.com/fluxcd/flux2/pull/1626 which suggested that additional
testing would be helpful. This test approach is modeled after the helm command tests.

This required some changes to the kubernetes client setup to make it
possible to use a fake. If we agree this pattern makes sense, it can be
applied to other commands.

Signed-off-by: Allen Porter <allen@thebends.org>
4 years ago
..
testdata/trace Add tests for flux trace command 4 years ago
alert.go Format go imports 4 years ago
alert_provider.go Format go imports 4 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
completion.go Rename `gotk` binary to `flux` 5 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 Fix yq example for create secret git 4 years ago
create_secret_helm.go Tidy up command descriptions 4 years ago
create_secret_tls.go Tidy up command descriptions 4 years ago
create_source.go Rename `gotk` binary to `flux` 5 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 Tidy up command descriptions 4 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` 5 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` 5 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 add an example to the status-selector flag's description 4 years ago
get_alert.go implement status selector 4 years ago
get_alertprovider.go implement status selector 4 years ago
get_all.go Add get all command 4 years ago
get_helmrelease.go implement status selector 4 years ago
get_image.go Add support for getting resources by name 4 years ago
get_image_all.go Use image API v1beta1 4 years ago
get_image_policy.go implement status selector 4 years ago
get_image_repository.go implement status selector 4 years ago
get_image_update.go implement status selector 4 years ago
get_kustomization.go implement status selector 4 years ago
get_receiver.go implement status selector 4 years ago
get_source.go Add support for getting resources by name 4 years ago
get_source_all.go Add get all command 4 years ago
get_source_bucket.go implement status selector 4 years ago
get_source_chart.go implement status selector 4 years ago
get_source_git.go implement status selector 4 years ago
get_source_helm.go implement status selector 4 years ago
helmrelease.go Format go imports 4 years ago
image.go Use image API v1beta1 4 years ago
install.go chore: remove deprecated io/ioutil 4 years ago
kustomization.go Format go imports 4 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 Add tests for flux trace command 4 years ago
manifests.embed.go Improve build process embedded manifests 4 years ago
object.go Implement get all for sources and images 4 years ago
receiver.go Format go imports 4 years ago
reconcile.go Format go imports 4 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` 5 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 Implement get all for sources and images 4 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 Add tests for flux trace command 4 years ago
trace_test.go Add tests for flux trace command 4 years ago
uninstall.go Tidy up command descriptions 4 years ago
version.go Embed the install manifests in flux binary 4 years ago