Open shark8me opened 5 years ago
This test now fails with a different error message.
sh ERROR in (prov-metadata) (SLF4JServiceProvider.java:54) Uncaught exception, not in assertion. expected: nil actual: java.lang.NoSuchMethodError: org.apache.logging.slf4j.Log4jLoggerFactory.<init>(Lorg/apache/logging/slf4j/Log4jMarkerFactory;)V at org.apache.logging.slf4j.SLF4JServiceProvider.initialize (SLF4JServiceProvider.java:54) org.slf4j.LoggerFactory.bind (LoggerFactory.java:153) org.slf4j.LoggerFactory.performInitialization (LoggerFactory.java:141) org.slf4j.LoggerFactory.getProvider (LoggerFactory.java:413) org.slf4j.LoggerFactory.getILoggerFactory (LoggerFactory.java:405) org.slf4j.LoggerFactory.getLogger (LoggerFactory.java:354) org.apache.commons.logging.impl.SLF4JLogFactory.getInstance (SLF4JLogFactory.java:155) org.apache.commons.logging.impl.SLF4JLogFactory.getInstance (SLF4JLogFactory.java:132) org.apache.commons.logging.LogFactory.getLog (LogFactory.java:351) org.apache.http.conn.ssl.DefaultHostnameVerifier.<init> (DefaultHostnameVerifier.java:82) org.apache.http.impl.client.HttpClientBuilder.build (HttpClientBuilder.java:955) org.apache.http.impl.client.HttpClients.createDefault (HttpClients.java:56) sg.dex.starfish.impl.remote.RemoteAgent.registerAsset (RemoteAgent.java:202) sg.dex.starfish.impl.remote.RemoteAgent.registerAsset (RemoteAgent.java:196) starfish.core$register.invokeStatic (core.cljc:459) starfish.core$register.invoke (core.cljc:453) integration.test_surfer$fn__648$fn__649.invoke (test_surfer.clj:47) integration.test_surfer$fn__648.invokeStatic (test_surfer.clj:43) integration.test_surfer/fn (test_surfer.clj:42) clojure.test$test_var$fn__9737.invoke (test.clj:717) clojure.test$test_var.invokeStatic (test.clj:717) clojure.test$test_var.invoke (test.clj:708) clojure.test$test_vars$fn__9763$fn__9768.invoke (test.clj:735) clojure.test$default_fixture.invokeStatic (test.clj:687) clojure.test$default_fixture.invoke (test.clj:683) clojure.test$test_vars$fn__9763.invoke (test.clj:735) clojure.test$default_fixture.invokeStatic (test.clj:687) clojure.test$default_fixture.invoke (test.clj:683) clojure.test$test_vars.invokeStatic (test.clj:731) clojure.test$test_all_vars.invokeStatic (test.clj:737)
Hi @shark8me, how did you run the tests?
mvn exec:java
on Surfer's develop branch (locally), or using the now out of date VM running Surferlein test :only integration.test-surfer
A PR in this commit should fix this.
Running surfer integration test with
lein test :only integration.surfer-test
fails with the following exception.The asset IDs look visually similar but are not.
-- ERROR in (register-with-surfer) (RemoteAgent.java:351) Uncaught exception, not in assertion. expected: nil actual: sg.dex.starfish.exception.StarfishValidationException: Expected asset ID: 1a791d9a7b5ea5a3b9ce1849937a23b79078d79496134928d7580ce7f40f544a but got metadata with hash: 1a791d9a7b5ea5a3b9ce1849937a23b79078d79496134928d7580ce7f40f544a at sg.dex.starfish.impl.remote.RemoteAgent.getAsset (RemoteAgent.java:351) sg.dex.starfish.impl.remote.RemoteAgent.createRemoteAsset (RemoteAgent.java:255) sg.dex.starfish.impl.remote.RemoteAgent.registerRemoteAsset (RemoteAgent.java:231) sg.dex.starfish.impl.remote.RemoteAgent.registerAsset (RemoteAgent.java:222) starfish.core$register.invokeStatic (core.cljc:373) starfish.core$register.invoke (core.cljc:370) integration.test_surfer$fn808$fn809.invoke (test_surfer.clj:22) integration.test_surfer$fn808.invokeStatic (test_surfer.clj:19) integration.test_surfer/fn (test_surfer.clj:18) clojure.test$test_var$fn9737.invoke (test.clj:717) clojure.test$test_var.invokeStatic (test.clj:717) clojure.test$test_var.invoke (test.clj:708) clojure.test$test_vars$fn9763$fn9768.invoke (test.clj:735) clojure.test$default_fixture.invokeStatic (test.clj:687) clojure.test$default_fixture.invoke (test.clj:683) clojure.test$test_vars$fn9763.invoke (test.clj:735) clojure.test$default_fixture.invokeStatic (test.clj:687) clojure.test$default_fixture.invoke (test.clj:683) clojure.test$test_vars.invokeStatic (test.clj:731) clojure.test$test_all_vars.invokeStatic (test.clj:737) clojure.test$test_ns.invokeStatic (test.clj:758) clojure.test$test_ns.invoke (test.clj:743) user$eval224$fn__345.invoke (form-init910697969203306422.clj:1) clojure.lang.AFn.applyToHelper (AFn.java:156) clojure.lang.AFn.applyTo (AFn.java:144) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.injected$compose_hooks$fn154.doInvoke (form-init910697969203306422.clj:1) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:665) clojure.core$apply.invoke (core.clj:660) leiningen.core.injected$run_hooks.invokeStatic (form-init910697969203306422.clj:1) leiningen.core.injected$run_hooks.invoke (form-init910697969203306422.clj:1) leiningen.core.injected$prepare_for_hooks$fn159$fn160.doInvoke (form-init910697969203306422.clj:1) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$map$fn5866.invoke (core.clj:2755) clojure.lang.LazySeq.sval (LazySeq.java:42) clojure.lang.LazySeq.seq (LazySeq.java:51) clojure.lang.Cons.next (Cons.java:39) clojure.lang.RT.boundedLength (RT.java:1792) clojure.lang.RestFn.applyTo (RestFn.java:130) clojure.core$apply.invokeStatic (core.clj:667) clojure.test$run_tests.invokeStatic (test.clj:768) clojure.test$run_tests.doInvoke (test.clj:768) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:665) clojure.core$apply.invoke (core.clj:660) user$eval224$fn357$fn410.invoke (form-init910697969203306422.clj:1) user$eval224$fn357$fn358.invoke (form-init910697969203306422.clj:1) user$eval224$fn357.invoke (form-init910697969203306422.clj:1) user$eval224.invokeStatic (form-init910697969203306422.clj:1) user$eval224.invoke (form-init910697969203306422.clj:1) clojure.lang.Compiler.eval (Compiler.java:7177) clojure.lang.Compiler.eval (Compiler.java:7167) clojure.lang.Compiler.load (Compiler.java:7636) clojure.lang.Compiler.loadFile (Compiler.java:7574) clojure.main$load_script.invokeStatic (main.clj:475) clojure.main$init_opt.invokeStatic (main.clj:477) clojure.main$init_opt.invoke (main.clj:477) clojure.main$initialize.invokeStatic (main.clj:508) clojure.main$null_opt.invokeStatic (main.clj:542) clojure.main$null_opt.invoke (main.clj:539) clojure.main$main.invokeStatic (main.clj:664) clojure.main$main.doInvoke (main.clj:616) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.Var.applyTo (Var.java:705) clojure.main.main (main.java:40)
Ran 2 tests containing 2 assertions. 0 failures, 2 errors. Tests failed.