thoughtworksinc / infra-problem Goto Github PK
View Code? Open in Web Editor NEWresources for the infrastructure as code practical assessment
resources for the infrastructure as code practical assessment
The front-end throws an error when calling the newsfeed api.
frontend | 21:08:26.409 [worker-3] ERROR front-end.core - GET /
frontend | java.lang.Exception: Feed returned error
frontend | at front_end.data$handle_response.invokeStatic(data.clj:28)
frontend | at front_end.data$handle_response.invoke(data.clj:24)
frontend | at front_end.data$handle_news_response.invokeStatic(data.clj:60)
frontend | at front_end.data$handle_news_response.invoke(data.clj:58)
frontend | at front_end.core$index.invokeStatic(core.clj:18)
frontend | at front_end.core$index.invoke(core.clj:14)
frontend | at front_end.core$fn__3659.invokeStatic(core.clj:30)
frontend | at front_end.core$fn__3659.invoke(core.clj:30)
frontend | at compojure.core$wrap_response$fn__1919.invoke(core.clj:158)
frontend | at compojure.core$wrap_route_middleware$fn__1903.invoke(core.clj:128)
frontend | at compojure.core$wrap_route_info$fn__1908.invoke(core.clj:137)
frontend | at compojure.core$wrap_route_matches$fn__1912.invoke(core.clj:146)
frontend | at compojure.core$routing$fn__1927.invoke(core.clj:185)
frontend | at clojure.core$some.invokeStatic(core.clj:2701)
frontend | at clojure.core$some.invoke(core.clj:2692)
frontend | at compojure.core$routing.invokeStatic(core.clj:185)
frontend | at compojure.core$routing.doInvoke(core.clj:182)
frontend | at clojure.lang.RestFn.applyTo(RestFn.java:139)
frontend | at clojure.core$apply.invokeStatic(core.clj:667)
frontend | at clojure.core$apply.invoke(core.clj:660)
frontend | at compojure.core$routes$fn__1931.invoke(core.clj:192)
frontend | at common_utils.middleware$correlation_id_middleware$fn__2020.invoke(middleware.clj:12)
frontend | at front_end.core$wrap_exception_handling$fn__3652.invoke(core.clj:23)
frontend | at ring.middleware.reload$wrap_reload$fn__3473.invoke(reload.clj:22)
frontend | at clojure.lang.Var.invoke(Var.java:384)
frontend | at org.httpkit.server.HttpHandler.run(RingHandler.java:115)
frontend | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
frontend | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
frontend | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
frontend | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
frontend | at java.lang.Thread.run(Thread.java:748)
frontend | Caused by: org.httpkit.client.TimeoutException: idle timeout: 1000ms
frontend | at org.httpkit.client.HttpClient.clearTimeout(HttpClient.java:131)
frontend | at org.httpkit.client.HttpClient.run(HttpClient.java:496)
frontend | ... 1 common frames omitted
This is related to the hard coded timezone in the strings.
cd common-utils && lein midje
All checks (2) succeeded.
cd front-end && lein midje
FAIL "about 'data' - handle-news-response correctly processes entries" at (data.clj:22)
Expected: [{"date" #inst "2014-12-31T13:30:00.000-00:00", "published-date" #inst "2014-12-31T13:30:00.000-00:00", "title" "Title 1"}]
Actual: ({"date" #inst "2015-01-01T00:00:00.000-00:00", "published-date" #inst "2015-01-01T00:00:00.000-00:00", "title" "Title 1"})
Diffs: in [0 "date"] expected #inst "2014-12-31T13:30:00.000-00:00", was #inst "2015-01-01T00:00:00.000-00:00"
in [0 "published-date"] expected #inst "2014-12-31T13:30:00.000-00:00", was #inst "2015-01-01T00:00:00.000-00:00"
FAILURE: 1 check failed. (But 3 succeeded.)
Subprocess failed
make: *** [front-end.test] Error 1
Hi,
while executing make test
, it occurred to me that some dependency cannot get resolved properly or artifacts are missing upstream:
Log of a second run of make test
:
$ make test
cd common-utils && lein midje
WARNING: any? already refers to: #'clojure.core/any? in namespace: leiningen.midje, being replaced by: #'leiningen.midje/any?
nil
All checks (2) succeeded.
cd front-end && lein midje
WARNING: any? already refers to: #'clojure.core/any? in namespace: leiningen.midje, being replaced by: #'leiningen.midje/any?
Could not find artifact com.thoughtworks:common-utils:jar:0.1.0-SNAPSHOT in clojars (https://repo.clojars.org/)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
make: *** [front-end.test] Error 1
Error-message:
Could not find artifact com.thoughtworks:common-utils:jar:0.1.0-SNAPSHOT in clojars (https://repo.clojars.org/)
It'd be great if you could update or fix the dependencies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.