Skip to content

Commit

Permalink
Remove used manager message definition (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougangliu authored and k8s-ci-robot committed Sep 29, 2019
1 parent d92ec01 commit 1267a90
Show file tree
Hide file tree
Showing 10 changed files with 428 additions and 3,442 deletions.
17 changes: 17 additions & 0 deletions cmd/manager/v1alpha3/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,20 @@ func TestGetObservationLog(t *testing.T) {
t.Fatalf("GetObservationLog Test fail expect metrics number %d got %d", len(obs.MetricLogs), len(ret.ObservationLog.MetricLogs))
}
}

func TestDeleteObservationLog(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
s := &server{}
mockDB := mockdb.NewMockKatibDBInterface(ctrl)
dbIf = mockDB

req := &api_pb.DeleteObservationLogRequest{
TrialName: "test1-trial1",
}
mockDB.EXPECT().DeleteObservationLog(req.TrialName).Return(nil)
_, err := s.DeleteObservationLog(context.Background(), req)
if err != nil {
t.Fatalf("DeleteExperiment Error %v", err)
}
}
Loading

0 comments on commit 1267a90

Please sign in to comment.