yangwwei commented on a change in pull request #72: Add ability to support 3rd
party K8s operator integration
URL:
https://github.com/apache/incubator-yunikorn-k8shim/pull/72#discussion_r382856099
##########
File path: pkg/cache/context_recovery_test.go
##########
@@ -22,22 +20,21 @@ import (
"testing"
"time"
+ "github.com/apache/incubator-yunikorn-k8shim/pkg/appmgmt/interfaces"
+ "github.com/apache/incubator-yunikorn-k8shim/pkg/client"
"gotest.tools/assert"
v1 "k8s.io/api/core/v1"
apis "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/apache/incubator-yunikorn-k8shim/pkg/common/events"
"github.com/apache/incubator-yunikorn-k8shim/pkg/common/test"
"github.com/apache/incubator-yunikorn-k8shim/pkg/common/utils"
- "github.com/apache/incubator-yunikorn-k8shim/pkg/conf"
"github.com/apache/incubator-yunikorn-k8shim/pkg/dispatcher"
)
func TestNodeRecoveringState(t *testing.T) {
- mockAPI := test.NewSchedulerAPIMock()
- mockClient := test.NewKubeClientMock()
-
- context := NewContextInternal(mockAPI, &conf.SchedulerConf{},
mockClient, true)
+ apiProvide4test := client.NewMockedAPIProvider()
Review comment:
thx done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]