lewismc / iPReS

iPReS - An Internationalization (i18n) Product Retrieval Service for NASA JPL's PO.DAAC
http://lewismc.github.io/iPReS/
Apache License 2.0
5 stars 1 forks source link

Tests failing in master branch #22

Open lewismc opened 9 years ago

lewismc commented 9 years ago

Hi Folks, The tests are broken in master branch

lmcgibbn@LMC-032857 /usr/local/iPReS/app(master) $ lein test

lein test app.cache-test

lein test app.core-test
[20120912-MSG02-OSDPD-L2P-MSG02_0200Z-v01.nc
 2012-09-12T02:41:26Z
 ftp://ftp.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/MSG02/OSDPD/2012/256/20120912-MSG02-OSDPD-L2P-MSG02_0200Z-v01.nc.gz
 20120912-MSG02-OSDPD-L2P-MSG02_0200Z-v01.nc
 2012-09-12T02:45:54.611000Z
 publication
 -75.11000061035156
 75.12300109863281
 -80.5510025024414
 67.36199951171875
 2012-09-12T02:00:00Z
 2012-09-12T02:12:00Z
 OSDPD-L2P-MSG02
 eng
 UTF8
 series
 Eileen Maturi
 OSDPD > NOAA Office of Satellite Data Processing and Distribution
 Technical Contact
 301-763-8102 x172
 301-763-8572
 Eileen.Maturi@noaa.gov
 Phone/FAX/E-mail
 pointOfContact
 20150413
 ISO 19115-2 Geographic information — Metadata — Part 2: Extensions for imagery and gridded data
 ISO 19115-2:2009-02-15
 eng
 US
 UTF8
 http://www.ngdc.noaa.gov/metadata/published/19115/GHRSST/ISO/CoverageExtensions.xml
 Web Browser
 A description of extensions developed at NGDC to classify coverages.
 information
 GHRSST Level 2P Atlantic Regional Skin Sea Surface Temperature from the Spinning Enhanced Visible and InfraRed Imager (SEVIRI) on the Meteosat Second Generation (MSG-2) satellite
 Sea Surface Temperature, 55W-55E and 55S-55N, at 0.05 degree resolution from MSG-02 Imager Sectors every quarter-hour
 20090727
 creation
 4
 NOAA/NESDIS/OSDPD
 originator
 NOAA/NESDIS
 Camp Springs, MD (USA)
 publisher
 The Meteosat Second Generation (MSG) satellites  are spin stabilized geostationary satellites operated by the European Organization for the Exploitation of Meteorological Satellites (EUMETSAT) to provide accurate weather monitoring data through its primary instrument the Spinning Enhanced Visible and InfraRed Imager (SEVIRI), which has the capacity to observe the Earth in 12 spectral channels. Eight of these channels are in the thermal infrared, providing among other information, observations of the temperatures of clouds, land and sea surfaces at approximately 5 km resolution with a 15 minute duty cycle. This Group for High Resolution Sea Surface Temperature (GHRSST) dataset produced by the US National Oceanographic and Atmospheric Administration (NOAA)  National Environmental Satellite, Data, and Information Service (NESDIS) is derived from the SEVIRI instrument on the second MSG satellite (also known as  Meteosat-9) that was launched on 22 December 2005. Skin sea surface temperature (SST) data are calculated from the infrared channels of SEVIRI at full resolution every 15 minutes. L2P data products with Single Sensor Error Statistics (SSES) are then derived following the GHRSST-PP Data Processing Specification (GDS) version 1.5.
 These data are produced by NOAA/NESDIS funded by NESDIS Office of System Development
 onGoing
 Eileen Maturi
 OSDPD > NOAA Office of Satellite Data Processing and Distribution
 301-763-8102 x172
 301-763-8572
 Eileen.Maturi@noaa.gov
 pointOfContact
 NETCDF
 3
 GZIP
 Earth Science > Oceans > Ocean Temperature > Sea Surface Temperature > Sea Surface Skin Temperature
 theme
 NASA/GCMD Earth Science Keywords
 Eastern Atlantic
 place
 NASA/GCMD Location Keywords
 None
 None
 grid
 eng
 UTF8
 true
 -81
 81
 -73
 73
 true
 2009-11-22T12:30:00Z
 referenceInformation
 lat
 float
 lon
 float
 time
 int
 PO.DAAC User Services
 NASA/JPL/PODAAC > Physical Oceanography Distributed Active Archive Center, Jet Propulsion Laboratory, NASA
 4800 Oak Grove Drive
 Pasadena
 CA
 91109-8099
 USA
 podaac@podaac.jpl.nasa.gov
 http://podaac.jpl.nasa.gov
 distributor
 http://podaac.jpl.nasa.gov/ws/search/granule/?datasetId=PODAAC-GHMG2-2PO01&apidoc
 Web Service (PO.DAAC Labs)
 (Search Granule)
 information
 http://www.ghrsst.org
 none
 GHRSST Project Home Page
 information
 http://ghrsst.jpl.nasa.gov
 none
 Portal to the GHRSST Global Data Assembly Center and data access
 information
 asNeeded
 Translated from GCMD DIF
 SEVIRI > Spinning Enhanced Visible and Infrared Imager
 sensor
 The Spinning Enhanced Visible and InfraRed Imager (SEVIRI)  has the capacity to observe the Earth in 12 spectral channels. Eight of these channels are in the thermal infrared, providing among other information, observations of the temperatures of clouds, land and sea surfaces at approximately 5 km resolution with a 15 minute duty cycle.
 MSG > Meteosat Second Generation
 Meteosat Second Generation (MSG) provides multi-spectral imagery of the Earth's surface and cloud systems from a geostationary orbit.
 NOAA/NESDIS/OSDPD
 NASA/JPL/PODAAC > Physical Oceanography Distributed Active Archive Center, Jet Propulsion Laboratory, NASA
 http://podaac.jpl.nasa.gov
]

lein test :only app.core-test/translate-request-test-korean

ERROR in (translate-request-test-korean) (FutureTask.java:122)
that a call to translate-request correctly goes through all layers.
expected: (= true (and (= "some climate data again" (translate-request "metadata/dataset" {} "kr" "pdf")) (= true (cache/cache-has? :metadatadatasetkr)) (= "some climate data again" (cache/cache-lookup :metadatadatasetkr))))
  actual: java.util.concurrent.ExecutionException: java.lang.ClassCastException: Cannot cast java.lang.Character to java.lang.String
 at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    java.util.concurrent.FutureTask.get (FutureTask.java:188)
    clojure.core$deref_future.invoke (core.clj:2180)
    clojure.core$future_call$reify__6320.deref (core.clj:6420)
    clojure.core$deref.invoke (core.clj:2200)
    clojure.core$pmap$step__6333$fn__6335.invoke (core.clj:6470)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.LazySeq.equals (LazySeq.java:115)
    clojure.lang.LazySeq.equiv (LazySeq.java:100)
    clojure.lang.Util.pcequiv (Util.java:125)
    clojure.lang.Util.equiv (Util.java:32)
    app.core_test$fn__1183$fn__1186.invoke (core_test.clj:65)
    clojure.core$with_redefs_fn.invoke (core.clj:6861)
    app.core_test/fn (core_test.clj:63)
    clojure.test$test_var$fn__7187.invoke (test.clj:704)
    clojure.test$test_var.invoke (test.clj:704)
    clojure.test$test_vars$fn__7209$fn__7214.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$test_vars$fn__7209.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$test_vars.invoke (test.clj:718)
    clojure.test$test_all_vars.invoke (test.clj:728)
    clojure.test$test_ns.invoke (test.clj:747)
    clojure.core$map$fn__4245.invoke (core.clj:2559)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.Cons.next (Cons.java:39)
    clojure.lang.RT.boundedLength (RT.java:1654)
    clojure.lang.RestFn.applyTo (RestFn.java:130)
    clojure.core$apply.invoke (core.clj:626)
    clojure.test$run_tests.doInvoke (test.clj:762)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:624)
    user$eval85$fn__140$fn__171.invoke (form-init6878369847205765737.clj:1)
    user$eval85$fn__140$fn__141.invoke (form-init6878369847205765737.clj:1)
    user$eval85$fn__140.invoke (form-init6878369847205765737.clj:1)
    user$eval85.invoke (form-init6878369847205765737.clj:1)
    clojure.lang.Compiler.eval (Compiler.java:6703)
    clojure.lang.Compiler.eval (Compiler.java:6693)
    clojure.lang.Compiler.load (Compiler.java:7130)
    clojure.lang.Compiler.loadFile (Compiler.java:7086)
    clojure.main$load_script.invoke (main.clj:274)
    clojure.main$init_opt.invoke (main.clj:279)
    clojure.main$initialize.invoke (main.clj:307)
    clojure.main$null_opt.invoke (main.clj:342)
    clojure.main$main.doInvoke (main.clj:420)
    clojure.lang.RestFn.invoke (RestFn.java:421)
    clojure.lang.Var.invoke (Var.java:383)
    clojure.lang.AFn.applyToHelper (AFn.java:156)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.main.main (main.java:37)
Caused by: java.lang.ClassCastException: Cannot cast java.lang.Character to java.lang.String
 at java.lang.Class.cast (Class.java:3094)
    clojure.lang.Reflector.boxArg (Reflector.java:427)
    clojure.lang.Reflector.boxArgs (Reflector.java:460)
    clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:58)
    clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
    app.core$translate_with_tika$fn__1105.invoke (core.clj:126)
    clojure.core$pmap$fn__6328$fn__6329.invoke (core.clj:6466)
    clojure.core$binding_conveyor_fn$fn__4145.invoke (core.clj:1910)
    clojure.lang.AFn.call (AFn.java:18)
    java.util.concurrent.FutureTask.run (FutureTask.java:262)
    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
    java.lang.Thread.run (Thread.java:745)

lein test :only app.core-test/translate-request-test-spanish

ERROR in (translate-request-test-spanish) (FutureTask.java:122)
that a call to translate-request correctly goes through all layers.
expected: (= true (and (= "some climate data" (translate-request "metadata/dataset" {} "es" "pdf")) (= true (cache/cache-has? :metadatadatasetes)) (= "some climate data" (cache/cache-lookup :metadatadatasetes))))
  actual: java.util.concurrent.ExecutionException: java.lang.ClassCastException: Cannot cast java.lang.Character to java.lang.String
 at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    java.util.concurrent.FutureTask.get (FutureTask.java:188)
    clojure.core$deref_future.invoke (core.clj:2180)
    clojure.core$future_call$reify__6320.deref (core.clj:6420)
    clojure.core$deref.invoke (core.clj:2200)
    clojure.core$pmap$step__6333$fn__6335.invoke (core.clj:6470)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.LazySeq.equals (LazySeq.java:115)
    clojure.lang.LazySeq.equiv (LazySeq.java:100)
    clojure.lang.Util.pcequiv (Util.java:125)
    clojure.lang.Util.equiv (Util.java:32)
    app.core_test$fn__1172$fn__1175.invoke (core_test.clj:57)
    clojure.core$with_redefs_fn.invoke (core.clj:6861)
    app.core_test/fn (core_test.clj:55)
    clojure.test$test_var$fn__7187.invoke (test.clj:704)
    clojure.test$test_var.invoke (test.clj:704)
    clojure.test$test_vars$fn__7209$fn__7214.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$test_vars$fn__7209.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$test_vars.invoke (test.clj:718)
    clojure.test$test_all_vars.invoke (test.clj:728)
    clojure.test$test_ns.invoke (test.clj:747)
    clojure.core$map$fn__4245.invoke (core.clj:2559)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.Cons.next (Cons.java:39)
    clojure.lang.RT.boundedLength (RT.java:1654)
    clojure.lang.RestFn.applyTo (RestFn.java:130)
    clojure.core$apply.invoke (core.clj:626)
    clojure.test$run_tests.doInvoke (test.clj:762)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:624)
    user$eval85$fn__140$fn__171.invoke (form-init6878369847205765737.clj:1)
    user$eval85$fn__140$fn__141.invoke (form-init6878369847205765737.clj:1)
    user$eval85$fn__140.invoke (form-init6878369847205765737.clj:1)
    user$eval85.invoke (form-init6878369847205765737.clj:1)
    clojure.lang.Compiler.eval (Compiler.java:6703)
    clojure.lang.Compiler.eval (Compiler.java:6693)
    clojure.lang.Compiler.load (Compiler.java:7130)
    clojure.lang.Compiler.loadFile (Compiler.java:7086)
    clojure.main$load_script.invoke (main.clj:274)
    clojure.main$init_opt.invoke (main.clj:279)
    clojure.main$initialize.invoke (main.clj:307)
    clojure.main$null_opt.invoke (main.clj:342)
    clojure.main$main.doInvoke (main.clj:420)
    clojure.lang.RestFn.invoke (RestFn.java:421)
    clojure.lang.Var.invoke (Var.java:383)
    clojure.lang.AFn.applyToHelper (AFn.java:156)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.main.main (main.java:37)
Caused by: java.lang.ClassCastException: Cannot cast java.lang.Character to java.lang.String
 at java.lang.Class.cast (Class.java:3094)
    clojure.lang.Reflector.boxArg (Reflector.java:427)
    clojure.lang.Reflector.boxArgs (Reflector.java:460)
    clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:58)
    clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
    app.core$translate_with_tika$fn__1105.invoke (core.clj:126)
    clojure.core$pmap$fn__6328$fn__6329.invoke (core.clj:6466)
    clojure.core$binding_conveyor_fn$fn__4145.invoke (core.clj:1910)
    clojure.lang.AFn.call (AFn.java:18)
    java.util.concurrent.FutureTask.run (FutureTask.java:262)
    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
    java.lang.Thread.run (Thread.java:745)
[OSDPD-L2P-MSG02
 eng
 UTF8
 series
 Eileen Maturi
 OSDPD > NOAA Office of Satellite Data Processing and Distribution
 Technical Contact
 301-763-8102 x172
 301-763-8572
 Eileen.Maturi@noaa.gov
 Phone/FAX/E-mail
 pointOfContact
 20150413
 ISO 19115-2 Geographic information — Metadata — Part 2: Extensions for imagery and gridded data
 ISO 19115-2:2009-02-15
 eng
 US
 UTF8
 http://www.ngdc.noaa.gov/metadata/published/19115/GHRSST/ISO/CoverageExtensions.xml
 Web Browser
 A description of extensions developed at NGDC to classify coverages.
 information
 GHRSST Level 2P Atlantic Regional Skin Sea Surface Temperature from the Spinning Enhanced Visible and InfraRed Imager (SEVIRI) on the Meteosat Second Generation (MSG-2) satellite
 Sea Surface Temperature, 55W-55E and 55S-55N, at 0.05 degree resolution from MSG-02 Imager Sectors every quarter-hour
 20090727
 creation
 4
 NOAA/NESDIS/OSDPD
 originator
 NOAA/NESDIS
 Camp Springs, MD (USA)
 publisher
 The Meteosat Second Generation (MSG) satellites  are spin stabilized geostationary satellites operated by the European Organization for the Exploitation of Meteorological Satellites (EUMETSAT) to provide accurate weather monitoring data through its primary instrument the Spinning Enhanced Visible and InfraRed Imager (SEVIRI), which has the capacity to observe the Earth in 12 spectral channels. Eight of these channels are in the thermal infrared, providing among other information, observations of the temperatures of clouds, land and sea surfaces at approximately 5 km resolution with a 15 minute duty cycle. This Group for High Resolution Sea Surface Temperature (GHRSST) dataset produced by the US National Oceanographic and Atmospheric Administration (NOAA)  National Environmental Satellite, Data, and Information Service (NESDIS) is derived from the SEVIRI instrument on the second MSG satellite (also known as  Meteosat-9) that was launched on 22 December 2005. Skin sea surface temperature (SST) data are calculated from the infrared channels of SEVIRI at full resolution every 15 minutes. L2P data products with Single Sensor Error Statistics (SSES) are then derived following the GHRSST-PP Data Processing Specification (GDS) version 1.5.
 These data are produced by NOAA/NESDIS funded by NESDIS Office of System Development
 onGoing
 Eileen Maturi
 OSDPD > NOAA Office of Satellite Data Processing and Distribution
 301-763-8102 x172
 301-763-8572
 Eileen.Maturi@noaa.gov
 pointOfContact
 NETCDF
 3
 GZIP
 Earth Science > Oceans > Ocean Temperature > Sea Surface Temperature > Sea Surface Skin Temperature
 theme
 NASA/GCMD Earth Science Keywords
 Eastern Atlantic
 place
 NASA/GCMD Location Keywords
 None
 None
 grid
 eng
 UTF8
 true
 -81
 81
 -73
 73
 true
 2009-11-22T12:30:00Z
 referenceInformation
 lat
 float
 lon
 float
 time
 int
 PO.DAAC User Services
 NASA/JPL/PODAAC > Physical Oceanography Distributed Active Archive Center, Jet Propulsion Laboratory, NASA
 4800 Oak Grove Drive
 Pasadena
 CA
 91109-8099
 USA
 podaac@podaac.jpl.nasa.gov
 http://podaac.jpl.nasa.gov
 distributor
 http://podaac.jpl.nasa.gov/ws/search/granule/?datasetId=PODAAC-GHMG2-2PO01&apidoc
 Web Service (PO.DAAC Labs)
 (Search Granule)
 information
 http://www.ghrsst.org
 none
 GHRSST Project Home Page
 information
 http://ghrsst.jpl.nasa.gov
 none
 Portal to the GHRSST Global Data Assembly Center and data access
 information
 asNeeded
 Translated from GCMD DIF
 SEVIRI > Spinning Enhanced Visible and Infrared Imager
 sensor
 The Spinning Enhanced Visible and InfraRed Imager (SEVIRI)  has the capacity to observe the Earth in 12 spectral channels. Eight of these channels are in the thermal infrared, providing among other information, observations of the temperatures of clouds, land and sea surfaces at approximately 5 km resolution with a 15 minute duty cycle.
 MSG > Meteosat Second Generation
 Meteosat Second Generation (MSG) provides multi-spectral imagery of the Earth's surface and cloud systems from a geostationary orbit.
 NOAA/NESDIS/OSDPD
 NASA/JPL/PODAAC > Physical Oceanography Distributed Active Archive Center, Jet Propulsion Laboratory, NASA
 http://podaac.jpl.nasa.gov
]

lein test :only app.core-test/translate-request-test-french

ERROR in (translate-request-test-french) (FutureTask.java:122)
that a call to translate-request correctly goes through all layers.
expected: (= true (and (= "some climate data again, but french" (translate-request "metadata/dataset" {} "fr" "pdf")) (= true (cache/cache-has? :metadatadatasetfr)) (= "some climate data again, but french" (cache/cache-lookup :metadatadatasetfr))))
  actual: java.util.concurrent.ExecutionException: java.lang.ClassCastException: Cannot cast java.lang.Character to java.lang.String
 at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    java.util.concurrent.FutureTask.get (FutureTask.java:188)
    clojure.core$deref_future.invoke (core.clj:2180)
    clojure.core$future_call$reify__6320.deref (core.clj:6420)
    clojure.core$deref.invoke (core.clj:2200)
    clojure.core$pmap$step__6333$fn__6335.invoke (core.clj:6470)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.LazySeq.equals (LazySeq.java:115)
    clojure.lang.LazySeq.equiv (LazySeq.java:100)
    clojure.lang.Util.pcequiv (Util.java:125)
    clojure.lang.Util.equiv (Util.java:32)
    app.core_test$fn__1194$fn__1197.invoke (core_test.clj:73)
    clojure.core$with_redefs_fn.invoke (core.clj:6861)
    app.core_test/fn (core_test.clj:71)
    clojure.test$test_var$fn__7187.invoke (test.clj:704)
    clojure.test$test_var.invoke (test.clj:704)
    clojure.test$test_vars$fn__7209$fn__7214.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$test_vars$fn__7209.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$test_vars.invoke (test.clj:718)
    clojure.test$test_all_vars.invoke (test.clj:728)
    clojure.test$test_ns.invoke (test.clj:747)
    clojure.core$map$fn__4245.invoke (core.clj:2559)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.Cons.next (Cons.java:39)
    clojure.lang.RT.boundedLength (RT.java:1654)
    clojure.lang.RestFn.applyTo (RestFn.java:130)
    clojure.core$apply.invoke (core.clj:626)
    clojure.test$run_tests.doInvoke (test.clj:762)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:624)
    user$eval85$fn__140$fn__171.invoke (form-init6878369847205765737.clj:1)
    user$eval85$fn__140$fn__141.invoke (form-init6878369847205765737.clj:1)
    user$eval85$fn__140.invoke (form-init6878369847205765737.clj:1)
    user$eval85.invoke (form-init6878369847205765737.clj:1)
    clojure.lang.Compiler.eval (Compiler.java:6703)
    clojure.lang.Compiler.eval (Compiler.java:6693)
    clojure.lang.Compiler.load (Compiler.java:7130)
    clojure.lang.Compiler.loadFile (Compiler.java:7086)
    clojure.main$load_script.invoke (main.clj:274)
    clojure.main$init_opt.invoke (main.clj:279)
    clojure.main$initialize.invoke (main.clj:307)
    clojure.main$null_opt.invoke (main.clj:342)
    clojure.main$main.doInvoke (main.clj:420)
    clojure.lang.RestFn.invoke (RestFn.java:421)
    clojure.lang.Var.invoke (Var.java:383)
    clojure.lang.AFn.applyToHelper (AFn.java:156)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.main.main (main.java:37)
Caused by: java.lang.ClassCastException: Cannot cast java.lang.Character to java.lang.String
 at java.lang.Class.cast (Class.java:3094)
    clojure.lang.Reflector.boxArg (Reflector.java:427)
    clojure.lang.Reflector.boxArgs (Reflector.java:460)
    clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:58)
    clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
    app.core$translate_with_tika$fn__1105.invoke (core.clj:126)
    clojure.core$pmap$fn__6328$fn__6329.invoke (core.clj:6466)
    clojure.core$binding_conveyor_fn$fn__4145.invoke (core.clj:1910)
    clojure.lang.AFn.call (AFn.java:18)
    java.util.concurrent.FutureTask.run (FutureTask.java:262)
    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
    java.lang.Thread.run (Thread.java:745)

lein test app.handler-test

Ran 45 tests containing 58 assertions.
0 failures, 3 errors.
Tests failed.
cartermp commented 9 years ago

This could be from the switch to the actual translator object. I'll investigate and, if need be, use a stubbing framework of some kind to make sure these will pass as regression tests.

lewismc commented 5 years ago

There is a new issue with the tests

Exception in thread "main" Syntax error macroexpanding clojure.core/ns at (onelog/core.clj:1:1).
Call to clojure.core/ns did not conform to spec.
    at clojure.lang.Compiler.checkSpecs(Compiler.java:6971)
    at clojure.lang.Compiler.macroexpand1(Compiler.java:6987)
    at clojure.lang.Compiler.macroexpand(Compiler.java:7074)
    at clojure.lang.Compiler.eval(Compiler.java:7160)
    at clojure.lang.Compiler.load(Compiler.java:7635)
    at clojure.lang.RT.loadResourceScript(RT.java:381)
    at clojure.lang.RT.loadResourceScript(RT.java:372)
    at clojure.lang.RT.load(RT.java:463)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:482)
    at ring.middleware.logger$eval6735$loading__6706__auto____6736.invoke(logger.clj:1)
    at ring.middleware.logger$eval6735.invokeStatic(logger.clj:1)
    at ring.middleware.logger$eval6735.invoke(logger.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:7176)
    at clojure.lang.Compiler.eval(Compiler.java:7165)
    at clojure.lang.Compiler.load(Compiler.java:7635)
    at clojure.lang.RT.loadResourceScript(RT.java:381)
    at clojure.lang.RT.loadResourceScript(RT.java:372)
    at clojure.lang.RT.load(RT.java:463)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:669)
    at clojure.core$use.invokeStatic(core.clj:6093)
    at clojure.core$use.doInvoke(core.clj:6093)
    at clojure.lang.RestFn.invoke(RestFn.java:436)
    at app.handler$eval3634$loading__6706__auto____3635.invoke(handler.clj:16)
    at app.handler$eval3634.invokeStatic(handler.clj:16)
    at app.handler$eval3634.invoke(handler.clj:16)
    at clojure.lang.Compiler.eval(Compiler.java:7176)
    at clojure.lang.Compiler.eval(Compiler.java:7165)
    at clojure.lang.Compiler.load(Compiler.java:7635)
    at clojure.lang.RT.loadResourceScript(RT.java:381)
    at clojure.lang.RT.loadResourceScript(RT.java:372)
    at clojure.lang.RT.load(RT.java:463)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at app.handler_test$eval3628$loading__6706__auto____3629.invoke(handler_test.clj:16)
    at app.handler_test$eval3628.invokeStatic(handler_test.clj:16)
    at app.handler_test$eval3628.invoke(handler_test.clj:16)
    at clojure.lang.Compiler.eval(Compiler.java:7176)
    at clojure.lang.Compiler.eval(Compiler.java:7165)
    at clojure.lang.Compiler.load(Compiler.java:7635)
    at clojure.lang.RT.loadResourceScript(RT.java:381)
    at clojure.lang.RT.loadResourceScript(RT.java:372)
    at clojure.lang.RT.load(RT.java:463)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$apply.invoke(core.clj:660)
    at user$eval224.invokeStatic(form-init2184525610700673475.clj:1)
    at user$eval224.invoke(form-init2184525610700673475.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:7176)
    at clojure.lang.Compiler.eval(Compiler.java:7166)
    at clojure.lang.Compiler.load(Compiler.java:7635)
    at clojure.lang.Compiler.loadFile(Compiler.java:7573)
    at clojure.main$load_script.invokeStatic(main.clj:452)
    at clojure.main$init_opt.invokeStatic(main.clj:454)
    at clojure.main$init_opt.invoke(main.clj:454)
    at clojure.main$initialize.invokeStatic(main.clj:485)
    at clojure.main$null_opt.invokeStatic(main.clj:519)
    at clojure.main$null_opt.invoke(main.clj:516)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)
Caused by: clojure.lang.ExceptionInfo: Call to clojure.core/ns did not conform to spec. {:clojure.spec.alpha/problems ({:path [:ns-clauses :refer-clojure :clause], :pred #{:refer-clojure}, :val import, :via [:clojure.core.specs.alpha/ns-form :clojure.core.specs.alpha/ns-refer-clojure :clojure.core.specs.alpha/ns-refer-clojure], :in [3 0]} {:path [:ns-clauses :require :clause], :pred #{:require}, :val import, :via [:clojure.core.specs.alpha/ns-form :clojure.core.specs.alpha/ns-require :clojure.core.specs.alpha/ns-require], :in [3 0]} {:path [:ns-clauses :import :clause], :pred #{:import}, :val import, :via [:clojure.core.specs.alpha/ns-form :clojure.core.specs.alpha/ns-import :clojure.core.specs.alpha/ns-import], :in [3 0]} {:path [:ns-clauses :use :clause], :pred #{:use}, :val import, :via [:clojure.core.specs.alpha/ns-form :clojure.core.specs.alpha/ns-use :clojure.core.specs.alpha/ns-use], :in [3 0]} {:path [:ns-clauses :refer :clause], :pred #{:refer}, :val import, :via [:clojure.core.specs.alpha/ns-form :clojure.core.specs.alpha/ns-refer :clojure.core.specs.alpha/ns-refer], :in [3 0]} {:path [:ns-clauses :load :clause], :pred #{:load}, :val import, :via [:clojure.core.specs.alpha/ns-form :clojure.core.specs.alpha/ns-load :clojure.core.specs.alpha/ns-load], :in [3 0]} {:path [:ns-clauses :gen-class :clause], :pred #{:gen-class}, :val import, :via [:clojure.core.specs.alpha/ns-form :clojure.core.specs.alpha/ns-gen-class :clojure.core.specs.alpha/ns-gen-class], :in [3 0]}), :clojure.spec.alpha/spec #object[clojure.spec.alpha$regex_spec_impl$reify__2509 0x77a1df4d "clojure.spec.alpha$regex_spec_impl$reify__2509@77a1df4d"], :clojure.spec.alpha/value (onelog.core "Batteries-included logging for Clojure. You can require this one\nfile and begin logging, with no further configuration necessary.\n\n\nBUG - TODO: Fix so that (set-default-logger!) gets called automatically if\nthe user tries to log without calling it first.\n\nTODO: Add profiling methods (i.e. run a function and log how long it took)\n" (:require [clojure.tools.logging :as log] [clj-logging-config.log4j :as log-config] [clansi.core :as ansi]) (import (org.apache.log4j DailyRollingFileAppender EnhancedPatternLayout FileAppender))), :clojure.spec.alpha/args (onelog.core "Batteries-included logging for Clojure. You can require this one\nfile and begin logging, with no further configuration necessary.\n\n\nBUG - TODO: Fix so that (set-default-logger!) gets called automatically if\nthe user tries to log without calling it first.\n\nTODO: Add profiling methods (i.e. run a function and log how long it took)\n" (:require [clojure.tools.logging :as log] [clj-logging-config.log4j :as log-config] [clansi.core :as ansi]) (import (org.apache.log4j DailyRollingFileAppender EnhancedPatternLayout FileAppender)))}
    at clojure.spec.alpha$macroexpand_check.invokeStatic(alpha.clj:705)
    at clojure.spec.alpha$macroexpand_check.invoke(alpha.clj:697)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.lang.Compiler.checkSpecs(Compiler.java:6969)
    ... 129 more
Tests failed.