Commit 3fbfab60 authored by Andrew Roetker's avatar Andrew Roetker

(linting) Remove all the unused namespace declarations

This commit removes all the unecessary namespace declarations found
using eastwood.
parent 19d265d6
(ns puppetlabs.puppetdb.anonymizer
(:require [puppetlabs.puppetdb.catalogs :as catalog]
[puppetlabs.puppetdb.reports :as report]
(:require [puppetlabs.puppetdb.reports :as report]
[puppetlabs.puppetdb.utils :as utils]
[clojure.string :as str]
[puppetlabs.kitchensink.core :refer [regexp? boolean? uuid string-contains?]]
......
......@@ -5,8 +5,6 @@
randomly modifying an existing catalog (wire format or parsed)."
(:require [puppetlabs.puppetdb.catalogs :as cat]
[clojure.walk :as walk]
[clojure.set :as set]
[clojure.string :as str]
[puppetlabs.puppetdb.random :refer [random-resource random-kw-resource
random-parameters]]))
......
......@@ -86,14 +86,11 @@
<dependency-spec>,
...)}"
(:require [clojure.string :as string]
[clojure.tools.logging :as log]
[clojure.set :as set]
[puppetlabs.puppetdb.cheshire :as json]
[digest]
[puppetlabs.kitchensink.core :as kitchensink]
[schema.core :as s]
[puppetlabs.puppetdb.schema :as pls]
[clojure.walk :as walk]
[puppetlabs.puppetdb.utils :as utils]
[clojure.core.match :refer [match]]))
......
......@@ -9,8 +9,6 @@
database."
(:require [puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.cheshire :as json]
[fs.core :as fs]
[clojure.java.io :as io]
[clj-http.client :as client]
[puppetlabs.puppetdb.archive :as archive]
[puppetlabs.puppetdb.schema :refer [defn-validated]]
......
......@@ -49,11 +49,9 @@
[puppetlabs.puppetdb.jdbc :as pl-jdbc]
[puppetlabs.puppetdb.mq :as mq]
[clojure.java.jdbc :as sql]
[clojure.string :as string]
[clojure.tools.logging :as log]
[puppetlabs.puppetdb.http.server :as server]
[puppetlabs.puppetdb.config :as conf]
[puppetlabs.puppetdb.utils :as utils]
[puppetlabs.kitchensink.core :as kitchensink]
[robert.hooke :as rh]
[puppetlabs.trapperkeeper.core :refer [defservice main]]
......
......@@ -9,8 +9,7 @@
The output is currently formatted like the contents of a java properties file;
each line contains a single property name, followed by an equals sign, followed
by the property value."
(:require [puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.version :refer [version]]
(:require [puppetlabs.puppetdb.version :refer [version]]
[puppetlabs.puppetdb.scf.migrate :refer [desired-schema-version]]))
(def cli-description "Print info about the current version of PuppetDB")
......
......@@ -59,15 +59,11 @@
[puppetlabs.puppetdb.scf.storage :as scf-storage]
[puppetlabs.puppetdb.catalogs :as cat]
[puppetlabs.puppetdb.reports :as report]
[puppetlabs.puppetdb.facts :as facts]
[puppetlabs.puppetdb.command.dlo :as dlo]
[puppetlabs.puppetdb.mq :as mq]
[puppetlabs.kitchensink.core :as kitchensink]
[clj-http.client :as client]
[clj-time.coerce :refer [to-timestamp]]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.jdbc :as jdbc]
[clojure.walk :as walk]
[puppetlabs.puppetdb.utils :as utils]
[slingshot.slingshot :refer [try+ throw+]]
[cheshire.custom :refer [JSONable]]
......
......@@ -8,7 +8,6 @@
[org.joda.time Minutes Days Period])
(:require [clojure.tools.logging :as log]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.time :as pl-time]
[clj-time.core :as time]
[clojure.java.io :as io]
[fs.core :as fs]
......
......@@ -11,10 +11,8 @@
...then we'll look for a namespace called
`puppetlabs.puppetdb.cli.foo` and invoke its `-main` method with
`[arg1 arg2 arg3]`."
(:require [puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.trapperkeeper.logging :as logging-utils]
(:require [puppetlabs.trapperkeeper.logging :as logging-utils]
[clojure.tools.namespace :as ns]
[clojure.tools.logging :as log]
[puppetlabs.puppetdb.utils :as utils]
[clojure.string :as str]))
......
......@@ -7,7 +7,6 @@
[clojure.java.io :as io]
[clojure.tools.logging :as log]
[clojure.reflect :as r]
[puppetlabs.kitchensink.core :as kitchensink]
[clojure.string :as s]))
;; ## HTTP Status codes
......
(ns puppetlabs.puppetdb.http.aggregate-event-counts
(:require [puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.query.aggregate-event-counts :as aggregate-event-counts]
[puppetlabs.puppetdb.cheshire :as json]
(:require [puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.http.events :as events-http]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[puppetlabs.puppetdb.jdbc :refer [with-transacted-connection]]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params]]
[net.cgrand.moustache :refer [app]]))
......
(ns puppetlabs.puppetdb.http.catalogs
(:require [puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.http :as http]
(:require [puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.query.catalogs :as c]
[puppetlabs.puppetdb.catalogs :as cats]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[puppetlabs.puppetdb.http.query :as http-q]
[puppetlabs.puppetdb.middleware :as middleware]
[schema.core :as s]
[puppetlabs.puppetdb.query.paging :as paging]
......
(ns puppetlabs.puppetdb.http.command
(:require [clojure.tools.logging :as log]
[puppetlabs.puppetdb.command :as command]
(:require [puppetlabs.puppetdb.command :as command]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.middleware :as mid]))
......
(ns puppetlabs.puppetdb.http.environments
(:require [puppetlabs.puppetdb.query.environments :as e]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.query :as query]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.http.facts :as f]
[puppetlabs.puppetdb.http.query :as http-q]
[puppetlabs.puppetdb.http.resources :as r]
[puppetlabs.puppetdb.http.events :as ev]
[puppetlabs.puppetdb.http.reports :as rp]
[puppetlabs.puppetdb.cheshire :as json]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params wrap-with-paging-options]]
......
(ns puppetlabs.puppetdb.http.event-counts
(:require [puppetlabs.puppetdb.query.event-counts :as event-counts]
[puppetlabs.puppetdb.cheshire :as json]
(:require [puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.http.events :as events-http]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params
wrap-with-paging-options]]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.query :as query]))
[net.cgrand.moustache :refer [app]]))
(defn routes
[version]
......
(ns puppetlabs.puppetdb.http.events
(:import (java.sql Timestamp))
(:require [puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.query.events :as events]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.query :as query]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[clj-time.coerce :refer [to-timestamp]]
[puppetlabs.puppetdb.middleware :as middleware]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.http :as http]))
(defn validate-distinct-options!
......
(ns puppetlabs.puppetdb.http.experimental.population
(:require [puppetlabs.puppetdb.query.population :as p]
[puppetlabs.puppetdb.http :as http]
[ring.util.response :as rr]
[puppetlabs.puppetdb.jdbc :refer [with-transacted-connection]]
[puppetlabs.puppetdb.middleware :refer :all]
[net.cgrand.moustache :refer [app]]))
......
(ns puppetlabs.puppetdb.http.fact-contents
(:require [puppetlabs.puppetdb.http.query :as http-q]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.query.fact-contents :as fact-contents]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.query :as query]
[puppetlabs.puppetdb.jdbc :as jdbc]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params
......
......@@ -4,8 +4,7 @@
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json
validate-query-params
wrap-with-paging-options]]
[puppetlabs.puppetdb.facts :refer [string-to-factpath]]))
wrap-with-paging-options]]))
(defn query-app
[version]
......
(ns puppetlabs.puppetdb.http.facts
(:require [puppetlabs.puppetdb.http.query :as http-q]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.query.facts :as facts]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.query :as query]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params
wrap-with-paging-options]]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.http :as http]))
wrap-with-paging-options]]))
(defn query-app
[version]
......
......@@ -2,12 +2,9 @@
(:require [puppetlabs.puppetdb.http.query :as http-q]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[puppetlabs.puppetdb.cheshire :as json]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params
wrap-with-paging-options]]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.http :as http]))
wrap-with-paging-options]]))
(defn query-app
[version]
......
(ns puppetlabs.puppetdb.http.nodes
(:require [puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.query :as query]
[puppetlabs.puppetdb.query.nodes :as node]
[puppetlabs.puppetdb.http.facts :as f]
[puppetlabs.puppetdb.http.resources :as r]
......@@ -12,8 +10,7 @@
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params
wrap-with-paging-options]]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.query-eng.engine :as qe]))
[puppetlabs.puppetdb.http :as http]))
(defn node-status
"Produce a response body for a request to obtain status information
......
(ns puppetlabs.puppetdb.http.resources
(:require [puppetlabs.puppetdb.http.query :as http-q]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.query.resources :as r]
[puppetlabs.puppetdb.query-eng :refer [produce-streaming-body]]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.query :as query]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.middleware :refer [verify-accepts-json validate-query-params
wrap-with-paging-options]]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.http :as http]))
wrap-with-paging-options]]))
(defn query-app
[version]
......
......@@ -5,8 +5,7 @@
*subject to change without notice.*"
(:import (com.jolbox.bonecp.hooks AbstractConnectionHook ConnectionState)
(com.jolbox.bonecp PreparedStatementHandle))
(:require [clojure.java.jdbc :as sql]
[clojure.tools.logging :as log]
(:require [clojure.tools.logging :as log]
[clojure.string :as str]))
(defn query-param->str
......
(ns puppetlabs.puppetdb.metrics.core
(:require [clojure.tools.logging :as log]
[puppetlabs.puppetdb.http :as http]
(:require [puppetlabs.puppetdb.http :as http]
[ring.util.response :as rr]
[clj-http.util :refer [url-encode]]
[cheshire.custom :refer [JSONable]]
......
......@@ -7,10 +7,8 @@
[org.springframework.jms.connection CachingConnectionFactory]
[org.springframework.jms.listener DefaultMessageListenerContainer])
(:require [puppetlabs.puppetdb.cheshire :as json]
[clamq.activemq :as activemq]
[clamq.protocol.connection :as mq-conn]
[clamq.protocol.consumer :as mq-consumer]
[clamq.protocol.seqable :as mq-seq]
[clamq.protocol.producer :as mq-producer]
[clojure.tools.logging :as log]
[clamq.protocol.consumer :as consumer]
......
......@@ -61,8 +61,6 @@
another `SELECT` to pull out only the desired columns. Similarly for
applying ordering constraints."
(:require [clojure.string :as str]
[clojure.set :as set]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.jdbc :as jdbc]
[clj-time.coerce :refer [to-timestamp]]
......
(ns puppetlabs.puppetdb.query.environments
(:require [puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.query :as query]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.query-eng.engine :as qe]))
(defn query->sql
......
(ns puppetlabs.puppetdb.query.facts
"Fact query generation"
(:require [puppetlabs.puppetdb.jdbc :as jdbc]
[schema.core :as s]
(:require [schema.core :as s]
[puppetlabs.puppetdb.query :as query]
[clojure.edn :as clj-edn]
[puppetlabs.puppetdb.schema :as pls]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.cheshire :as json]
......
......@@ -8,8 +8,7 @@
[clojure.string :as string]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.kitchensink.core :refer [keyset seq-contains? parse-int order-by-expr?]]
[puppetlabs.puppetdb.jdbc :refer [underscores->dashes]]
[clojure.walk :refer [keywordize-keys]]))
[puppetlabs.puppetdb.jdbc :refer [underscores->dashes]]))
(def query-params ["limit" "offset" "order-by" "include-total"])
(def count-header "X-Records")
......
......@@ -9,8 +9,6 @@
[clojure.set :refer [rename-keys]]
[puppetlabs.puppetdb.query.paging :as paging]
[puppetlabs.puppetdb.query :as query]
[puppetlabs.puppetdb.facts :as facts]
[puppetlabs.puppetdb.zip :as zip]
[puppetlabs.puppetdb.utils :as utils]))
(def row-schema
......
......@@ -14,7 +14,6 @@
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.query :as query]
[net.cgrand.moustache :refer [app]]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.http :as http]))
......
......@@ -6,15 +6,13 @@
[puppetlabs.puppetdb.scf.hash :as hash]
[puppetlabs.puppetdb.facts :as facts]
[clojure.core.match :as cm]
[fast-zip.visit :as zv]
[puppetlabs.puppetdb.schema :as pls]
[schema.core :as s]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.puppetdb.cheshire :as json]
[clj-time.coerce :refer [to-timestamp]]
[puppetlabs.kitchensink.core :as ks]
[puppetlabs.puppetdb.query.paging :as paging]
[clojure.tools.logging :as log]))
[puppetlabs.puppetdb.query.paging :as paging]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Plan - functions/transformations of the internal query plan
......
......@@ -3,12 +3,8 @@
Functions that handle conversion of reports from wire format to
internal PuppetDB format, including validation."
(:require [puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.kitchensink.core :as kitchensink]
[clojure.string :as s]
[clj-time.coerce :refer [to-timestamp]]
[puppetlabs.puppetdb.validation :refer [defmodel validate-against-model!]]
[puppetlabs.puppetdb.command.constants :refer [command-names]]))
(:require [puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.validation :refer [defmodel validate-against-model!]]))
(defmodel Report
{:certname :string
......
......@@ -49,7 +49,6 @@
_TODO: consider using multimethods for migration funcs_"
(:require [clojure.java.jdbc :as sql]
[clojure.tools.logging :as log]
[clojure.string :as string]
[puppetlabs.puppetdb.scf.storage :as scf-store]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.kitchensink.core :as kitchensink]
......
......@@ -19,14 +19,12 @@
likely result in dangling resources and catalogs; to clean these
up, it's important to run `garbage-collect!`."
(:require [puppetlabs.puppetdb.catalogs :as cat]
[puppetlabs.puppetdb.reports :as report]
[puppetlabs.puppetdb.facts :as facts]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.jdbc :as jdbc]
[clojure.java.jdbc :as sql]
[clojure.string :as str]
[clojure.tools.logging :as log]
[puppetlabs.puppetdb.cheshire :as json]
[clojure.data :as data]
[puppetlabs.puppetdb.scf.hash :as shash]
[puppetlabs.puppetdb.scf.storage-utils :as sutils]
......@@ -37,7 +35,6 @@
[puppetlabs.puppetdb.utils :as utils]
[clj-time.coerce :refer [to-timestamp]]
[clj-time.core :refer [ago secs now before?]]
[metrics.meters :refer [meter mark!]]
[metrics.counters :refer [counter inc! value]]
[metrics.gauges :refer [gauge]]
[metrics.histograms :refer [histogram update!]]
......
......@@ -3,7 +3,6 @@
[clojure.java.jdbc :as sql]
[puppetlabs.puppetdb.jdbc :as jdbc]
[puppetlabs.kitchensink.core :as kitchensink]
[clojure.tools.logging :as log]
[puppetlabs.puppetdb.schema :as pls]
[schema.core :as s]))
......
......@@ -3,7 +3,6 @@
[puppetlabs.puppetdb.catalog.utils :refer :all]
[puppetlabs.puppetdb.cheshire :as json]
[clojure.java.io :as io]
[clojure.walk :as walk]
[puppetlabs.puppetdb.examples :as ex]
[puppetlabs.kitchensink.core :as kitchensink]
[clojure.set :as set]))
......
......@@ -2,7 +2,6 @@
(:import [clojure.lang ExceptionInfo])
(:require [schema.core :as s]
[puppetlabs.puppetdb.catalogs :refer :all]
[puppetlabs.puppetdb.catalog.utils :refer :all]
[puppetlabs.puppetdb.testutils.catalogs :refer [canonical->wire-format]]
[puppetlabs.puppetdb.examples :refer :all]
[clojure.test :refer :all]))
......
(ns puppetlabs.puppetdb.cli.anonymize-test
(:require [clojure.test :refer :all]
[puppetlabs.puppetdb.cli.anonymize :refer :all]
[clojure.java.io :as io]
[puppetlabs.puppetdb.testutils :as tu]
[puppetlabs.puppetdb.archive :as archive]
[puppetlabs.puppetdb.cheshire :as json]
[fs.core :as fs]
[clojure.string :as str]
[clj-time.core :as time]
[puppetlabs.puppetdb.testutils.tar :as tar]
[puppetlabs.puppetdb.testutils.facts :refer [spit-facts-tarball create-host-facts]]))
......
......@@ -3,24 +3,16 @@
[puppetlabs.puppetdb.cli.import :as import]
[clojure.test :refer :all]
[puppetlabs.puppetdb.testutils :as testutils]
[fs.core :as fs]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.fixtures :as fixt]
[clj-http.client :as client]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.scf.hash :as shash]
[puppetlabs.puppetdb.command.constants :refer [command-names]]
[puppetlabs.puppetdb.examples :refer [wire-catalogs]]
[puppetlabs.puppetdb.testutils.catalogs :as tuc]
[puppetlabs.puppetdb.catalogs :as catalogs]
[puppetlabs.puppetdb.examples.reports :refer [reports]]
[puppetlabs.puppetdb.testutils.reports :as tur]
[clojure.walk :as walk]
[clj-time.core :refer [now]]
[clj-time.coerce :refer [to-string]]
[puppetlabs.puppetdb.archive :as archive]
[puppetlabs.puppetdb.utils :as utils]
[clojure.tools.logging.impl :as li]
[puppetlabs.puppetdb.client :as pdb-client]
[slingshot.slingshot :refer [throw+ try+]]
[slingshot.test]
......
(ns puppetlabs.puppetdb.cli.services-test
(:import [java.security KeyStore])
(:require clojure.string
[fs.core :as fs]
(:require [fs.core :as fs]
[clj-http.client :as client]
[puppetlabs.puppetdb.version]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.fixtures :as fixt]
[puppetlabs.puppetdb.testutils :as testutils]
[puppetlabs.trapperkeeper.testutils.logging :refer [with-log-output logs-matching]]
[puppetlabs.trapperkeeper.testutils.bootstrap :as tk]
[puppetlabs.trapperkeeper.services.webserver.jetty9-service :as jetty9]
[puppetlabs.puppetdb.cli.services :refer :all]
[puppetlabs.puppetdb.utils :as utils]
[clojure.test :refer :all]
[clj-time.core :refer [days hours minutes secs]]
[clojure.java.io :refer [resource]]
[puppetlabs.puppetdb.time :refer [to-secs to-minutes to-hours to-days period?]]
[puppetlabs.puppetdb.testutils.jetty :as jutils :refer [*base-url*]]
[puppetlabs.trapperkeeper.app :refer [get-service]]
[puppetlabs.puppetdb.cli.import-export-roundtrip-test :refer [block-on-node
......
(ns puppetlabs.puppetdb.command.dlo-test
(:require [cheshire.core :as json]
[fs.core :as fs]
(:require [fs.core :as fs]
[puppetlabs.kitchensink.core :as kitchensink]
[clojure.test :refer :all]
[clj-time.core :refer [years days secs ago now]]
[clj-time.coerce :refer [to-timestamp]]
[puppetlabs.puppetdb.time :refer [to-millis]]
[puppetlabs.puppetdb.command.dlo :refer :all]))
(deftest dlo-compression-introspection
......
......@@ -8,7 +8,6 @@
[puppetlabs.puppetdb.scf.hash :as shash]
[puppetlabs.trapperkeeper.testutils.logging :refer [atom-logger]]
[clj-time.format :as tfmt]
[clojure.walk :as walk]
[puppetlabs.puppetdb.command :refer :all]
[puppetlabs.puppetdb.testutils :refer :all]
[puppetlabs.puppetdb.fixtures :refer :all]
......
......@@ -6,7 +6,6 @@
[puppetlabs.puppetdb.time :as pl-time]
[clj-time.core :as time]
[puppetlabs.trapperkeeper.testutils.logging :as tu-log]
[clojure.java.io :as io]
[puppetlabs.puppetdb.testutils :as tu]
[clojure.string :as str]
[fs.core :as fs]))
......
(ns puppetlabs.puppetdb.examples.reports
(:require [clj-time.coerce :as coerce]))
(ns puppetlabs.puppetdb.examples.reports)
(def reports
{:basic
......
(ns puppetlabs.puppetdb.http.catalogs-test
(:require [cheshire.core :as json]
[puppetlabs.puppetdb.testutils.catalogs :as testcat]
[puppetlabs.puppetdb.catalogs :as cats]
[clojure.java.io :refer [resource reader]]
[clojure.walk :refer [keywordize-keys]]
[puppetlabs.puppetdb.scf.hash :as shash]
[clojure.test :refer :all]
[ring.mock.request :as request]
[puppetlabs.puppetdb.testutils :refer [get-request deftestseq strip-hash]]
[puppetlabs.puppetdb.fixtures :as fixt]))
......
......@@ -2,12 +2,10 @@
(:import [java.io ByteArrayInputStream])
(:require [puppetlabs.puppetdb.cheshire :as json]
[clojure.test :refer :all]
[puppetlabs.puppetdb.http.command :refer :all]
[puppetlabs.puppetdb.fixtures :as fixt]
[puppetlabs.puppetdb.testutils :refer [get-request post-request
content-type uuid-in-response?
assert-success! deftestseq]]
[puppetlabs.puppetdb.version :as version]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.mq :as mq]
......
(ns puppetlabs.puppetdb.http.event-counts-test
(:require [cheshire.core :as json]
[puppetlabs.puppetdb.http :as http]
(:require [puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.fixtures :as fixt]
[clojure.test :refer :all]
[puppetlabs.puppetdb.examples.reports :refer :all]
......
(ns puppetlabs.puppetdb.http.events-test
(:require [puppetlabs.puppetdb.reports :as report]
[puppetlabs.kitchensink.core :as kitchensink]
(:require [puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.http :as http]
[puppetlabs.puppetdb.scf.storage :as scf-store]
[cheshire.core :as json]
......@@ -17,7 +16,6 @@
[puppetlabs.puppetdb.testutils.reports :refer [store-example-report! get-events-map]]
[clojure.walk :refer [stringify-keys]]
[clojure.test :refer :all]
[ring.mock.request :refer :all]
[puppetlabs.puppetdb.examples.reports :refer :all]
[puppetlabs.puppetdb.fixtures :refer :all]))
......
(ns puppetlabs.puppetdb.http.experimental.population-test
(:require [cheshire.core :as json]
ring.middleware.params
[puppetlabs.puppetdb.scf.storage :as scf-store]
[puppetlabs.puppetdb.http :as http]
[clojure.test :refer :all]
[ring.mock.request :refer :all]
[clj-time.core :refer [now]]
[puppetlabs.puppetdb.fixtures :refer :all]
[puppetlabs.puppetdb.examples :refer :all]
......
(ns puppetlabs.puppetdb.http.explore-test
(:import [com.fasterxml.jackson.core JsonParseException])
(:require [cheshire.core :as json]
ring.middleware.params
[puppetlabs.puppetdb.scf.storage :as scf-store]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.http :as http]
[flatland.ordered.map :as omap]
[clojure.test :refer :all]