INNER CODE UNIT · Go

newTestReconciliationManager

kimdre/doco-cd · cmd/doco-cd/controlplane_test_helpers_test.go:23

func newTestReconciliationManager(t *testing.T, dependencies reconciliation.Dependencies) *reconciliation.Manager {
	t.Helper()

	if dependencies.Notifier == nil {
		notifier, err := notification.New(notification.Config{})
		if err != nil {
			t.Fatalf("failed to create test notifier: %v", err)
		}

		dependencies.Notifier = notifier
	}

	if dependencies.Contexts == nil {
		dependencies.Contexts = docker.NewContextRegistry(dependencies.DockerCLI, docker.ContextRegistryOptions{
			Quiet:         true,
			SwarmFeatures: true,
		})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…