Skip to content

Instantly share code, notes, and snippets.

@grimradical
Created March 11, 2014 22:01
Show Gist options
  • Save grimradical/9496075 to your computer and use it in GitHub Desktop.
Save grimradical/9496075 to your computer and use it in GitHub Desktop.
lein test com.puppetlabs.puppetdb.examples
lein test com.puppetlabs.puppetdb.examples.reports
lein test com.puppetlabs.puppetdb.fixtures
lein test com.puppetlabs.puppetdb.repl
lein test com.puppetlabs.puppetdb.test.anonymizer
lein test :only com.puppetlabs.puppetdb.test.anonymizer/test-anonymize-resource
FAIL in (test-anonymize-resource) (anonymizer.clj:271)
should handle a resource
expected: (= ["parameters" "exported" "line" "title" "tags" "type" "file"] (keys result))
actual: (not (= ["parameters" "exported" "line" "title" "tags" "type" "file"] ("title" "exported" "type" "line" "tags" "file" "parameters")))
lein test :only com.puppetlabs.puppetdb.test.anonymizer/test-anonymize-resource
FAIL in (test-anonymize-resource) (anonymizer.clj:280)
should handle nil for file and line
expected: (= ["parameters" "exported" "title" "tags" "type"] (keys result))
actual: (not (= ["parameters" "exported" "title" "tags" "type"] ("title" "exported" "type" "tags" "parameters")))
lein test com.puppetlabs.puppetdb.test.archive
lein test com.puppetlabs.puppetdb.test.catalog.utils
lein test com.puppetlabs.puppetdb.test.catalogs
lein test com.puppetlabs.puppetdb.test.cli.export
lein test com.puppetlabs.puppetdb.test.cli.services
lein test com.puppetlabs.puppetdb.test.command
lein test com.puppetlabs.puppetdb.test.command.dlo
lein test com.puppetlabs.puppetdb.test.config
lein test com.puppetlabs.puppetdb.test.core
lein test com.puppetlabs.puppetdb.test.http.command
lein test com.puppetlabs.puppetdb.test.http.experimental.planetarium-catalog
lein test com.puppetlabs.puppetdb.test.http.experimental.population
lein test com.puppetlabs.puppetdb.test.http.explore
lein test com.puppetlabs.puppetdb.test.http.fact-names
lein test com.puppetlabs.puppetdb.test.http.facts
lein test com.puppetlabs.puppetdb.test.http.metrics
lein test com.puppetlabs.puppetdb.test.http.nodes
lein test com.puppetlabs.puppetdb.test.http.paging
lein test com.puppetlabs.puppetdb.test.http.resources
lein test com.puppetlabs.puppetdb.test.http.server
lein test com.puppetlabs.puppetdb.test.http.v3.aggregate-event-counts
lein test com.puppetlabs.puppetdb.test.http.v3.catalogs
lein test com.puppetlabs.puppetdb.test.http.v3.event-counts
lein test com.puppetlabs.puppetdb.test.http.v3.events
lein test com.puppetlabs.puppetdb.test.http.v3.reports
lein test com.puppetlabs.puppetdb.test.http.v3.server-time
lein test com.puppetlabs.puppetdb.test.http.v4.aggregate-event-counts
lein test com.puppetlabs.puppetdb.test.http.v4.catalogs
lein test com.puppetlabs.puppetdb.test.http.v4.event-counts
lein test com.puppetlabs.puppetdb.test.http.v4.events
lein test com.puppetlabs.puppetdb.test.http.v4.reports
lein test com.puppetlabs.puppetdb.test.http.v4.server-time
lein test com.puppetlabs.puppetdb.test.http.version
lein test com.puppetlabs.puppetdb.test.query
lein test com.puppetlabs.puppetdb.test.query.aggregate-event-counts
lein test com.puppetlabs.puppetdb.test.query.catalogs
lein test com.puppetlabs.puppetdb.test.query.event-counts
lein test com.puppetlabs.puppetdb.test.query.events
lein test com.puppetlabs.puppetdb.test.query.fact-names
lein test com.puppetlabs.puppetdb.test.query.nodes
lein test com.puppetlabs.puppetdb.test.query.population
lein test com.puppetlabs.puppetdb.test.query.reports
lein test com.puppetlabs.puppetdb.test.query.resources
lein test com.puppetlabs.puppetdb.test.reports
lein test com.puppetlabs.puppetdb.test.scf.hash
lein test :only com.puppetlabs.puppetdb.test.scf.hash/hash-computation
FAIL in (hash-computation) (hash.clj:31)
generic-identity-* should return the expected string in a sorted and predictable way generic-identity-string
expected: (= output "[\"Type\",\"title\",{\"foo\":{\"a\":{\"a\":{\"b\":\"asdf\",\"m\":\"asdf\"},\"k\":[\"z\",{\"a\":1,\"z\":[\"a\",{\"a\":[1,2],\"b\":2}]},\"c\"],\"z\":\"asdf\"},\"b\":\"asdf\"}}]")
actual: (not (= "[\"Type\",\"title\",{\"foo\":{\"a\":{\"a\":{\"b\":\"asdf\",\"m\":\"asdf\"},\"k\":[\"z\",{\"a\":1,\"z\":[{\"b\":2,\"a\":[1,2]},\"a\"]},\"c\"],\"z\":\"asdf\"},\"b\":\"asdf\"}}]" "[\"Type\",\"title\",{\"foo\":{\"a\":{\"a\":{\"b\":\"asdf\",\"m\":\"asdf\"},\"k\":[\"z\",{\"a\":1,\"z\":[\"a\",{\"a\":[1,2],\"b\":2}]},\"c\"],\"z\":\"asdf\"},\"b\":\"asdf\"}}]"))
lein test :only com.puppetlabs.puppetdb.test.scf.hash/hash-computation
FAIL in (hash-computation) (hash.clj:36)
generic-identity-* should return the expected string in a sorted and predictable way generic-identity-hash
expected: (= output "c62dab030cfe8c25a4832c5c6302b7f0041264ba")
actual: (not (= "fdfd8da8b6f877688d834a9a728bce2ac5cddc67" "c62dab030cfe8c25a4832c5c6302b7f0041264ba"))
lein test com.puppetlabs.puppetdb.test.scf.hash-debug
lein test com.puppetlabs.puppetdb.test.scf.migrate
lein test com.puppetlabs.puppetdb.test.scf.storage
lein test com.puppetlabs.puppetdb.test.scf.storage-utils
lein test com.puppetlabs.puppetdb.test.schema
lein test com.puppetlabs.puppetdb.test.utils
lein test com.puppetlabs.puppetdb.testutils
lein test com.puppetlabs.puppetdb.testutils.catalogs
lein test com.puppetlabs.puppetdb.testutils.event-counts
lein test com.puppetlabs.puppetdb.testutils.events
lein test com.puppetlabs.puppetdb.testutils.nodes
lein test com.puppetlabs.puppetdb.testutils.repl
lein test com.puppetlabs.puppetdb.testutils.reports
lein test com.puppetlabs.puppetdb.testutils.resources
lein test com.puppetlabs.test.cheshire
lein test :only com.puppetlabs.test.cheshire/test-generate-stream
FAIL in (test-generate-stream) (cheshire.clj:28)
should generate a json string from a stream
expected: (= (.toString sw) "{\"a\":1,\"b\":2}")
actual: (not (= "{\"b\":2,\"a\":1}" "{\"a\":1,\"b\":2}"))
lein test :only com.puppetlabs.test.cheshire/test-generate-pretty-stream
FAIL in (test-generate-pretty-stream) (cheshire.clj:35)
should generate a pretty printed json string from a stream
expected: (= (.toString sw) "{\n \"a\" : 1,\n \"b\" : 2\n}")
actual: (not (= "{\n \"b\" : 2,\n \"a\" : 1\n}" "{\n \"a\" : 1,\n \"b\" : 2\n}"))
lein test :only com.puppetlabs.test.cheshire/test-generate-string
FAIL in (test-generate-string) (cheshire.clj:10)
should generate a json string
expected: (= (generate-string {:a 1, :b 2}) "{\"a\":1,\"b\":2}")
actual: (not (= "{\"b\":2,\"a\":1}" "{\"a\":1,\"b\":2}"))
lein test :only com.puppetlabs.test.cheshire/test-spit-json
FAIL in (test-spit-json) (cheshire.clj:52)
json output with keywords
expected: (= "{\n \"a\" : 1,\n \"b\" : 2\n}" (slurp json-out))
actual: (not (= "{\n \"a\" : 1,\n \"b\" : 2\n}" "{\n \"b\" : 2,\n \"a\" : 1\n}"))
lein test :only com.puppetlabs.test.cheshire/test-spit-json
FAIL in (test-spit-json) (cheshire.clj:56)
json output with strings
expected: (= "{\n \"a\" : 1,\n \"b\" : 2\n}" (slurp json-out))
actual: (not (= "{\n \"a\" : 1,\n \"b\" : 2\n}" "{\n \"b\" : 2,\n \"a\" : 1\n}"))
lein test :only com.puppetlabs.test.cheshire/test-generate-pretty-string
FAIL in (test-generate-pretty-string) (cheshire.clj:18)
should generate a json string
expected: (= (generate-pretty-string {:a 1, :b 2}) "{\n \"a\" : 1,\n \"b\" : 2\n}")
actual: (not (= "{\n \"b\" : 2,\n \"a\" : 1\n}" "{\n \"a\" : 1,\n \"b\" : 2\n}"))
lein test com.puppetlabs.test.concurrent
lein test com.puppetlabs.test.http
2014-03-11 16:01:09,706 ERROR [c.p.t.http] Error streaming response
java.lang.ArithmeticException: Divide by zero
at clojure.lang.Numbers.divide(Numbers.java:156) ~[clojure-1.6.0-beta2.jar:na]
at clojure.lang.Numbers.divide(Numbers.java:3731) ~[clojure-1.6.0-beta2.jar:na]
at com.puppetlabs.test.http$fn__31209$fn__31225.invoke(http.clj:151) [na:na]
at ring.util.io$piped_input_stream$fn__4009.invoke(io.clj:22) [na:na]
at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910) [clojure-1.6.0-beta2.jar:na]
at clojure.lang.AFn.call(AFn.java:18) [clojure-1.6.0-beta2.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_60-ea]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60-ea]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_60-ea]
lein test com.puppetlabs.test.jdbc
lein test com.puppetlabs.test.middleware
lein test com.puppetlabs.test.mq
lein test com.puppetlabs.test.random
lein test com.puppetlabs.test.time
lein test com.puppetlabs.test.validation
lein test com.puppetlabs.testutils.db
lein test com.puppetlabs.utils.metrics
Ran 271 tests containing 4762 assertions.
10 failures, 0 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment