Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 2a8b4e3

Browse files
committed
test: remove gereric unit tests from nutanix meta patch handler
1 parent 30cb4d9 commit 2a8b4e3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright 2024 D2iQ, Inc. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package mutation
5+
6+
import (
7+
"testing"
8+
9+
"sigs.k8s.io/controller-runtime/pkg/manager"
10+
11+
"github.com/d2iq-labs/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/handlers/mutation"
12+
)
13+
14+
func metaPatchGeneratorFunc(mgr manager.Manager) func() mutation.GeneratePatches {
15+
return func() mutation.GeneratePatches {
16+
return MetaPatchHandler(mgr).(mutation.GeneratePatches)
17+
}
18+
}
19+
20+
func workerPatchGeneratorFunc() func() mutation.GeneratePatches {
21+
return func() mutation.GeneratePatches {
22+
return MetaWorkerPatchHandler().(mutation.GeneratePatches)
23+
}
24+
}
25+
26+
func TestGeneratePatches(t *testing.T) {
27+
t.Parallel()
28+
29+
mgr := testEnv.Manager
30+
31+
}

0 commit comments

Comments
 (0)