mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-13 04:18:30 +00:00
* Rewrite controller sync logic to support workflow-based sync * Redesign hook implementation to support generic resources as hooks
26 lines
597 B
Go
26 lines
597 B
Go
package controller
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1"
|
|
log "github.com/sirupsen/logrus"
|
|
"k8s.io/client-go/rest"
|
|
)
|
|
|
|
func newTestSyncCtx() *syncContext {
|
|
return &syncContext{
|
|
comparison: &v1alpha1.ComparisonResult{},
|
|
config: &rest.Config{},
|
|
namespace: "test-namespace",
|
|
syncOp: &v1alpha1.SyncOperation{},
|
|
opState: &v1alpha1.OperationState{},
|
|
log: log.WithFields(log.Fields{"application": "fake-app"}),
|
|
}
|
|
}
|
|
|
|
func TestRunWorkflows(t *testing.T) {
|
|
// syncCtx := newTestSyncCtx()
|
|
// syncCtx.doWorkflowSync(nil, nil)
|
|
|
|
}
|