mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-22 10:38:30 +02:00
Removing tests from patroni.go
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
package patroni
|
package patroni
|
||||||
|
|
||||||
//go:generate mockgen -package mocks -destination=$PWD/mocks/$GOFILE -source=$GOFILE -build_flags=-mod=vendor
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|||||||
@@ -94,4 +94,12 @@ func TestPatroniAPI(t *testing.T) {
|
|||||||
|
|
||||||
mockClient := mocks.NewMockHTTPClient(ctrl)
|
mockClient := mocks.NewMockHTTPClient(ctrl)
|
||||||
mockClient.EXPECT().Get(gomock.Any()).Return(&response)
|
mockClient.EXPECT().Get(gomock.Any()).Return(&response)
|
||||||
|
|
||||||
|
p := New(nil, mockClient)
|
||||||
|
|
||||||
|
_, err := p.GetMemberData(nil)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("Could not read Patroni data")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user