@@ -104,7 +104,7 @@ func TestAuthenticate(t *testing.T) {
104104 t .Run ("missing authorization header" , func (t * testing.T ) {
105105 req := & t_api.Request {
106106 Head : map [string ]string {},
107- Data : & t_api.EchoRequest {Data : "test" },
107+ Data : & t_api.EchoRequest {Data : "test" },
108108 }
109109 _ , err := auth .authenticate (req )
110110 if err == nil {
@@ -127,7 +127,7 @@ func TestAuthenticate(t *testing.T) {
127127
128128 req := & t_api.Request {
129129 Head : map [string ]string {"authorization" : token },
130- Data : & t_api.EchoRequest {Data : "test" },
130+ Data : & t_api.EchoRequest {Data : "test" },
131131 }
132132 returnedClaims , err := auth .authenticate (req )
133133 if err != nil {
@@ -157,7 +157,7 @@ func TestAuthenticate(t *testing.T) {
157157
158158 req := & t_api.Request {
159159 Head : map [string ]string {"authorization" : token },
160- Data : & t_api.EchoRequest {Data : "test" },
160+ Data : & t_api.EchoRequest {Data : "test" },
161161 }
162162 _ , err = auth .authenticate (req )
163163 if err == nil {
@@ -264,7 +264,7 @@ func TestMatchPromisePrefix(t *testing.T) {
264264 // Callback requests
265265 {
266266 name : "PromiseRegisterRequest - matching prefix" ,
267- payload : & t_api.PromiseRegisterRequest {PromiseId : "test.123" },
267+ payload : & t_api.CallbackCreateRequest {PromiseId : "test.123" },
268268 prefix : "test" ,
269269 shouldMatch : true ,
270270 },
@@ -387,7 +387,7 @@ func TestProcess(t *testing.T) {
387387
388388 req := & t_api.Request {
389389 Head : map [string ]string {"authorization" : token },
390- Data : & t_api.PromiseGetRequest {Id : "app.promise.1" },
390+ Data : & t_api.PromiseGetRequest {Id : "app.promise.1" },
391391 }
392392 apiErr := auth .Process (req )
393393 if apiErr != nil {
@@ -409,7 +409,7 @@ func TestProcess(t *testing.T) {
409409
410410 req := & t_api.Request {
411411 Head : map [string ]string {"authorization" : token },
412- Data : & t_api.PromiseGetRequest {Id : "any.prefix.promise" },
412+ Data : & t_api.PromiseGetRequest {Id : "any.prefix.promise" },
413413 }
414414 apiErr := auth .Process (req )
415415 if apiErr != nil {
@@ -432,7 +432,7 @@ func TestProcess(t *testing.T) {
432432
433433 req := & t_api.Request {
434434 Head : map [string ]string {"authorization" : token },
435- Data : & t_api.PromiseGetRequest {Id : "other.promise.1" },
435+ Data : & t_api.PromiseGetRequest {Id : "other.promise.1" },
436436 }
437437 apiErr := auth .Process (req )
438438 if apiErr == nil {
@@ -443,7 +443,7 @@ func TestProcess(t *testing.T) {
443443 t .Run ("full flow - missing token" , func (t * testing.T ) {
444444 req := & t_api.Request {
445445 Head : map [string ]string {},
446- Data : & t_api.PromiseGetRequest {Id : "app:promise:1" },
446+ Data : & t_api.PromiseGetRequest {Id : "app:promise:1" },
447447 }
448448 apiErr := auth .Process (req )
449449 if apiErr == nil {
@@ -506,7 +506,7 @@ func TestProcessMultipleRequestTypes(t *testing.T) {
506506 },
507507 {
508508 name : "PromiseRegisterRequest - authorized" ,
509- payload : & t_api.PromiseRegisterRequest {PromiseId : "test:promise" },
509+ payload : & t_api.CallbackCreateRequest {PromiseId : "test:promise" },
510510 shouldPass : true ,
511511 },
512512 {
@@ -525,7 +525,7 @@ func TestProcessMultipleRequestTypes(t *testing.T) {
525525 t .Run (tt .name , func (t * testing.T ) {
526526 req := & t_api.Request {
527527 Head : metadata ,
528- Data : tt .payload ,
528+ Data : tt .payload ,
529529 }
530530 apiErr := auth .Process (req )
531531 if tt .shouldPass && apiErr != nil {
0 commit comments