Fix schema test
This commit is contained in:
parent
63dcc3357a
commit
830b19be58
2 changed files with 26 additions and 16 deletions
6
build.py
6
build.py
|
@ -38,6 +38,12 @@ def initialize(project):
|
|||
build.initialize_build_dir()
|
||||
|
||||
|
||||
@task
|
||||
def test(project):
|
||||
test_clj(project)
|
||||
test_cljs(project)
|
||||
test_schema(project)
|
||||
|
||||
@task
|
||||
def test_clj(project):
|
||||
run("lein test", shell=True, check=True)
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
[clojure.spec.alpha :as s]
|
||||
#?(:clj [orchestra.core :refer [defn-spec]]
|
||||
:cljs [orchestra.core :refer-macros [defn-spec]])
|
||||
[dda.c4k-common.common :as cm]
|
||||
[dda.c4k-common.yaml :as yaml]
|
||||
[dda.c4k-common.postgres :as postgres]
|
||||
[dda.c4k-common.monitoring :as mon]
|
||||
|
@ -26,6 +27,9 @@
|
|||
(defn config-objects [config]
|
||||
(let [storage-class (if (contains? config :postgres-data-volume-path) :manual :local-path)]
|
||||
(map yaml/to-string
|
||||
(filter
|
||||
#(not (nil? %))
|
||||
(cm/concat-vec
|
||||
[(postgres/generate-config {:postgres-size :2gb :db-name "shynet"})
|
||||
(when (contains? config :postgres-data-volume-path)
|
||||
(postgres/generate-persistent-volume (select-keys config [:postgres-data-volume-path :pv-storage-size-gb])))
|
||||
|
@ -36,12 +40,12 @@
|
|||
(postgres/generate-service config)
|
||||
(shynet/generate-webserver-deployment)
|
||||
(shynet/generate-celeryworker-deployment)
|
||||
(shynet/generate-ingress-and-cert config)
|
||||
(shynet/generate-service-redis)
|
||||
(shynet/generate-service-webserver)
|
||||
(shynet/generate-statefulset)
|
||||
(shynet/generate-statefulset)]
|
||||
(shynet/generate-ingress-and-cert config)
|
||||
(when (:contains? config :mon-cfg)
|
||||
(mon/generate (:mon-cfg config) (:mon-auth config)))])))
|
||||
(mon/generate (:mon-cfg config) (:mon-auth config))))))))
|
||||
|
||||
(defn auth-objects [config]
|
||||
(map yaml/to-string
|
||||
|
|
Loading…
Reference in a new issue