github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/einterfaces/mocks/SamlInterface.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make einterfaces-mocks`. 4 5 package mocks 6 7 import ( 8 model "github.com/vnforks/kid/v5/model" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // SamlInterface is an autogenerated mock type for the SamlInterface type 13 type SamlInterface struct { 14 mock.Mock 15 } 16 17 // BuildRequest provides a mock function with given fields: relayState 18 func (_m *SamlInterface) BuildRequest(relayState string) (*model.SamlAuthRequest, *model.AppError) { 19 ret := _m.Called(relayState) 20 21 var r0 *model.SamlAuthRequest 22 if rf, ok := ret.Get(0).(func(string) *model.SamlAuthRequest); ok { 23 r0 = rf(relayState) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(*model.SamlAuthRequest) 27 } 28 } 29 30 var r1 *model.AppError 31 if rf, ok := ret.Get(1).(func(string) *model.AppError); ok { 32 r1 = rf(relayState) 33 } else { 34 if ret.Get(1) != nil { 35 r1 = ret.Get(1).(*model.AppError) 36 } 37 } 38 39 return r0, r1 40 } 41 42 // ConfigureSP provides a mock function with given fields: 43 func (_m *SamlInterface) ConfigureSP() error { 44 ret := _m.Called() 45 46 var r0 error 47 if rf, ok := ret.Get(0).(func() error); ok { 48 r0 = rf() 49 } else { 50 r0 = ret.Error(0) 51 } 52 53 return r0 54 } 55 56 // DoLogin provides a mock function with given fields: encodedXML, relayState 57 func (_m *SamlInterface) DoLogin(encodedXML string, relayState map[string]string) (*model.User, *model.AppError) { 58 ret := _m.Called(encodedXML, relayState) 59 60 var r0 *model.User 61 if rf, ok := ret.Get(0).(func(string, map[string]string) *model.User); ok { 62 r0 = rf(encodedXML, relayState) 63 } else { 64 if ret.Get(0) != nil { 65 r0 = ret.Get(0).(*model.User) 66 } 67 } 68 69 var r1 *model.AppError 70 if rf, ok := ret.Get(1).(func(string, map[string]string) *model.AppError); ok { 71 r1 = rf(encodedXML, relayState) 72 } else { 73 if ret.Get(1) != nil { 74 r1 = ret.Get(1).(*model.AppError) 75 } 76 } 77 78 return r0, r1 79 } 80 81 // GetMetadata provides a mock function with given fields: 82 func (_m *SamlInterface) GetMetadata() (string, *model.AppError) { 83 ret := _m.Called() 84 85 var r0 string 86 if rf, ok := ret.Get(0).(func() string); ok { 87 r0 = rf() 88 } else { 89 r0 = ret.Get(0).(string) 90 } 91 92 var r1 *model.AppError 93 if rf, ok := ret.Get(1).(func() *model.AppError); ok { 94 r1 = rf() 95 } else { 96 if ret.Get(1) != nil { 97 r1 = ret.Get(1).(*model.AppError) 98 } 99 } 100 101 return r0, r1 102 }