Documentation ¶
Index ¶
- Constants
- func FakeStartSyncer(t *testing.T, ctx *synccontext.RegisterContext, ...) (*synccontext.SyncContext, syncer.Object)
- func NewFakeRegisterContext(pClient *testingutil.FakeIndexClient, vClient *testingutil.FakeIndexClient) *synccontext.RegisterContext
- func RunTests(t *testing.T, tests []*SyncTest)
- type Compare
- type SyncTest
Constants ¶
View Source
const (
FakeClientResourceVersion = "999"
)
Variables ¶
This section is empty.
Functions ¶
func FakeStartSyncer ¶
func FakeStartSyncer(t *testing.T, ctx *synccontext.RegisterContext, create func(ctx *synccontext.RegisterContext) (syncer.Object, error)) (*synccontext.SyncContext, syncer.Object)
func NewFakeRegisterContext ¶
func NewFakeRegisterContext(pClient *testingutil.FakeIndexClient, vClient *testingutil.FakeIndexClient) *synccontext.RegisterContext
Types ¶
type SyncTest ¶
type SyncTest struct { Name string InitialPhysicalState []runtime.Object InitialVirtualState []runtime.Object ExpectedPhysicalState map[schema.GroupVersionKind][]runtime.Object ExpectedVirtualState map[schema.GroupVersionKind][]runtime.Object Sync func(ctx *synccontext.RegisterContext) Compare Compare }
Click to show internal directories.
Click to hide internal directories.