diff options
author | Adrian Batos-Parac <adrian.batos-parac@amdocs.com> | 2018-02-22 14:43:42 -0500 |
---|---|---|
committer | Adrian Batos-Parac <adrian.batos-parac@amdocs.com> | 2018-02-22 14:46:57 -0500 |
commit | e023325d3e76a71ac795ebbdb74f5a89756040a7 (patch) | |
tree | 63b2816a829c785f3c0329c3ea57ebd3c4f2937d /dev | |
parent | 2610df2fc29a9d16bb869f652d4d21caeae4c154 (diff) |
Initial Commit of Chameleon
Commit the initial set of code for the Chameleon offering to ONAP
Change-Id: Ia58bd49eafc0a3702c17c9cab34d666ed1627ba5
Issue-ID: AAI-797
Signed-off-by: Adrian Batos-Parac <adrian.batos-parac@amdocs.com>
Diffstat (limited to 'dev')
-rw-r--r-- | dev/dev.clj | 28 | ||||
-rw-r--r-- | dev/user.clj | 7 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev/dev.clj b/dev/dev.clj new file mode 100644 index 0000000..880f540 --- /dev/null +++ b/dev/dev.clj @@ -0,0 +1,28 @@ +(ns dev + "Tools for interactive development with the REPL. This file should + not be included in a production build of the application." + (:require [chameleon.config :refer [config]] + [chameleon.handler :refer [handler]] + [integrant.core :as ig] + [integrant.repl :refer [clear go halt init reset reset-all]] + [integrant.repl.state :refer [system]] + [clojure.tools.namespace.repl :refer [refresh refresh-all disable-reload!]] + [clojure.repl :refer [apropos dir doc find-doc pst source]] + [clojure.test :refer [run-tests run-all-tests]] + [clojure.pprint :refer [pprint]] + [clojure.reflect :refer [reflect]])) + +(disable-reload! (find-ns 'integrant.core)) + +(integrant.repl/set-prep! (constantly (config { + :event-config {:aai {:host "localhost:3904" + :topic "spikeEvents" + :motsid "" + :pass "" + :consumer-group"chameleon1" + :consumer-id"chameleon1" + :timeout 15000 + :batch-size 8 + :type "HTTPAUTH"}} + :gallifrey-host "localhost:443" + :http-port 3449}))) diff --git a/dev/user.clj b/dev/user.clj new file mode 100644 index 0000000..9a2f701 --- /dev/null +++ b/dev/user.clj @@ -0,0 +1,7 @@ +(ns user) + +(defn dev + "Load and switch to the 'dev' namespace." + [] + (require 'dev) + (in-ns 'dev)) |