Skip to content

Commit

Permalink
Added test payloads.
Browse files Browse the repository at this point in the history
Addresses part of ticket #14.
  • Loading branch information
oubiwann committed Oct 2, 2017
1 parent 4de2043 commit 3cad4a1
Show file tree
Hide file tree
Showing 30 changed files with 1,957 additions and 0 deletions.
1 change: 1 addition & 0 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
;[clojusc/ltest "0.2.0-SNAPSHOT"]
]
:source-paths ["test/clj"]
:resource-paths ["test/data"]
}
:lint {
:source-paths ^:replace ["src"]
Expand Down
15 changes: 15 additions & 0 deletions test/clj/cmr/client/testing/data.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(ns cmr.client.testing.data
(:require
[clojure.java.io :as io]))

(defn get-data-file
[path-segment]
(slurp (io/resource path-segment)))

(defn get-payload
[path-segment]
(get-data-file (str "payload/" path-segment)))

(defn get-response
[path-segment]
(get-data-file (str "response/" path-segment)))
Loading

0 comments on commit 3cad4a1

Please sign in to comment.