@@ -367,7 +367,7 @@ func (s *DashboardIntegrationTestSuite) TestGetDashboardSummary() {
367
367
endpoint := & datastore.Endpoint {
368
368
UID : "abc" ,
369
369
ProjectID : s .DefaultProject .UID ,
370
- Title : "test-app" ,
370
+ Name : "test-app" ,
371
371
Secrets : datastore.Secrets {},
372
372
SupportEmail : "test@suport.com" ,
373
373
CreatedAt : time .Now (),
@@ -691,7 +691,7 @@ func (s *EndpointIntegrationTestSuite) Test_GetEndpoint_ValidEndpoint() {
691
691
dbEndpoint , err := endpointRepo .FindEndpointByID (context .Background (), endpointID , s .DefaultProject .UID )
692
692
require .NoError (s .T (), err )
693
693
require .Equal (s .T (), endpoint .UID , dbEndpoint .UID )
694
- require .Equal (s .T (), endpoint .Title , dbEndpoint .Title )
694
+ require .Equal (s .T (), endpoint .Name , dbEndpoint .Name )
695
695
}
696
696
697
697
func (s * EndpointIntegrationTestSuite ) Test_GetEndpoints_ValidEndpoints () {
@@ -759,8 +759,8 @@ func (s *EndpointIntegrationTestSuite) Test_CreateEndpoint() {
759
759
endpointRepo := postgres .NewEndpointRepo (s .ConvoyApp .A .DB , s .ConvoyApp .A .Cache )
760
760
dbEndpoint , err := endpointRepo .FindEndpointByID (context .Background (), endpoint .UID , s .DefaultProject .UID )
761
761
require .NoError (s .T (), err )
762
- require .Equal (s .T (), endpointTitle , dbEndpoint .Title )
763
- require .Equal (s .T (), endpointURL , dbEndpoint .TargetURL )
762
+ require .Equal (s .T (), endpointTitle , dbEndpoint .Name )
763
+ require .Equal (s .T (), endpointURL , dbEndpoint .Url )
764
764
}
765
765
766
766
func (s * EndpointIntegrationTestSuite ) Test_CreateEndpoint_NoName () {
@@ -849,9 +849,9 @@ func (s *EndpointIntegrationTestSuite) Test_UpdateEndpoint() {
849
849
dbEndpoint , err := endpointRepo .FindEndpointByID (context .Background (), endpointID , s .DefaultProject .UID )
850
850
require .NoError (s .T (), err )
851
851
require .Equal (s .T (), endpoint .UID , dbEndpoint .UID )
852
- require .Equal (s .T (), title , dbEndpoint .Title )
852
+ require .Equal (s .T (), title , dbEndpoint .Name )
853
853
require .Equal (s .T (), supportEmail , dbEndpoint .SupportEmail )
854
- require .Equal (s .T (), endpointURL , dbEndpoint .TargetURL )
854
+ require .Equal (s .T (), endpointURL , dbEndpoint .Url )
855
855
}
856
856
857
857
func (s * EndpointIntegrationTestSuite ) Test_DeleteEndpoint () {
@@ -920,8 +920,8 @@ func (s *EndpointIntegrationTestSuite) Test_CreateEndpoint_With_Custom_Authentic
920
920
var endpoint datastore.Endpoint
921
921
parseResponse (s .T (), w .Result (), & endpoint )
922
922
923
- require .Equal (s .T (), title , endpoint .Title )
924
- require .Equal (s .T (), endpointURL , endpoint .TargetURL )
923
+ require .Equal (s .T (), title , endpoint .Name )
924
+ require .Equal (s .T (), endpointURL , endpoint .Url )
925
925
require .Equal (s .T (), datastore .EndpointAuthenticationType ("api_key" ), endpoint .Authentication .Type )
926
926
require .Equal (s .T (), "x-api-key" , endpoint .Authentication .ApiKey .HeaderName )
927
927
require .Equal (s .T (), "testapikey" , endpoint .Authentication .ApiKey .HeaderValue )
@@ -1121,7 +1121,7 @@ func (s *EventIntegrationTestSuite) Test_CreateEndpointEvent_With_App_ID_Valid_E
1121
1121
// Create an Endpoint with an app ID
1122
1122
endpoint := & datastore.Endpoint {
1123
1123
UID : endpointID ,
1124
- Title : fmt .Sprintf ("TestEndpoint-%s" , endpointID ),
1124
+ Name : fmt .Sprintf ("TestEndpoint-%s" , endpointID ),
1125
1125
ProjectID : s .DefaultProject .UID ,
1126
1126
AppID : appID ,
1127
1127
Secrets : datastore.Secrets {
0 commit comments