Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2934

Running individual tests needing a DB from the REPL fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.2.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1

      Description

      This issue only impacts developers wanting to run individual tests from the clojure REPL. Currently when running individual tests, a NullPointerException is given:

      ERROR in (replace-catalog-test) (core.clj:2208)
      Uncaught exception, not in assertion.
      expected: nil
        actual: java.lang.NullPointerException: null
       at clojure.core$deref_future.invokeStatic (core.clj:2208)
          clojure.core$deref.invokeStatic (core.clj:2228)
          clojure.core$deref.invoke (core.clj:2214)
          puppetlabs.puppetdb.testutils.db$call_with_db_info_on_failure_or_drop.invokeStatic (db.clj:186)
          puppetlabs.puppetdb.testutils.db$call_with_db_info_on_failure_or_drop.invoke (db.clj:182)
          puppetlabs.puppetdb.testutils.db$call_with_test_db.invokeStatic (db.clj:210)
          puppetlabs.puppetdb.testutils.db$call_with_test_db.invoke (db.clj:204)
          puppetlabs.puppetdb.command_test$fn__53572$fn__53577$fn__53578.invoke (command_test.clj:298)
          puppetlabs.puppetdb.command_test$fn__53572$fn__53577.invoke (command_test.clj:297)
          puppetlabs.puppetdb.command_test$fn__53572.invokeStatic (command_test.clj:283)
          puppetlabs.puppetdb.command_test/fn (command_test.clj:282)
          clojure.test$test_var$fn__7983.invoke (test.clj:716)
          clojure.test$test_var.invokeStatic (test.clj:716)
          clojure.test$test_var.invoke (test.clj:707)
          puppetlabs.puppetdb.command_test$replace_catalog_test.invokeStatic (command_test.clj:282)
          puppetlabs.puppetdb.command_test$replace_catalog_test.invoke (command_test.clj:282)
          puppetlabs.puppetdb.command_test$eval55482.invokeStatic (form-init2231558799659291057.clj:44)
          puppetlabs.puppetdb.command_test$eval55482.invoke (form-init2231558799659291057.clj:44)
      

      This should be fixed as it's a productivity boost to run individual tests from the REPL.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ryan.senior Ryan Senior
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support