@@ -134,8 +134,8 @@ func (suite *SendOdpEventTestSuite) assertError(rec *httptest.ResponseRecorder,
134
134
135
135
func (suite * SendOdpEventTestSuite ) TestSendOdpEvent () {
136
136
sb := event.Event {
137
- Action : "any " ,
138
- Type : "any " ,
137
+ Action : "1 " ,
138
+ Type : "2 " ,
139
139
Identifiers :
map [
string ]
string {
"fs-user-id" :
"test-user" ,
"email" :
"[email protected] " },
140
140
Data : nil ,
141
141
}
@@ -164,8 +164,8 @@ func (suite *SendOdpEventTestSuite) TestSendOdpEvent() {
164
164
suite .Equal (1 , len (events ))
165
165
166
166
actualEvent := events [0 ]
167
- suite .Equal ("any " , actualEvent .Action )
168
- suite .Equal ("any " , actualEvent .Type )
167
+ suite .Equal ("1 " , actualEvent .Action )
168
+ suite .Equal ("2 " , actualEvent .Type )
169
169
suite .
Equal (
map [
string ]
string {
"email" :
"[email protected] " ,
"fs_user_id" :
"test-user" },
actualEvent .
Identifiers )
170
170
suite .Equal ("go-sdk" , actualEvent .Data ["data_source" ])
171
171
suite .Equal ("sdk" , actualEvent .Data ["data_source_type" ])
@@ -177,7 +177,7 @@ func (suite *SendOdpEventTestSuite) TestSendOdpEvent() {
177
177
178
178
func (suite * SendOdpEventTestSuite ) TestSendOdpEventMissingAction () {
179
179
db := event.Event {
180
- Type : "any " ,
180
+ Type : "1 " ,
181
181
Identifiers :
map [
string ]
string {
"fs-user-id" :
"testUser" ,
"email" :
"[email protected] " },
182
182
Data : nil ,
183
183
}
@@ -196,7 +196,7 @@ func (suite *SendOdpEventTestSuite) TestSendOdpEventMissingAction() {
196
196
func (suite * SendOdpEventTestSuite ) TestSendOdpEventEmptyAction () {
197
197
db := event.Event {
198
198
Action : "" ,
199
- Type : "any " ,
199
+ Type : "1 " ,
200
200
Identifiers :
map [
string ]
string {
"fs-user-id" :
"testUser" ,
"email" :
"[email protected] " },
201
201
Data : nil ,
202
202
}
@@ -214,8 +214,8 @@ func (suite *SendOdpEventTestSuite) TestSendOdpEventEmptyAction() {
214
214
215
215
func (suite * SendOdpEventTestSuite ) TestSendOdpEventMissingIdentifiers () {
216
216
db := event.Event {
217
- Action : "any " ,
218
- Type : "any " ,
217
+ Action : "1 " ,
218
+ Type : "2 " ,
219
219
Data : nil ,
220
220
}
221
221
@@ -232,8 +232,8 @@ func (suite *SendOdpEventTestSuite) TestSendOdpEventMissingIdentifiers() {
232
232
233
233
func (suite * SendOdpEventTestSuite ) TestSendOdpEventEmptyIdentifiers () {
234
234
db := event.Event {
235
- Action : "any " ,
236
- Type : "any " ,
235
+ Action : "1 " ,
236
+ Type : "2 " ,
237
237
Identifiers : map [string ]string {},
238
238
Data : nil ,
239
239
}
0 commit comments