Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Changed deprecated mapper endpoint /content-transform to /map
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Guranda committed Mar 6, 2017
1 parent f4095b1 commit 3c01cdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $GOPATH/bin/content-preview \
--source-app-health-uri "http://methode-api-uk-p.svc.ft.com/build-info" \
--source-app-panic-guide "https://sites.google.com/a/ft.com/dynamic-publishing-team/home/methode-api" \
--transform-app-name "methode-article-transformer" \
--transform-app-uri "http://methode-article-transformer-01-iw-uk-p.svc.ft.com/content-transform/" \
--transform-app-uri "http://methode-article-transformer-01-iw-uk-p.svc.ft.com/map/" \
--transform-app-host-header "methode-article-transformer" \
--transform-app-health-uri "http://methode-article-transformer-01-iw-uk-p.svc.ft.com/build-info" \
--transform-app-panic-guide "https://sites.google.com/a/ft.com/dynamic-publishing-team/methode-article-transformer-panic-guide" \
Expand All @@ -63,7 +63,7 @@ With Docker:
--env "SOURCE_APP_PANIC_GUIDE=https://sites.google.com/a/ft.com/dynamic-publishing-team/home/methode-api" \
--env "TRANSFORM_APP_NAME=methode-article-transformer" \
--env "TRANSFORM_APP_HOST_HEADER=methode-article-transformer" \
--env "TRANSFORM_APP_URI=http://$HOSTNAME:8080/content-transform/" \
--env "TRANSFORM_APP_URI=http://$HOSTNAME:8080/map/" \
--env "TRANSFORM_APP_HEALTH_URI=http://$HOSTNAME:8080/__health" \
--env "TRANSFORM_APP_PANIC_GUIDE=https://sites.google.com/a/ft.com/dynamic-publishing-team/methode-article-transformer-panic-guide" \
--env "GRAPHITE_TCP_ADDRESS=graphite.ft.com:2003" \
Expand Down
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
})
transformAppUri := app.String(cli.StringOpt{
Name: "transform-app-uri",
Value: "http://methode-article-transformer-01-iw-uk-p.svc.ft.com/content-transform/",
Value: "http://methode-article-transformer-01-iw-uk-p.svc.ft.com/map/",
Desc: "URI of the Transform Application endpoint",
EnvVar: "TRANSFORM_APP_URI",
})
Expand Down
6 changes: 3 additions & 3 deletions app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ func happyHandler(w http.ResponseWriter, r *http.Request) {
func startMethodeArticleTransformerMock(status string) {
r := mux.NewRouter()
if status == "happy" {
r.Path("/content-transform/{uuid}").Queries("preview", "true").Handler(handlers.MethodHandler{"POST": http.HandlerFunc(methodeArticleTransformerHandlerMock)})
r.Path("/map/{uuid}").Queries("preview", "true").Handler(handlers.MethodHandler{"POST": http.HandlerFunc(methodeArticleTransformerHandlerMock)})
r.Path("/build-info").Handler(handlers.MethodHandler{"GET": http.HandlerFunc(happyHandler)})
} else {
r.Path("/content-transform/{uuid}").Handler(handlers.MethodHandler{"POST": http.HandlerFunc(unhappyHandler)})
r.Path("/map/{uuid}").Handler(handlers.MethodHandler{"POST": http.HandlerFunc(unhappyHandler)})
r.Path("/build-info").Handler(handlers.MethodHandler{"GET": http.HandlerFunc(unhappyHandler)})
}

Expand Down Expand Up @@ -124,7 +124,7 @@ func startContentPreviewService() {

methodeApiUrl := methodeApiMock.URL + "/eom-file/"
nativeContentAppHealthUri := methodeApiMock.URL + "/build-info"
methodArticleTransformerUrl := methodeArticleTransformerMock.URL + "/content-transform/"
methodArticleTransformerUrl := methodeArticleTransformerMock.URL + "/map/"
transformAppHealthUrl := methodeArticleTransformerMock.URL + "/build-info"

sc := ServiceConfig{
Expand Down

0 comments on commit 3c01cdd

Please sign in to comment.