· 8 years ago · Jun 26, 2018, 08:06 AM
1test
2Extract /home/yan/.embedpostgresql/postgresql-9.6.8-1-linux-x64-binaries.tar.gz START
3...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................[ERROR] >> i.s.h.package$: request failed
4java.lang.RuntimeException: null
5 at io.sportadvisor.http.route.user.UserRoute.$anonfun$handleSignUp$4(UserRoute.scala:81)
6 at akka.http.scaladsl.server.directives.RouteDirectives.$anonfun$complete$1(RouteDirectives.scala:47)
7 at akka.http.scaladsl.server.StandardRoute$$anon$1.apply(StandardRoute.scala:19)
8 at akka.http.scaladsl.server.StandardRoute$$anon$1.apply(StandardRoute.scala:19)
9 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
10 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
11 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRouteResult$2(BasicDirectives.scala:59)
12 at akka.http.scaladsl.server.directives.FutureDirectives.$anonfun$onComplete$3(FutureDirectives.scala:37)
13 at akka.http.scaladsl.util.FastFuture$.$anonfun$transformWith$1(FastFuture.scala:37)
14 at akka.http.scaladsl.util.FastFuture$.strictTransform$1(FastFuture.scala:41)
15 at akka.http.scaladsl.util.FastFuture$.transformWith$extension1(FastFuture.scala:45)
16 at akka.http.scaladsl.util.FastFuture$.transformWith$extension0(FastFuture.scala:37)
17 at akka.http.scaladsl.server.directives.FutureDirectives.$anonfun$onComplete$2(FutureDirectives.scala:37)
18 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
19 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRouteResult$2(BasicDirectives.scala:59)
20 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
21 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRequestContext$2(BasicDirectives.scala:41)
22 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
23 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
24 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
25 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
26 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
27 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRouteResultWith$2(BasicDirectives.scala:65)
28 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
29 at akka.http.scaladsl.server.directives.ExecutionDirectives.$anonfun$handleExceptions$2(ExecutionDirectives.scala:32)
30 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRequestContext$2(BasicDirectives.scala:41)
31 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
32 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRequestContext$2(BasicDirectives.scala:41)
33 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
34 at akka.http.scaladsl.server.directives.ExecutionDirectives.$anonfun$handleExceptions$2(ExecutionDirectives.scala:32)
35 at akka.http.scaladsl.testkit.RouteTest$TildeArrow$$anon$1.apply(RouteTest.scala:162)
36 at akka.http.scaladsl.testkit.RouteTest$TildeArrow$$anon$1.apply(RouteTest.scala:150)
37 at akka.http.scaladsl.testkit.RouteTest$WithTransformation2.$tilde$greater(RouteTest.scala:125)
38 at io.sportadvisor.http.route.UserRouteTest$$anon$8.<init>(UserRouteTest.scala:97)
39 at io.sportadvisor.http.route.UserRouteTest.$anonfun$new$15(UserRouteTest.scala:94)
40 at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
41 at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
42 at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
43 at org.scalatest.Transformer.apply(Transformer.scala:22)
44 at org.scalatest.Transformer.apply(Transformer.scala:20)
45 at org.scalatest.WordSpecLike$$anon$1.apply(WordSpecLike.scala:1078)
46 at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
47 at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
48 at org.scalatest.WordSpec.withFixture(WordSpec.scala:1881)
49 at org.scalatest.WordSpecLike.invokeWithFixture$1(WordSpecLike.scala:1076)
50 at org.scalatest.WordSpecLike.$anonfun$runTest$1(WordSpecLike.scala:1088)
51 at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
52 at org.scalatest.WordSpecLike.runTest(WordSpecLike.scala:1088)
53 at org.scalatest.WordSpecLike.runTest$(WordSpecLike.scala:1070)
54 at org.scalatest.WordSpec.runTest(WordSpec.scala:1881)
55 at org.scalatest.WordSpecLike.$anonfun$runTests$1(WordSpecLike.scala:1147)
56 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:396)
57 at scala.collection.immutable.List.foreach(List.scala:389)
58 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
59 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:373)
60 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:410)
61 at scala.collection.immutable.List.foreach(List.scala:389)
62 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
63 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:373)
64 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:410)
65 at scala.collection.immutable.List.foreach(List.scala:389)
66 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
67 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:379)
68 at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
69 at org.scalatest.WordSpecLike.runTests(WordSpecLike.scala:1147)
70 at org.scalatest.WordSpecLike.runTests$(WordSpecLike.scala:1146)
71 at org.scalatest.WordSpec.runTests(WordSpec.scala:1881)
72 at org.scalatest.Suite.run(Suite.scala:1147)
73 at org.scalatest.Suite.run$(Suite.scala:1129)
74 at org.scalatest.WordSpec.org$scalatest$WordSpecLike$$super$run(WordSpec.scala:1881)
75 at org.scalatest.WordSpecLike.$anonfun$run$1(WordSpecLike.scala:1192)
76 at org.scalatest.SuperEngine.runImpl(Engine.scala:521)
77 at org.scalatest.WordSpecLike.run(WordSpecLike.scala:1192)
78 at org.scalatest.WordSpecLike.run$(WordSpecLike.scala:1190)
79 at io.sportadvisor.http.route.UserRouteTest.org$scalatest$BeforeAndAfterAll$$super$run(UserRouteTest.scala:26)
80 at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
81 at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
82 at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
83 at io.sportadvisor.http.route.UserRouteTest.run(UserRouteTest.scala:26)
84 at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
85 at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:507)
86 at sbt.TestRunner.runTest$1(TestFramework.scala:106)
87 at sbt.TestRunner.run(TestFramework.scala:117)
88 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:262)
89 at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:233)
90 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:262)
91 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:262)
92 at sbt.TestFunction.apply(TestFramework.scala:271)
93 at sbt.Tests$.$anonfun$toTask$1(Tests.scala:281)
94 at sbt.std.Transform$$anon$3.$anonfun$apply$2(System.scala:46)
95 at sbt.std.Transform$$anon$4.work(System.scala:66)
96 at sbt.Execute.$anonfun$submit$2(Execute.scala:262)
97 at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
98 at sbt.Execute.work(Execute.scala:271)
99 at sbt.Execute.$anonfun$submit$1(Execute.scala:262)
100 at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
101 at sbt.CompletionService$$anon$2.call(CompletionService.scala:36)
102 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
103 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
104 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
105 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
106 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
107 at java.lang.Thread.run(Thread.java:748)
108[ERROR] >> i.s.h.package$: request failed
109java.lang.RuntimeException: null
110 at io.sportadvisor.http.route.user.UserRoute.$anonfun$handleSignIn$2(UserRoute.scala:94)
111 at akka.http.scaladsl.server.directives.RouteDirectives.$anonfun$complete$1(RouteDirectives.scala:47)
112 at akka.http.scaladsl.server.StandardRoute$$anon$1.apply(StandardRoute.scala:19)
113 at akka.http.scaladsl.server.StandardRoute$$anon$1.apply(StandardRoute.scala:19)
114 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRouteResult$2(BasicDirectives.scala:59)
115 at akka.http.scaladsl.server.directives.FutureDirectives.$anonfun$onComplete$3(FutureDirectives.scala:37)
116 at akka.http.scaladsl.util.FastFuture$.$anonfun$transformWith$1(FastFuture.scala:37)
117 at akka.http.scaladsl.util.FastFuture$.strictTransform$1(FastFuture.scala:41)
118 at akka.http.scaladsl.util.FastFuture$.transformWith$extension1(FastFuture.scala:45)
119 at akka.http.scaladsl.util.FastFuture$.transformWith$extension0(FastFuture.scala:37)
120 at akka.http.scaladsl.server.directives.FutureDirectives.$anonfun$onComplete$2(FutureDirectives.scala:37)
121 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
122 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRouteResult$2(BasicDirectives.scala:59)
123 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
124 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRequestContext$2(BasicDirectives.scala:41)
125 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
126 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$2(RouteConcatenation.scala:47)
127 at akka.http.scaladsl.util.FastFuture$.strictTransform$1(FastFuture.scala:41)
128 at akka.http.scaladsl.util.FastFuture$.transformWith$extension1(FastFuture.scala:45)
129 at akka.http.scaladsl.util.FastFuture$.flatMap$extension(FastFuture.scala:26)
130 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
131 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
132 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
133 at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$1(RouteConcatenation.scala:44)
134 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRouteResultWith$2(BasicDirectives.scala:65)
135 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
136 at akka.http.scaladsl.server.directives.ExecutionDirectives.$anonfun$handleExceptions$2(ExecutionDirectives.scala:32)
137 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRequestContext$2(BasicDirectives.scala:41)
138 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
139 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$mapRequestContext$2(BasicDirectives.scala:41)
140 at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:152)
141 at akka.http.scaladsl.server.directives.ExecutionDirectives.$anonfun$handleExceptions$2(ExecutionDirectives.scala:32)
142 at akka.http.scaladsl.testkit.RouteTest$TildeArrow$$anon$1.apply(RouteTest.scala:162)
143 at akka.http.scaladsl.testkit.RouteTest$TildeArrow$$anon$1.apply(RouteTest.scala:150)
144 at akka.http.scaladsl.testkit.RouteTest$WithTransformation2.$tilde$greater(RouteTest.scala:125)
145 at io.sportadvisor.http.route.UserRouteTest$$anon$12.<init>(UserRouteTest.scala:144)
146 at io.sportadvisor.http.route.UserRouteTest.$anonfun$new$24(UserRouteTest.scala:139)
147 at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
148 at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
149 at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
150 at org.scalatest.Transformer.apply(Transformer.scala:22)
151 at org.scalatest.Transformer.apply(Transformer.scala:20)
152 at org.scalatest.WordSpecLike$$anon$1.apply(WordSpecLike.scala:1078)
153 at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
154 at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
155 at org.scalatest.WordSpec.withFixture(WordSpec.scala:1881)
156 at org.scalatest.WordSpecLike.invokeWithFixture$1(WordSpecLike.scala:1076)
157 at org.scalatest.WordSpecLike.$anonfun$runTest$1(WordSpecLike.scala:1088)
158 at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
159 at org.scalatest.WordSpecLike.runTest(WordSpecLike.scala:1088)
160 at org.scalatest.WordSpecLike.runTest$(WordSpecLike.scala:1070)
161 at org.scalatest.WordSpec.runTest(WordSpec.scala:1881)
162 at org.scalatest.WordSpecLike.$anonfun$runTests$1(WordSpecLike.scala:1147)
163 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:396)
164 at scala.collection.immutable.List.foreach(List.scala:389)
165 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
166 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:373)
167 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:410)
168 at scala.collection.immutable.List.foreach(List.scala:389)
169 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
170 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:373)
171 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:410)
172 at scala.collection.immutable.List.foreach(List.scala:389)
173 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
174 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:379)
175 at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
176 at org.scalatest.WordSpecLike.runTests(WordSpecLike.scala:1147)
177 at org.scalatest.WordSpecLike.runTests$(WordSpecLike.scala:1146)
178 at org.scalatest.WordSpec.runTests(WordSpec.scala:1881)
179 at org.scalatest.Suite.run(Suite.scala:1147)
180 at org.scalatest.Suite.run$(Suite.scala:1129)
181 at org.scalatest.WordSpec.org$scalatest$WordSpecLike$$super$run(WordSpec.scala:1881)
182 at org.scalatest.WordSpecLike.$anonfun$run$1(WordSpecLike.scala:1192)
183 at org.scalatest.SuperEngine.runImpl(Engine.scala:521)
184 at org.scalatest.WordSpecLike.run(WordSpecLike.scala:1192)
185 at org.scalatest.WordSpecLike.run$(WordSpecLike.scala:1190)
186 at io.sportadvisor.http.route.UserRouteTest.org$scalatest$BeforeAndAfterAll$$super$run(UserRouteTest.scala:26)
187 at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
188 at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
189 at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
190 at io.sportadvisor.http.route.UserRouteTest.run(UserRouteTest.scala:26)
191 at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
192 at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:507)
193 at sbt.TestRunner.runTest$1(TestFramework.scala:106)
194 at sbt.TestRunner.run(TestFramework.scala:117)
195 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:262)
196 at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:233)
197 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:262)
198 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:262)
199 at sbt.TestFunction.apply(TestFramework.scala:271)
200 at sbt.Tests$.$anonfun$toTask$1(Tests.scala:281)
201 at sbt.std.Transform$$anon$3.$anonfun$apply$2(System.scala:46)
202 at sbt.std.Transform$$anon$4.work(System.scala:66)
203 at sbt.Execute.$anonfun$submit$2(Execute.scala:262)
204 at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
205 at sbt.Execute.work(Execute.scala:271)
206 at sbt.Execute.$anonfun$submit$1(Execute.scala:262)
207 at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
208 at sbt.CompletionService$$anon$2.call(CompletionService.scala:36)
209 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
210 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
211 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
212 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
213 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
214 at java.lang.Thread.run(Thread.java:748)
215[WARN] >> i.s.h.r.UserRouteTest$Context$$anon$1: Api error. User with id 1 not found
216HttpResponse(200 OK,List(),HttpEntity.Strict(application/json,{"code":200,"data":{"data":{"id":1,"email":"testemail","name":"testname","language":"ru"},"_links":{"self":{"href":"/api/users/1"}}}}),HttpProtocol(HTTP/1.1))
217...................................................................................................................................................Extract /home/yan/.embedpostgresql/postgresql-9.6.8-1-linux-x64-binaries.tar.gz DONE
218[INFO] >> d.f.e.p.r.Executable: start AbstractPostgresConfig{storage=Storage{dbDir=/tmp/postgresql-embed-0d0da930-0ac0-44c4-b19d-291c0a00e9e5/db-content-c37746d1-5185-4f55-b52f-af795cebfdb8, dbName='database-name', isTmpDir=true}, network=Net{host='127.0.0.1', port=25535}, timeout=Timeout{startupTimeout=15000}, credentials=Credentials{username='user', password='password'}, args=[], additionalInitDbParams=[-E, SQL_ASCII, --locale=C, --lc-collate=C, --lc-ctype=C]}
219[info] DirectivesTest:
220[info] Select language
221[info] - should Empty lang header return `en`
222[info] - should Undefined lang header return `en`
223[info] should Valid lang header
224[info] when has en/ru
225[info] - should ru-RU, ru;q=0.9, en;q=0.8 return `ru`
226[info] - should en-US, en;q=0.9, ru;q=0.8 return `en`
227[info] when has en and another
228[info] - should fr-CH, fr;q=0.9, en;q=0.8 return en
229[info] authorize
230[info] - should reject 401 if header not contains
231[info] - should reject if token is expired
232[info] - should return user id if all success
233[info] check access
234[info] - should reject 403
235[info] - should return true
236[info] UserServiceTest:
237[info] UserService
238[info] when signUp
239[info] - should return valid auth token
240[info] - should return user already registered
241[info] when signIn
242[info] - should return valid auth token
243[info] - should return empty if user not found
244[info] - should return empty if password invalid
245[info] when changeMail
246[info] - should return dublication error if email already registered
247[info] - should return error if user with id not foud
248[info] - should return Right(Unit) if all success
249[info] when approvalChangeEmail
250[info] - should return false if token not found
251[info] - should return false if token is invalid
252[info] - should return false if token expired
253[info] - should return false is user not found
254[info] - should return true if all success
255[info] - should return true if remove tokens return error
256[info] when changeAccount
257[info] - should return None if user not found
258[info] - should return Some(new userdata) if all ok
259[info] - should return None if save end with error
260[info] when changePassword
261[info] - should return user not found
262[info] - should return password mismatch
263[info] - should return unit if success
264[info] I18nTest:
265[info] I18n ru
266[info] - should t(language) return РуÑÑкий
267[info] - should tÑ(Casual, language) return РуÑÑкий
268[info] - should tn(I have one apple, 1) return `Я имею 1 Ñблоко`
269[info] - should tn(I have one apple, 2) return `Я имею неÑколько(%d) Ñблок`
270[info] - should tn(I have one apple, 2, 2) return `Я имею неÑколько(2) Ñблок`
271[info] I18n en
272[info] - should t(language) return English
273[info] I18n undefined
274[info] - should t(language) return English
275[info] UserRouteTest:
276[info] UserRoute
277[info] when POST /api/users/sign-up
278[info] - should return 200 and token if sign up successful
279[info] - should return 400 if name invalid
280[info] - should return 400 if email invalid
281[info] - should return 400 if password invalid
282[info] - should return 400 if email is exists
283[info] - should return 400 if email and password invalid
284[info] - should return 500 if was internal error
285[info] - should return 400 if user not agree EULA
286[info] when POST /api/users/sign-in
287[info] - should return 200 and token if auth successful
288[info] - should return 400 and empty response if auth invalid
289[info] - should return 500 if was internal error
290[info] when PUT /api/users/{id}/email
291[info] - should return 400 if email is exists
292[info] - should return 400 if email is invalid
293[info] - should return 401 if user unauthorized
294[info] - should return 403
295[info] - should return 200 if all success
296[info] - should return 500 if user not found
297[info] when POST /api/users/email
298[info] - should return 200 if change success
299[info] - should return 400 if token invalid
300[info] when GET /api/users/me
301[info] - should return 400 if have not token
302[info] - should return redirect
303[info] when GET /api/users/{id}
304[info] - should return 400 if have not token
305[info] - should return 403 if user hasnt access
306[info] - should return 404 if user not found
307[info] - should return 200 and user data
308[info] when PUT /api/users/{id}
309[info] - should return 400 if name is empty
310[info] - should return 400 if language not supported
311[info] - should return 403 if initiate change another user
312[info] - should return 200 if language is empty
313[info] - should return 500 if return None
314[info] when PUT /api/users/{id}/password
315[info] - should return 400 if new password invalid
316[info] - should return 400 if old password mismatch
317[info] - should return 200 if success
318[info] ResponseMarshallerTest:
319[info] Response
320[info] when EmptyResponse
321[info] - should serialize and deserialize
322[info] when FailResponse
323[info] - should serialize and deserialize
324[info] when ErrorResponse
325[info] - should serialize and deserialize
326[info] when DataResponse
327[info] - should serialize and deserialize [ObjectData[D]]
328[info] - should serialize and deserialize [CollectionData]
329[info] - should serialize and deserialize [ObjectData[C]]
330[info] Data
331[info] when ObjectData
332[info] - should serialize and deserealize
333[info] when CollectionData
334[info] - should serialize and deserealize
335[ERROR] >> r.y.q.e.p.PostgresProcess: Failed to read PID file (File '/tmp/postgresql-embed-0d0da930-0ac0-44c4-b19d-291c0a00e9e5/db-content-c37746d1-5185-4f55-b52f-af795cebfdb8/postmaster.pid' does not exist)
336java.io.FileNotFoundException: File '/tmp/postgresql-embed-0d0da930-0ac0-44c4-b19d-291c0a00e9e5/db-content-c37746d1-5185-4f55-b52f-af795cebfdb8/postmaster.pid' does not exist
337 at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
338 at org.apache.commons.io.FileUtils.readLines(FileUtils.java:1783)
339 at org.apache.commons.io.FileUtils.readLines(FileUtils.java:1819)
340 at ru.yandex.qatools.embed.postgresql.PostgresProcess.onAfterProcessStart(PostgresProcess.java:255)
341 at de.flapdoodle.embed.process.runtime.AbstractProcess.<init>(AbstractProcess.java:116)
342 at ru.yandex.qatools.embed.postgresql.AbstractPGProcess.<init>(AbstractPGProcess.java:19)
343 at ru.yandex.qatools.embed.postgresql.PostgresProcess.<init>(PostgresProcess.java:68)
344 at ru.yandex.qatools.embed.postgresql.PostgresExecutable.start(PostgresExecutable.java:25)
345 at ru.yandex.qatools.embed.postgresql.PostgresExecutable.start(PostgresExecutable.java:13)
346 at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:108)
347 at ru.yandex.qatools.embed.postgresql.EmbeddedPostgres.start(EmbeddedPostgres.java:173)
348 at ru.yandex.qatools.embed.postgresql.EmbeddedPostgres.start(EmbeddedPostgres.java:138)
349 at io.sportadvisor.InMemoryPostgresStorage$.<init>(InMemoryPostgresStorage.scala:20)
350 at io.sportadvisor.InMemoryPostgresStorage$.<clinit>(InMemoryPostgresStorage.scala)
351 at io.sportadvisor.core.user.MailTokensRepositoryTest$Context.$init$(MailTokensRepositoryTest.scala:30)
352 at io.sportadvisor.core.user.MailTokensRepositoryTest$$anon$1.<init>(MailTokensRepositoryTest.scala:16)
353 at io.sportadvisor.core.user.MailTokensRepositoryTest.$anonfun$new$3(MailTokensRepositoryTest.scala:16)
354 at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
355 at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
356 at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
357 at org.scalatest.Transformer.apply(Transformer.scala:22)
358 at org.scalatest.Transformer.apply(Transformer.scala:20)
359 at org.scalatest.WordSpecLike$$anon$1.apply(WordSpecLike.scala:1078)
360 at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
361 at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
362 at org.scalatest.WordSpec.withFixture(WordSpec.scala:1881)
363 at org.scalatest.WordSpecLike.invokeWithFixture$1(WordSpecLike.scala:1076)
364 at org.scalatest.WordSpecLike.$anonfun$runTest$1(WordSpecLike.scala:1088)
365 at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
366 at org.scalatest.WordSpecLike.runTest(WordSpecLike.scala:1088)
367 at org.scalatest.WordSpecLike.runTest$(WordSpecLike.scala:1070)
368 at org.scalatest.WordSpec.runTest(WordSpec.scala:1881)
369 at org.scalatest.WordSpecLike.$anonfun$runTests$1(WordSpecLike.scala:1147)
370 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:396)
371 at scala.collection.immutable.List.foreach(List.scala:389)
372 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
373 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:373)
374 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:410)
375 at scala.collection.immutable.List.foreach(List.scala:389)
376 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
377 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:373)
378 at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:410)
379 at scala.collection.immutable.List.foreach(List.scala:389)
380 at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
381 at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:379)
382 at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
383 at org.scalatest.WordSpecLike.runTests(WordSpecLike.scala:1147)
384 at org.scalatest.WordSpecLike.runTests$(WordSpecLike.scala:1146)
385 at org.scalatest.WordSpec.runTests(WordSpec.scala:1881)
386 at org.scalatest.Suite.run(Suite.scala:1147)
387 at org.scalatest.Suite.run$(Suite.scala:1129)
388 at org.scalatest.WordSpec.org$scalatest$WordSpecLike$$super$run(WordSpec.scala:1881)
389 at org.scalatest.WordSpecLike.$anonfun$run$1(WordSpecLike.scala:1192)
390 at org.scalatest.SuperEngine.runImpl(Engine.scala:521)
391 at org.scalatest.WordSpecLike.run(WordSpecLike.scala:1192)
392 at org.scalatest.WordSpecLike.run$(WordSpecLike.scala:1190)
393 at io.sportadvisor.core.user.MailTokensRepositoryTest.org$scalatest$BeforeAndAfterAll$$super$run(MailTokensRepositoryTest.scala:12)
394 at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
395 at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
396 at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
397 at io.sportadvisor.core.user.MailTokensRepositoryTest.run(MailTokensRepositoryTest.scala:12)
398 at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
399 at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:507)
400 at sbt.TestRunner.runTest$1(TestFramework.scala:106)
401 at sbt.TestRunner.run(TestFramework.scala:117)
402 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:262)
403 at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:233)
404 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:262)
405 at sbt.TestFramework$$anon$2$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:262)
406 at sbt.TestFunction.apply(TestFramework.scala:271)
407 at sbt.Tests$.$anonfun$toTask$1(Tests.scala:281)
408 at sbt.std.Transform$$anon$3.$anonfun$apply$2(System.scala:46)
409 at sbt.std.Transform$$anon$4.work(System.scala:66)
410 at sbt.Execute.$anonfun$submit$2(Execute.scala:262)
411 at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
412 at sbt.Execute.work(Execute.scala:271)
413 at sbt.Execute.$anonfun$submit$1(Execute.scala:262)
414 at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
415 at sbt.CompletionService$$anon$2.call(CompletionService.scala:36)
416 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
417 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
418 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
419 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
420 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
421 at java.lang.Thread.run(Thread.java:748)
422[INFO] >> d.f.e.p.r.Executable: start AbstractPostgresConfig{storage=Storage{dbDir=/tmp/postgresql-embed-0d0da930-0ac0-44c4-b19d-291c0a00e9e5/db-content-c37746d1-5185-4f55-b52f-af795cebfdb8, dbName='database-name', isTmpDir=true}, network=Net{host='127.0.0.1', port=25535}, timeout=Timeout{startupTimeout=15000}, credentials=Credentials{username='user', password='password'}, args=[database-name], additionalInitDbParams=[]}
423[INFO] >> d.f.e.p.r.Executable: start AbstractPostgresConfig{storage=Storage{dbDir=/tmp/postgresql-embed-0d0da930-0ac0-44c4-b19d-291c0a00e9e5/db-content-c37746d1-5185-4f55-b52f-af795cebfdb8, dbName='database-name', isTmpDir=true}, network=Net{host='127.0.0.1', port=25535}, timeout=Timeout{startupTimeout=15000}, credentials=Credentials{username='user', password='password'}, args=[], additionalInitDbParams=[-E, SQL_ASCII, --locale=C, --lc-collate=C, --lc-ctype=C]}
424jdbc:postgresql://127.0.0.1:25535/database-name?user=user&password=password
425[INFO] >> o.f.c.i.u.VersionPrinter: Flyway 4.2.0 by Boxfuse
426[INFO] >> o.f.c.i.d.DbSupportFactory: Database: jdbc:postgresql://127.0.0.1:25535/database-name (PostgreSQL 9.6)
427[INFO] >> o.f.c.i.c.DbClean: Successfully cleaned schema "public" (execution time 00:00.016s)
428[INFO] >> o.f.c.i.c.DbValidate: Successfully validated 4 migrations (execution time 00:00.031s)
429[INFO] >> o.f.c.i.m.MetaDataTableImpl: Creating Metadata table: "public"."schema_version"
430[INFO] >> o.f.c.i.c.DbMigrate: Current version of schema "public": << Empty Schema >>
431[INFO] >> o.f.c.i.c.DbMigrate: Migrating schema "public" to version 1 - Create account table
432[INFO] >> o.f.c.i.c.DbMigrate: Migrating schema "public" to version 2 - Create refresh token table
433[INFO] >> o.f.c.i.c.DbMigrate: Migrating schema "public" to version 3 - Create mail token table
434[INFO] >> o.f.c.i.c.DbMigrate: Migrating schema "public" to version 4 - Add language to user
435[INFO] >> o.f.c.i.c.DbMigrate: Successfully applied 4 migrations to schema "public" (execution time 00:00.084s).
436[INFO] >> c.z.h.HikariDataSource: HikariPool-6 - Starting...
437[INFO] >> c.z.h.HikariDataSource: HikariPool-6 - Start completed.
438[INFO] >> i.s.u.d.SAPostgresProfile: >>> binding uuid -> java.util.UUID
439[INFO] >> i.s.u.d.SAPostgresProfile: >>> binding text -> java.lang.String
440[INFO] >> i.s.u.d.SAPostgresProfile: >>> binding bool -> Boolean
441[WARN] >> s.u.AsyncExecutor: Having maxConnection > maxThreads can result in deadlocks if transactions or database locks are used.
442[info] MailTokensRepositoryTest:
443[info] MailChangesTokenRepositorySQL
444[info] when save and get
445[info] - should successful save
446[info] UserRepositoryTest:
447[info] UserRepositorySQL
448[info] when save
449[info] - should successful save
450[info] - should duplicate error on new user
451[info] - should successful update
452[info] when get
453[info] - should return Some(user)
454[info] - should return None
455[info] TokenRepositoryTest:
456[info] TokenRepositorySQL
457[info] when save
458[info] - should return token
459[info] when removeByDate
460[info] - should not remove valid long-live refresh token
461[info] - should remove expired long-live refresh token
462[info] - should not remove valid refresh token
463[info] - should remove expired refresh token
464[info] when removeByUser
465[info] - should not remove by user
466[info] - should remove by user
467[info] Run completed in 28 seconds, 914 milliseconds.
468[info] Total number of tests run: 91
469[info] Suites: completed 8, aborted 0
470[info] Tests: succeeded 91, failed 0, canceled 0, ignored 0, pending 0
471[info] All tests passed.
472[success] Total time: 31 s, completed 26.06.2018 12:58:25
473[IJ]sbt:SportAdvisor-Core>