(name, namespace string)
| 30 | ) |
| 31 | |
| 32 | func newSnapshotGroup(name, namespace string) *snapshotgroup.SnapshotGroup { |
| 33 | return &snapshotgroup.SnapshotGroup{ |
| 34 | TypeMeta: metav1.TypeMeta{APIVersion: snapshotgroup.SchemeGroupVersion.String()}, |
| 35 | ObjectMeta: metav1.ObjectMeta{ |
| 36 | Name: name, |
| 37 | Namespace: namespace, |
| 38 | Annotations: map[string]string{}, |
| 39 | }, |
| 40 | Spec: snapshotgroup.SnapshotGroupSpec{ |
| 41 | Schedule: []snapshotgroup.SnapshotSchedule{ |
| 42 | { |
| 43 | Every: "1 second", |
| 44 | Keep: 1, |
| 45 | }, |
| 46 | }, |
| 47 | }, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func newTestController() (*Controller, *kube.Client) { |
| 52 | kube.SetFakeClient() |
no outgoing calls
no test coverage detected