From 5ffb6f51f7343d45327645158bb64a8b40f29201 Mon Sep 17 00:00:00 2001 From: novikovmu Date: Fri, 23 Sep 2022 14:17:35 +0300 Subject: [PATCH 1/3] MSP-1045 fix routes --- routes/routes.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/routes.go b/routes/routes.go index c2cd8e7..33260fb 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -27,25 +27,25 @@ func Handler(wrapper endpoint.Wrapper, c Controllers) isp.BackendServiceServer { func endpointDescriptors(c Controllers) []cluster.EndpointDescriptor { return []cluster.EndpointDescriptor{ { - Path: "script/execute", + Path: "script/script/execute", Inner: true, UserAuthRequired: false, Handler: c.Script.Execute, }, { - Path: "script/batch_execute", + Path: "script/script/batch_execute", Inner: true, UserAuthRequired: false, Handler: c.Script.BatchExecute, }, { - Path: "script/execute_by_id", + Path: "script/script/execute_by_id", Inner: true, UserAuthRequired: false, Handler: c.Script.ExecuteById, }, { - Path: "script/batch_execute_by_ids", + Path: "script/script/batch_execute_by_ids", Inner: true, UserAuthRequired: false, Handler: c.Script.BatchExecuteById, From cdf59f6e8e4b37109631f6e2eca2a97add815a68 Mon Sep 17 00:00:00 2001 From: novikovmu Date: Fri, 23 Sep 2022 14:17:42 +0300 Subject: [PATCH 2/3] MSP-1045 changelog --- .version | 2 +- CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.version b/.version index 56fea8a..13d683c 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.0.0 \ No newline at end of file +3.0.1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e0d4317..a39aff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +### v3.0.1 +* Название ручек сервиса изменены для обеспечения обратной совместимости ### v3.0.0 * миграция сервиса на isp-kit * миграция на версию GO 1.19.1 From 1d6b6ada0664d50f2e63d216fd6911fe77186d8e Mon Sep 17 00:00:00 2001 From: novikovmu Date: Fri, 23 Sep 2022 14:21:57 +0300 Subject: [PATCH 3/3] MSP-1045 update api test --- tests/api_script_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/api_script_test.go b/tests/api_script_test.go index bc4a693..b9a9e3d 100644 --- a/tests/api_script_test.go +++ b/tests/api_script_test.go @@ -58,7 +58,7 @@ func (s *ApiScript) TestExternalInvoke() { Arg: struct{}{}, } res := domain.ScriptResp{} - err := s.apiCli.Invoke("script/execute"). + err := s.apiCli.Invoke("script/script/execute"). JsonRequestBody(req). ReadJsonResponse(&res). Do(context.Background()) @@ -74,7 +74,7 @@ func (s *ApiScript) TestExecuteHappyPath() { }, } res := domain.ScriptResp{} - err := s.apiCli.Invoke("script/execute"). + err := s.apiCli.Invoke("script/script/execute"). JsonRequestBody(req). ReadJsonResponse(&res). Do(context.Background()) @@ -88,7 +88,7 @@ func (s *ApiScript) TestExecuteByIdHappyPath() { Arg: struct{}{}, } res := domain.ScriptResp{} - err := s.apiCli.Invoke("script/execute_by_id"). + err := s.apiCli.Invoke("script/script/execute_by_id"). JsonRequestBody(req). ReadJsonResponse(&res). Do(context.Background()) @@ -102,7 +102,7 @@ func (s *ApiScript) TestExecuteByIdNotFound() { Arg: struct{}{}, } res := domain.ScriptResp{} - err := s.apiCli.Invoke("script/execute_by_id"). + err := s.apiCli.Invoke("script/script/execute_by_id"). JsonRequestBody(req). ReadJsonResponse(&res). Do(context.Background()) @@ -124,7 +124,7 @@ func (s *ApiScript) TestBatchExecuteHappyPath() { }, } res := make([]domain.ScriptResp, 0) - err := s.apiCli.Invoke("script/batch_execute"). + err := s.apiCli.Invoke("script/script/batch_execute"). JsonRequestBody(req). ReadJsonResponse(&res). Do(context.Background()) @@ -148,7 +148,7 @@ func (s *ApiScript) TestBatchExecuteMixedNotFound() { }, } res := make([]domain.ScriptResp, 0) - err := s.apiCli.Invoke("script/batch_execute"). + err := s.apiCli.Invoke("script/script/batch_execute"). JsonRequestBody(req). ReadJsonResponse(&res). Do(context.Background()) @@ -169,7 +169,7 @@ func (s *ApiScript) TestBatchExecuteByIdHappyPath() { Arg: struct{}{}, } res := make([]domain.ScriptResp, 0) - err := s.apiCli.Invoke("script/batch_execute_by_ids"). + err := s.apiCli.Invoke("script/script/batch_execute_by_ids"). JsonRequestBody(req). ReadJsonResponse(&res). Do(context.Background())